From 8e2c0717842fdf11ab201eb5762839b2554fed31 Mon Sep 17 00:00:00 2001
From: Jameer Pathan <21165044+jameerpathan111@users.noreply.github.com>
Date: Fri, 7 Jun 2024 08:45:35 +0200
Subject: [PATCH] Use jira issue to get bug status (#15359)

---
 tests/foreman/api/test_ansible.py               | 2 +-
 tests/foreman/api/test_organization.py          | 2 +-
 tests/foreman/api/test_provisioning.py          | 4 ++--
 tests/foreman/sys/test_pulp3_filesystem.py      | 2 +-
 tests/foreman/ui/test_computeresource_vmware.py | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/foreman/api/test_ansible.py b/tests/foreman/api/test_ansible.py
index b637d4328b1..65648db1a05 100644
--- a/tests/foreman/api/test_ansible.py
+++ b/tests/foreman/api/test_ansible.py
@@ -299,7 +299,7 @@ def test_positive_read_facts_with_filter(
 
         # gather ansible facts by running ansible roles on the host
         host.play_ansible_roles()
-        if is_open('BZ:2216471'):
+        if is_open('SAT-18656'):
             wait_for(
                 lambda: len(rex_contenthost.nailgun_host.get_facts()) > 0,
                 timeout=30,
diff --git a/tests/foreman/api/test_organization.py b/tests/foreman/api/test_organization.py
index 94cc2a12b04..051b6582c94 100644
--- a/tests/foreman/api/test_organization.py
+++ b/tests/foreman/api/test_organization.py
@@ -75,7 +75,7 @@ def test_positive_create(self, target_sat):
             headers={'content-type': 'text/plain'},
             verify=False,
         )
-        if is_open('BZ:2228820'):
+        if is_open('SAT-20559'):
             assert response.status_code in [http.client.UNSUPPORTED_MEDIA_TYPE, 500]
         else:
             assert response.status_code == http.client.UNSUPPORTED_MEDIA_TYPE
diff --git a/tests/foreman/api/test_provisioning.py b/tests/foreman/api/test_provisioning.py
index fe8bd771e5e..51cbc3119e2 100644
--- a/tests/foreman/api/test_provisioning.py
+++ b/tests/foreman/api/test_provisioning.py
@@ -562,11 +562,11 @@ def test_rhel_pxe_provisioning_fips_enabled(
     # Verify FIPS is enabled on host after provisioning is completed sucessfully
     if int(host_os.major) >= 8:
         result = provisioning_host.execute('fips-mode-setup --check')
-        fips_status = 'FIPS mode is disabled' if is_open('BZ:2240076') else 'FIPS mode is enabled'
+        fips_status = 'FIPS mode is disabled' if is_open('SAT-20386') else 'FIPS mode is enabled'
         assert fips_status in result.stdout
     else:
         result = provisioning_host.execute('cat /proc/sys/crypto/fips_enabled')
-        assert (0 if is_open('BZ:2240076') else 1) == int(result.stdout)
+        assert (0 if is_open('SAT-20386') else 1) == int(result.stdout)
 
     # Run a command on the host using REX to verify that Satellite's SSH key is present on the host
     template_id = (
diff --git a/tests/foreman/sys/test_pulp3_filesystem.py b/tests/foreman/sys/test_pulp3_filesystem.py
index d4c04798c35..dda6526e651 100644
--- a/tests/foreman/sys/test_pulp3_filesystem.py
+++ b/tests/foreman/sys/test_pulp3_filesystem.py
@@ -34,7 +34,7 @@ def test_selinux_status(target_sat):
     result = target_sat.execute('getenforce')
     assert 'Enforcing' in result.stdout
     # check there are no SELinux denials
-    if not is_open('BZ:2263294'):
+    if not is_open('SAT-23121'):
         result = target_sat.execute('ausearch --input-logs -m avc -ts today --raw')
         assert result.status == 1, 'Some SELinux denials were found in journal.'
 
diff --git a/tests/foreman/ui/test_computeresource_vmware.py b/tests/foreman/ui/test_computeresource_vmware.py
index 881ca3c8eaa..9b6a78c1f71 100644
--- a/tests/foreman/ui/test_computeresource_vmware.py
+++ b/tests/foreman/ui/test_computeresource_vmware.py
@@ -401,7 +401,7 @@ def _finalize():
             assert provider_content['cluster'] == settings.vmware.cluster
             assert provider_content['annotation_notes'] == annotation_notes
             assert provider_content['virtual_hw_version'] == virtual_hw_version
-            if not is_open('BZ:2266672'):
+            if not is_open('SAT-23630'):
                 assert values['provider_content']['firmware'] == firmware
             assert provider_content['resource_pool'] == resource_pool
             assert provider_content['folder'] == folder