Squashed 'acm-hub-bootstrap/' content from commit 4b79b1a0
git-subtree-dir: acm-hub-bootstrap git-subtree-split: 4b79b1a0be6da2a9efc9ace8871b4762342da70b
This commit is contained in:
27
tests/interop/test_subscription_status_hub.py
Normal file
27
tests/interop/test_subscription_status_hub.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
from validatedpatterns_tests.interop import subscription
|
||||
|
||||
from . import __loggername__
|
||||
|
||||
logger = logging.getLogger(__loggername__)
|
||||
|
||||
|
||||
@pytest.mark.subscription_status_hub
|
||||
def test_subscription_status_hub(openshift_dyn_client):
|
||||
# These are the operator subscriptions and their associated namespaces
|
||||
expected_subs = {
|
||||
"openshift-gitops-operator": ["openshift-operators"],
|
||||
"advanced-cluster-management": ["open-cluster-management"],
|
||||
"multicluster-engine": ["multicluster-engine"],
|
||||
}
|
||||
|
||||
err_msg = subscription.subscription_status(
|
||||
openshift_dyn_client, expected_subs, diff=True
|
||||
)
|
||||
if err_msg:
|
||||
logger.error(f"FAIL: {err_msg}")
|
||||
assert False, err_msg
|
||||
else:
|
||||
logger.info("PASS: Subscription status check passed")
|
||||
Reference in New Issue
Block a user