]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: register mark in pytest configuration
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 15 Jan 2020 17:48:10 +0000 (12:48 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 6 Apr 2020 22:02:22 +0000 (18:02 -0400)
Unregister marks generates warnings like:

PytestUnknownMarkWarning: Unknown pytest.mark.docker - is this a typo?
You can register custom marks to avoid this warning

https://docs.pytest.org/en/latest/mark.html

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit ac4f8763aab8ad62771b412662230349676242c7)

tests/pytest.ini

index c3e641df472c583a18bd9798da56eb9b6f309335..7a1e037d74dd4062750f4caeb55004a6ab253810 100644 (file)
@@ -1,2 +1,17 @@
 # this is just a placeholder so that we can define what the 'root' of the tests
 # dir really is. 
+[pytest]
+markers =
+  dashboard: environment with dashboard enabled
+  no_docker: environment without containers
+  docker: environment with containers
+  all: for all nodes
+  iscsigws: for iscsigw nodes
+  mdss: for mds nodes
+  mgrs: for mgr nodes
+  mons: for mon nodes
+  nfss: for nfs nodes
+  osds: for osd nodes
+  rbdmirrors: for rbdmirror nodes
+  rgws: for rgw nodes
+  grafanas: for grafana nodes