]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
test: add test making sure rgw http endpoints are enabled 1545/head
authorAli Maredia <amaredia@redhat.com>
Fri, 12 May 2017 16:03:47 +0000 (12:03 -0400)
committerAli Maredia <amaredia@redhat.com>
Mon, 25 Sep 2017 18:41:18 +0000 (14:41 -0400)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
tests/functional/tests/rgw/test_rgw.py

index 653ee9a276f8ddfaa45bfc54bf33b9f8ac418586..2c6cbb0d297c580a8fbe8070c5960de795188bb4 100644 (file)
@@ -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"]