From dfb2673d3403c46610d1a6022610b1462bc3b6c9 Mon Sep 17 00:00:00 2001 From: Sam Bible Date: Tue, 30 Apr 2024 12:24:16 -0500 Subject: [PATCH] Adjust assert statement, and fix docstring issue --- tests/foreman/api/test_contentview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/foreman/api/test_contentview.py b/tests/foreman/api/test_contentview.py index ac096b669f3..83afeab9d7f 100644 --- a/tests/foreman/api/test_contentview.py +++ b/tests/foreman/api/test_contentview.py @@ -305,7 +305,7 @@ def test_ccv_promote_registry_name_change(self, module_target_sat, module_sca_ma 1) Sync a RH Repo 2) Create a CV, add the repo and publish it - 3) Create a CCV and add the CV to it, then publish it + 3) Create a CCV and add the CV version to it, then publish it 4) Create LCEs with the specific value for registry_name 5) Promote the CCV to both LCEs @@ -394,8 +394,8 @@ def test_ccv_promote_registry_name_change(self, module_target_sat, module_sca_ma registry_name_pattern='<%= lifecycle_environment.label %>/<%= repository.name %>', ).create() version = composite_cv.version[0].read() - assert version.promote(data={'environment_ids': lce1.id}) - assert version.promote(data={'environment_ids': lce2.id}) + assert 'success' in version.promote(data={'environment_ids': lce1.id})['result'] + assert 'success' in version.promote(data={'environment_ids': lce2.id})['result'] class TestContentViewCreate: