From 26d38a301d5c0e34a2195d1d6dfd28f8e70abcbf Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 20 Dec 2023 07:38:17 -0500 Subject: [PATCH] [6.13.z] Add Stubbed test for realm provisioning (#13526) Add Stubbed test for realm provisioning (#13524) Signed-off-by: Shubham Ganar (cherry picked from commit bc2f2cb47f1d26caf45543e182507862a466e1cf) Co-authored-by: Shubham Ganar <67952129+shubhamsg199@users.noreply.github.com> --- tests/foreman/api/test_provisioning.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/foreman/api/test_provisioning.py b/tests/foreman/api/test_provisioning.py index b0760d3ff1a..825f9fa188e 100644 --- a/tests/foreman/api/test_provisioning.py +++ b/tests/foreman/api/test_provisioning.py @@ -580,3 +580,24 @@ def test_rhel_pxe_provisioning_fips_enabled( # assert that the host is subscribed and consumes # subsctiption provided by the activation key assert provisioning_host.subscribed, 'Host is not subscribed' + + +@pytest.mark.stubbed +def test_rhel_provisioning_using_realm(): + """Provision a host using realm + + :id: 687e7d71-7e46-46d5-939b-4562f88c4598 + + :steps: + 1. Configure satellite for provisioning + 2. Configure Satellite for Realm support + 3. Provision a Host + 4. Check host is subscribed to Satellite + + :expectedresults: + 1. Provisioning via Realm is successful + 2. Check if the provisioned host is automatically registered to IdM + 3. Host installs right version of RHEL + 4. Satellite is able to run REX job on the host + 5. Host is registered to Satellite and subscription status is 'Success' + """