Added Ironic test to check nodes are available/active
Added Ironic test to check nodes are available/active.
All other states are not expected. The full list of
states with description, see here:
https://docs.openstack.org/ironic/latest/contributor/states.html
Change-Id: I23c97ceb615b0fc1a7629445677d1f3ae3ecd889
Realated: PROD-30572
diff --git a/test_set/cvp-sanity/fixtures/base.py b/test_set/cvp-sanity/fixtures/base.py
index 560f906..754f872 100644
--- a/test_set/cvp-sanity/fixtures/base.py
+++ b/test_set/cvp-sanity/fixtures/base.py
@@ -59,6 +59,14 @@
@pytest.fixture(scope='session')
+def check_ironic(local_salt_client):
+ salt_output = local_salt_client.test_ping(tgt='ironic:client')
+ if not salt_output:
+ pytest.skip("Ironic service is not found or ironic:client pillar is "
+ "not found on this environment.")
+
+
+@pytest.fixture(scope='session')
def check_drivetrain(local_salt_client):
salt_output = local_salt_client.test_ping(tgt='I@jenkins:client and not I@salt:master',
expr_form='compound')