Andrew Schoen
1abbc948d9
tests: update skip messages in conftest.py
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:20 -06:00
Andrew Schoen
d79188c8b6
tests: rename vars to ansible_vars in conftest.node
...
This is to avoid redefining the builtin vars()
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:20 -06:00
Andrew Schoen
5f81638b5e
tests: rename CephNode to node and add a bit of documentation
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:20 -06:00
Andrew Schoen
1b3aca44d7
tests: add a journal_collocation tag to collocated journal tests
...
The test will be skipped if journal_collocation is not True in the
group_vars for the scenario.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:20 -06:00
Andrew Schoen
e13da73a5e
testing: CephNode should return osd_ids
...
This is an empty list on anything but an OSD node. These ids will be
used for further OSD testing.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:19 -06:00
Andrew Schoen
4810b38ece
tests: ensure tests marked with 'all' run on every node
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:19 -06:00
Andrew Schoen
cd9b47ceb8
tests: the CephNode fixture should provide the cluster subnet
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:19 -06:00
Andrew Schoen
05be43c546
tests: return address and ansible vars from CephNode
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:18 -06:00
Andrew Schoen
c02ffdb0e0
tests: change conftest.py to support dynamic markers and test selection
...
This applies correct markers to tests depending on their file path.
Tests that live at the root of tests/functional/tests will be given a
marker of 'all' and apply to any type of ceph node.
Tests that live in tests/functional/tests/mon will get the
'mons' marker and will only run for nodes in the 'mons' group.
Tests that live in tests/functional/tests/osd will get the 'osds'
marker and will only run for nodes in the 'osds' group.
All tests must use the CephNode fixture for this to work and be
parameterized by testinfra.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-12-06 14:56:18 -06:00
Alfredo Deza
05dace442d
tests: create the conftest file that does all the magic
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 13:59:33 -04:00