mirror of https://github.com/ceph/ceph-ansible.git
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
parent
090ecff94e
commit
6035978ed9
|
@ -9,33 +9,47 @@ class TestiSCSIs(object):
|
|||
assert host.package("tcmu-runner").is_installed
|
||||
|
||||
@pytest.mark.no_docker
|
||||
def test_rbd_target_api_is_installed(self, node, host):
|
||||
assert host.package("rbd-target-api").is_installed
|
||||
def test_ceph_iscsi_config_is_installed(self, node, host):
|
||||
assert host.package("ceph-iscsi-config").is_installed
|
||||
|
||||
@pytest.mark.no_docker
|
||||
def test_rbd_target_gw_is_installed(self, node, host):
|
||||
assert host.package("rbd-target-gw").is_installed
|
||||
def test_targetcli_is_installed(self, node, host):
|
||||
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):
|
||||
service_name = "tcmu-runner"
|
||||
assert host.service(service_name).is_running
|
||||
|
||||
@pytest.mark.docker
|
||||
def test_rbd_target_api_service_is_running(self, node, host):
|
||||
service_name = "rbd-target-api"
|
||||
assert host.service(service_name).is_running
|
||||
|
||||
@pytest.mark.docker
|
||||
def test_rbd_target_gw_service_is_running(self, node, host):
|
||||
service_name = "rbd-target-gw"
|
||||
assert host.service(service_name).is_running
|
||||
|
||||
@pytest.mark.docker
|
||||
def test_tcmu_runner_service_is_enabled(self, node, host):
|
||||
service_name = "tcmu-runner"
|
||||
assert host.service(service_name).is_enabled
|
||||
|
||||
@pytest.mark.docker
|
||||
def test_rbd_target_api_service_is_enabled(self, node, host):
|
||||
service_name = "rbd-target-api"
|
||||
assert host.service(service_name).is_enabled
|
||||
|
||||
@pytest.mark.docker
|
||||
def test_rbd_target_gw_service_is_enabled(self, node, host):
|
||||
service_name = "rbd-target-gw"
|
||||
assert host.service(service_name).is_enabled
|
||||
|
|
Loading…
Reference in New Issue