From ffadf54a55060a1b3f1a0da5964a78cbdc75b2fb Mon Sep 17 00:00:00 2001 From: vsedmik <46570670+vsedmik@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:11:10 +0100 Subject: [PATCH] Fix test AK create with CV (#13642) --- 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, } )