]> git-server-git.apps.pok.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 18:12:21 +0000 (14:12 -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>
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,