tests/conftest.py and tests present in tests/functional/tests/ has been
missed from previous commit
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
8596f1d52c27d22d0e8b7052c9b56c0c350e7fc7)
python-version: 3.8
architecture: x64
- run: pip install flake8
- - run: flake8 --max-line-length 160 ./library/ ./tests/library/
\ No newline at end of file
+ - run: flake8 --max-line-length 160 ./library/ ./tests/library/ ./tests/conftest.py ./tests/functional/tests/
else:
raise ValueError("Invalid input value: %s" % val)
+
@pytest.fixture(scope="module")
def setup(host):
cluster_address = ""
container_binary = ansible_vars.get("container_binary", "")
osd_auto_discovery = ansible_vars.get("osd_auto_discovery")
group_names = ansible_vars["group_names"]
- fsid = ansible_vars.get("fsid")
ansible_distribution = ansible_facts["ansible_facts"]["ansible_distribution"]
return data
+
@pytest.fixture()
def node(host, request):
"""
result = False
assert result
+
class TestCephCrash(object):
@pytest.mark.no_docker
@pytest.mark.ceph_crash
def test_ceph_crash_service_enabled_and_running_container(self, node, host):
s = host.service("ceph-crash@{hostname}".format(hostname=node["vars"]["inventory_hostname"]))
assert s.is_enabled
- assert s.is_running
\ No newline at end of file
+ assert s.is_running