diff --git a/tests/regression/roles/sonic_image_management/tasks/image_verify.yml b/tests/regression/roles/sonic_image_management/tasks/image_verify.yml index 6d6b5ff01..32f2528bf 100644 --- a/tests/regression/roles/sonic_image_management/tasks/image_verify.yml +++ b/tests/regression/roles/sonic_image_management/tasks/image_verify.yml @@ -14,7 +14,7 @@ that: - result.failed == false - result.status is defined - - result.status == 'gpg validation succeeded.' + - result.status == 'GPG validation succeeded.' register: assert_result ignore_errors: yes @@ -43,7 +43,7 @@ that: - result.failed == false - result.status is defined - - result.status == 'gpg validation failed.' + - result.status == 'GPG validation failed.' register: assert_result ignore_errors: yes @@ -73,7 +73,7 @@ that: - result.failed == false - result.status is defined - - result.status == 'pki validation succeeded.' + - result.status == 'PKI validation succeeded.' register: assert_result ignore_errors: yes @@ -103,7 +103,7 @@ that: - result.failed == false - result.status is defined - - result.status == 'pki validation failed.' + - result.status == 'PKI validation failed.' register: assert_result ignore_errors: yes diff --git a/tests/unit/modules/network/sonic/fixtures/sonic_image_management.yaml b/tests/unit/modules/network/sonic/fixtures/sonic_image_management.yaml index 0cdd8d027..a72207630 100644 --- a/tests/unit/modules/network/sonic/fixtures/sonic_image_management.yaml +++ b/tests/unit/modules/network/sonic/fixtures/sonic_image_management.yaml @@ -110,7 +110,7 @@ image_verify_01: value: openconfig-image-management:output: status: 0 - status-detail: 'gpg validation succeeded.' + status-detail: 'GPG validation succeeded.' image_verify_02: module_args: @@ -134,7 +134,7 @@ image_verify_02: value: openconfig-image-management:output: status: 0 - status-detail: 'pki validation succeeded.' + status-detail: 'PKI validation succeeded.' image_get_list: diff --git a/tests/unit/modules/network/sonic/test_sonic_image_management.py b/tests/unit/modules/network/sonic/test_sonic_image_management.py index a6ec14f2e..68160742b 100644 --- a/tests/unit/modules/network/sonic/test_sonic_image_management.py +++ b/tests/unit/modules/network/sonic/test_sonic_image_management.py @@ -130,7 +130,7 @@ def test_sonic_image_management_image_verify_01(self): set_module_args(self.fixture_data['image_verify_01']['module_args']) self.initialize_config_requests(self.fixture_data['image_verify_01']['requests']) self.module_edit_config.side_effect = self.config_side_effect - status = 'gpg validation succeeded.' + status = 'GPG validation succeeded.' result = self.execute_module() self.validate_config_requests() @@ -142,7 +142,7 @@ def test_sonic_image_management_image_verify_02(self): set_module_args(self.fixture_data['image_verify_02']['module_args']) self.initialize_config_requests(self.fixture_data['image_verify_02']['requests']) self.module_edit_config.side_effect = self.config_side_effect - status = 'pki validation succeeded.' + status = 'PKI validation succeeded.' result = self.execute_module() self.validate_config_requests()