Skip to content

Commit

Permalink
APT: Patch Mode set to disabled in ConfigurePatching: Fixing failing…
Browse files Browse the repository at this point in the history
… unit tests
  • Loading branch information
rane-rajasi committed Sep 11, 2023
1 parent 8f6b743 commit 7ca3a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/tests/Test_ConfigurePatchingProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_operation_fail_for_configure_patching_telemetry_not_supported(self):
self.assertTrue(substatus_file_data[0]["status"].lower() == Constants.STATUS_SUCCESS.lower())
runtime.stop()

def test_operation_fail_for_configure_patching_request_for_apt(self):
def test_operation_success_for_configure_patching_request_for_apt(self):
# default auto OS updates config file not found on the machine
argument_composer = ArgumentComposer()
argument_composer.operation = Constants.CONFIGURE_PATCHING
Expand All @@ -183,7 +183,7 @@ def test_operation_fail_for_configure_patching_request_for_apt(self):
self.assertTrue(substatus_file_data[0]["name"] == Constants.PATCH_ASSESSMENT_SUMMARY) # assessment is now part of the CP flow
self.assertTrue(substatus_file_data[0]["status"].lower() == Constants.STATUS_SUCCESS.lower())
self.assertTrue(substatus_file_data[1]["name"] == Constants.CONFIGURE_PATCHING_SUMMARY)
self.assertTrue(substatus_file_data[1]["status"].lower() == Constants.STATUS_ERROR.lower())
self.assertTrue(substatus_file_data[1]["status"].lower() == Constants.STATUS_SUCCESS.lower())
runtime.stop()

def test_patch_mode_set_failure_for_configure_patching(self):
Expand Down

0 comments on commit 7ca3a97

Please sign in to comment.