Skip to content

Commit

Permalink
Enable running of auto tests in test suites derived from ControllerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed Feb 21, 2025
1 parent d9d6d61 commit c04ba77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nmostesting/ControllerTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ def execute_tests(self, test_names):
if len(test_names) == 1 and test_names[0] == "auto" and self.disable_auto:
return

self.primary_registry.query_api_called = False

self.pre_tests_message()

for test_name in test_names:
self.primary_registry.query_api_called = False
self.execute_test(test_name)
super().execute_tests(test_names)

self.post_tests_message()

Expand Down
2 changes: 1 addition & 1 deletion nmostesting/suites/MS0501Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, oid, role_path, name, descriptor):
def __init__(self, apis, utils, **kwargs):
# Remove the RAML key to prevent this test suite from auto-testing IS-04 API
apis[NODE_API_KEY].pop("raml", None)
ControllerTest.__init__(self, apis, **kwargs)
ControllerTest.__init__(self, apis, disable_auto=False, **kwargs)
self.ms05_utils = utils

def set_up_tests(self):
Expand Down

0 comments on commit c04ba77

Please sign in to comment.