Skip to content

Commit

Permalink
SOnar fix (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kritika-Bhateja-03 authored Oct 23, 2024
1 parent 5af80a1 commit 30d785e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/plugins/modules/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def test_get_facts_smb_files_module(self, gatherfacts_module_mock, input_params)
'zone': "System",
"filters": input_params.get('filters')
})
cluster_ip = '192.168.0.1'
cluster_ip = 'xx.xx.xx.xx'
gatherfacts_module_mock.cluster_api.get_cluster_external_ips = MagicMock(return_value=[cluster_ip])
gatherfacts_module_mock.module.params = self.get_module_args
gatherfacts_module_mock.api_client = utils.get_powerscale_connection(self.get_module_args)
Expand Down Expand Up @@ -519,9 +519,10 @@ def test_get_facts_smb_files_exception(self, gatherfacts_module_mock):
'gather_subset': [gather_subset],
'zone': "System",
})
gatherfacts_module_mock.cluster_api.get_cluster_external_ips = MagicMock(return_value=['192.168.0.1'])
cluster_ip = 'xx.xx.xx.xx'
gatherfacts_module_mock.cluster_api.get_cluster_external_ips = MagicMock(return_value=[cluster_ip])
gatherfacts_module_mock.module.params = self.get_module_args
gatherfacts_module_mock.api_client.to_dict.onefs_host = MagicMock(return_value='192.168.0.1')
gatherfacts_module_mock.api_client.to_dict.onefs_host = MagicMock(return_value=cluster_ip)
gatherfacts_module_mock.isi_sdk.ProtocolsApi = MagicMock(return_value=gatherfacts_module_mock.protocol_api)
gatherfacts_module_mock.protocol_api.get_smb_openfiles = MagicMock(
side_effect=MockApiException)
Expand Down

0 comments on commit 30d785e

Please sign in to comment.