]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: do not run node_exporter test on clients
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 14 Sep 2020 13:14:24 +0000 (15:14 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 14 Sep 2020 20:13:11 +0000 (16:13 -0400)
We need to skip these tests on client nodes since we don't deploy
node_exporter on them anymore

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5650a6d7d0a0e2b2fa0ceb080e7d582dc9ceb447)

tests/conftest.py

index 74d378ccc6603de07f2d4128ebd52d27e23041a1..a03b3faaf7bdd735e653dc9d0bcd3d66cb1dd273 100644 (file)
@@ -142,6 +142,9 @@ def node(host, request):
         pytest.skip(
             "Not a valid test with dashboard disabled")
 
+    if request.node.get_closest_marker("dashboard") and group_names == ['clients']:
+        pytest.skip('Not a valid test for client node')
+
     data = dict(
         vars=ansible_vars,
         docker=docker,