test: only on containerized iscsi

We don't have the same service running on non-container for now, this
will change soon but for let's only run the test on container.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2743/head
Sébastien Han 2018-06-08 18:01:16 +08:00 committed by Guillaume Abrioux
parent 090ecff94e
commit 6035978ed9
1 changed files with 18 additions and 4 deletions

View File

@ -9,33 +9,47 @@ class TestiSCSIs(object):
assert host.package("tcmu-runner").is_installed assert host.package("tcmu-runner").is_installed
@pytest.mark.no_docker @pytest.mark.no_docker
def test_rbd_target_api_is_installed(self, node, host): def test_ceph_iscsi_config_is_installed(self, node, host):
assert host.package("rbd-target-api").is_installed assert host.package("ceph-iscsi-config").is_installed
@pytest.mark.no_docker @pytest.mark.no_docker
def test_rbd_target_gw_is_installed(self, node, host): def test_targetcli_is_installed(self, node, host):
assert host.package("rbd-target-gw").is_installed assert host.package("targetcli").is_installed
# @pytest.mark.no_docker
# def test_rbd_target_api_is_installed(self, node, host):
# assert host.package("rbd-target-api").is_installed
# @pytest.mark.no_docker
# def test_rbd_target_gw_is_installed(self, node, host):
# assert host.package("rbd-target-gw").is_installed
@pytest.mark.docker
def test_tcmu_runner_service_is_running(self, node, host): def test_tcmu_runner_service_is_running(self, node, host):
service_name = "tcmu-runner" service_name = "tcmu-runner"
assert host.service(service_name).is_running assert host.service(service_name).is_running
@pytest.mark.docker
def test_rbd_target_api_service_is_running(self, node, host): def test_rbd_target_api_service_is_running(self, node, host):
service_name = "rbd-target-api" service_name = "rbd-target-api"
assert host.service(service_name).is_running assert host.service(service_name).is_running
@pytest.mark.docker
def test_rbd_target_gw_service_is_running(self, node, host): def test_rbd_target_gw_service_is_running(self, node, host):
service_name = "rbd-target-gw" service_name = "rbd-target-gw"
assert host.service(service_name).is_running assert host.service(service_name).is_running
@pytest.mark.docker
def test_tcmu_runner_service_is_enabled(self, node, host): def test_tcmu_runner_service_is_enabled(self, node, host):
service_name = "tcmu-runner" service_name = "tcmu-runner"
assert host.service(service_name).is_enabled assert host.service(service_name).is_enabled
@pytest.mark.docker
def test_rbd_target_api_service_is_enabled(self, node, host): def test_rbd_target_api_service_is_enabled(self, node, host):
service_name = "rbd-target-api" service_name = "rbd-target-api"
assert host.service(service_name).is_enabled assert host.service(service_name).is_enabled
@pytest.mark.docker
def test_rbd_target_gw_service_is_enabled(self, node, host): def test_rbd_target_gw_service_is_enabled(self, node, host):
service_name = "rbd-target-gw" service_name = "rbd-target-gw"
assert host.service(service_name).is_enabled assert host.service(service_name).is_enabled