From 4f663412ff9b86ea308db9c451f53c4e93aceaf6 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 15 Jan 2020 12:48:10 -0500 Subject: [PATCH] tests: register mark in pytest configuration 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 (cherry picked from commit ac4f8763aab8ad62771b412662230349676242c7) --- tests/pytest.ini | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/pytest.ini b/tests/pytest.ini index c3e641df4..7a1e037d7 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -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 -- 2.39.5