mirror of https://github.com/ceph/ceph-ansible.git
test: add test making sure rgw http endpoints are enabled
Signed-off-by: Ali Maredia <amaredia@redhat.com>pull/1545/head
parent
e4ac736071
commit
ae18cf24d2
|
@ -34,6 +34,13 @@ class TestRGWs(object):
|
||||||
daemons = [i for i in json.loads(output)["servicemap"]["services"]["rgw"]["daemons"]]
|
daemons = [i for i in json.loads(output)["servicemap"]["services"]["rgw"]["daemons"]]
|
||||||
assert hostname in daemons
|
assert hostname in daemons
|
||||||
|
|
||||||
|
@pytest.mark.no_docker
|
||||||
|
def test_rgw_http_endpoint(self, node, host):
|
||||||
|
# rgw frontends ip_addr is configured on eth1
|
||||||
|
ip_addr = host.interface("eth1").addresses[0]
|
||||||
|
assert host.socket("tcp://{ip_addr}:{port}".format(ip_addr=ip_addr, port=8080)).is_listening
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.docker
|
@pytest.mark.docker
|
||||||
def test_docker_rgw_is_up(self, node, host):
|
def test_docker_rgw_is_up(self, node, host):
|
||||||
hostname = node["vars"]["inventory_hostname"]
|
hostname = node["vars"]["inventory_hostname"]
|
||||||
|
|
Loading…
Reference in New Issue