]> 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 20:13:25 +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 fc45dc801607f4f74d3ebd9c6e6e7f8d188eaf95..f7611397f537c6a01f0656628e9114e7ebd10317 100644 (file)
@@ -141,6 +141,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,