From: Ali Maredia Date: Fri, 12 May 2017 16:03:47 +0000 (-0400) Subject: test: add test making sure rgw http endpoints are enabled X-Git-Tag: v3.0.0rc12~3^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1545%2Fhead;p=ceph-ansible.git test: add test making sure rgw http endpoints are enabled Signed-off-by: Ali Maredia --- diff --git a/tests/functional/tests/rgw/test_rgw.py b/tests/functional/tests/rgw/test_rgw.py index 653ee9a27..2c6cbb0d2 100644 --- a/tests/functional/tests/rgw/test_rgw.py +++ b/tests/functional/tests/rgw/test_rgw.py @@ -34,6 +34,13 @@ class TestRGWs(object): daemons = [i for i in json.loads(output)["servicemap"]["services"]["rgw"]["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 def test_docker_rgw_is_up(self, node, host): hostname = node["vars"]["inventory_hostname"]