Files
homelab/acm-hub-bootstrap/tests/interop/test_subscription_status_edge.py

26 lines
693 B
Python

import logging
import pytest
from validatedpatterns_tests.interop import subscription
from . import __loggername__
logger = logging.getLogger(__loggername__)
@pytest.mark.subscription_status_edge
def test_subscription_status_edge(openshift_dyn_client):
# These are the operator subscriptions and their associated namespaces
expected_subs = {
"openshift-gitops-operator": ["openshift-operators"],
}
err_msg = subscription.subscription_status(
openshift_dyn_client, expected_subs, diff=False
)
if err_msg:
logger.error(f"FAIL: {err_msg}")
assert False, err_msg
else:
logger.info("PASS: Subscription status check passed")