Fixing ceph tests, part 1
diff --git a/cvp_checks/tests/ceph/test_ceph.py b/cvp_checks/tests/ceph/test_ceph.py
index 05a61c2..c14778d 100644
--- a/cvp_checks/tests/ceph/test_ceph.py
+++ b/cvp_checks/tests/ceph/test_ceph.py
@@ -1,11 +1,14 @@
-from cvp_checks import utils
+import pytest
def test_check_ceph_osd(local_salt_client):
- config = utils.get_configuration(__file__)
- osd_fail = \
- local_salt_client.cmd(config["ceph_osd_probe_node"][0], 'cmd.run',
- ['ceph osd tree | grep down'])
+ osd_fail = local_salt_client.cmd(
+ 'ceph:osd',
+ 'cmd.run',
+ ['ceph osd tree | grep up'],
+ expr_form='pillar')
+ if not osd_fail:
+ pytest.skip("Ceph is not found on this environment")
assert not osd_fail.values()[0], \
"Some osds are in down state or ceph is not found".format(
osd_fail.values()[0])