From 503ec9be578847c715996da424d99cb66bc6fd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 22 Feb 2017 09:21:23 -0500 Subject: [PATCH] ci: decorate the tests to not run on docker scenario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Certain scenario won't work on containerized deployment. So we decorate them so they can be skipped. Signed-off-by: Sébastien Han --- tests/functional/tests/mon/test_mons.py | 2 ++ tests/functional/tests/test_install.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/functional/tests/mon/test_mons.py b/tests/functional/tests/mon/test_mons.py index e5df2d264..73229f0a0 100644 --- a/tests/functional/tests/mon/test_mons.py +++ b/tests/functional/tests/mon/test_mons.py @@ -22,6 +22,7 @@ class TestMons(object): ) assert Service(service_name).is_enabled + @pytest.mark.no_docker def test_can_get_cluster_health(self, node, Command): cmd = "sudo ceph --cluster={} --connect-timeout 5 -s".format(node["cluster_name"]) output = Command.check_output(cmd) @@ -30,6 +31,7 @@ class TestMons(object): class TestOSDs(object): + @pytest.mark.no_docker def test_all_osds_are_up_and_in(self, node, Command): cmd = "sudo ceph --cluster={} --connect-timeout 5 -s".format(node["cluster_name"]) output = Command.check_output(cmd) diff --git a/tests/functional/tests/test_install.py b/tests/functional/tests/test_install.py index aea5dde37..478581bb1 100644 --- a/tests/functional/tests/test_install.py +++ b/tests/functional/tests/test_install.py @@ -1,3 +1,4 @@ +import pytest class TestInstall(object): @@ -13,6 +14,7 @@ class TestInstall(object): def test_ceph_conf_is_a_file(self, File, node): assert File(node["conf_path"]).is_file + @pytest.mark.no_docker def test_ceph_command_exists(self, Command): assert Command.exists("ceph")