Skip to content

Commit 5ce8b7d

Browse files
committed
Fix UT cases
Signed-off-by: Luis Liu <[email protected]>
1 parent f300b89 commit 5ce8b7d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/unit/plugins/module_utils/mock_info_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ def get_gather_facts_error_method(gather_subset):
19531953
"alert_categories": "get_event_categories",
19541954
"alert_channels": "list_event_channels",
19551955
"alert_settings": "get_event_maintenance",
1956+
"alert_settings_911": "get_maintenance_settings_details",
19561957
"smartquota": "list_quota_quotas",
19571958
"filesystem": "get_directory_contents",
19581959
"writable_snapshots": "list_snapshot_writable",

tests/unit/plugins/modules/test_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def test_get_facts_alert_settings_api_911_module(self, powerscale_module_mock, i
619619
powerscale_module_mock.minor = 11
620620
powerscale_module_mock.module.params = self.get_module_args
621621
with patch.object(powerscale_module_mock.cluster_api,
622-
MockGatherfactsApi.get_gather_facts_error_method(gather_subset)) as mock_method:
622+
MockGatherfactsApi.get_gather_facts_error_method("alert_settings_911")) as mock_method:
623623
mock_method.return_value = MockSDKResponse(api_response)
624624
powerscale_module_mock.perform_module_operation()
625625
assert MockGatherfactsApi.get_gather_facts_module_response(

0 commit comments

Comments
 (0)