From f3c1c9e927d88e71861b531fda62892fdcc5dffb Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 8 Jan 2024 05:29:14 -0500 Subject: [PATCH] [6.15.z] Fix test AK create with CV (#13644) --- tests/foreman/cli/test_activationkey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_activationkey.py b/tests/foreman/cli/test_activationkey.py index da61301e19f..15aca83eaf7 100644 --- a/tests/foreman/cli/test_activationkey.py +++ b/tests/foreman/cli/test_activationkey.py @@ -154,10 +154,11 @@ def test_positive_create_with_cv(name, module_org, get_default_env, module_targe new_cv = module_target_sat.cli_factory.make_content_view( {'name': name, 'organization-id': module_org.id} ) + module_target_sat.cli.ContentView.publish({'id': new_cv['id']}) new_ak_cv = module_target_sat.cli_factory.make_activation_key( { 'content-view': new_cv['name'], - 'environment': get_default_env['name'], + 'lifecycle-environment': get_default_env['name'], 'organization-id': module_org.id, } )