Skip to content

Commit b4ce1ac

Browse files
committed
Remove jira reference from utils.py
1 parent 61ad9be commit b4ce1ac

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/model_registry/scc/utils.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from ocp_resources.resource import NamespacedResource
77
from kubernetes.dynamic import DynamicClient
88

9-
from tests.model_registry.constants import MR_INSTANCE_NAME
10-
from utilities.jira import is_jira_open
119

1210
KEYS_TO_VALIDATE = ["runAsGroup", "runAsUser", "allowPrivilegeEscalation", "capabilities"]
1311

@@ -106,21 +104,9 @@ def get_pod_by_deployment_name(admin_client: DynamicClient, namespace: str, depl
106104
)
107105
expected_replicas = deployment_instance.status.replicas
108106
if len(pods) != expected_replicas:
109-
# Add workaround for RHOAIENG-38126
110-
pod_names = []
111-
if pods:
112-
pod_names = [pod.name for pod in pods]
113-
if (
114-
is_jira_open(jira_id="RHOAIENG-38126", admin_client=admin_client)
115-
and deployment_name == MR_INSTANCE_NAME
116-
):
117-
if all(pod_name.startswith(MR_INSTANCE_NAME) for pod_name in pod_names):
118-
mr_pod = [pod for pod in pods if "postgres" not in pod.name]
119-
assert mr_pod
120-
return mr_pod[0]
121107
raise AssertionError(
122108
f"Expected {expected_replicas} pod(s) for deployment '{deployment_name}'. "
123-
f"Found {len(pods)} pods: {pod_names}"
109+
f"Found {len(pods)} pods: {[pod.name for pod in pods] if pods else None}"
124110
)
125111
return pods[0]
126112

0 commit comments

Comments
 (0)