From a708302dde8d690bc8b014e6c37ff355f0350d9c Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Tue, 19 Dec 2023 09:00:58 -0500 Subject: [PATCH] [6.15.z] Add Closedloop BZ#2153548 (#13486) --- tests/foreman/api/test_provisioning.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/foreman/api/test_provisioning.py b/tests/foreman/api/test_provisioning.py index b0760d3ff1a..cf2227625ba 100644 --- a/tests/foreman/api/test_provisioning.py +++ b/tests/foreman/api/test_provisioning.py @@ -185,6 +185,11 @@ def test_rhel_pxe_provisioning( ) assert job['result'] == 'success', 'Job invocation failed' + # check if katello-ca-consumer is not used while host registration + assert provisioning_host.execute('rpm -qa |grep katello-ca-consumer').status == 1 + assert ( + 'katello-ca-consumer' not in provisioning_host.execute('cat /root/install.post.log').stdout + ) # assert that the host is subscribed and consumes # subsctiption provided by the activation key assert provisioning_host.subscribed, 'Host is not subscribed'