Commit bd6cc79f authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

tests: fix `test_rgw_is_up` test



The data structure seems to have been modified in ceph@master (quincy).

This commit update the test accordingly.
Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b8080bac)
parent 358ea385
......@@ -36,14 +36,14 @@ class TestRGWs(object):
cluster=cluster
)
output = host.check_output(cmd)
daemons = [i for i in json.loads(
output)["servicemap"]["services"]["rgw"]["daemons"]]
for i in range(int(node["radosgw_num_instances"])):
instance_name = "{hostname}.rgw{seq}".format(
hostname=hostname,
seq=i
)
assert instance_name in daemons
keys = [i for i in json.loads(
output)["servicemap"]["services"]["rgw"]["daemons"].keys()]
keys.remove('summary')
daemons = json.loads(output)["servicemap"]["services"]["rgw"]["daemons"]
hostnames = []
for key in keys:
hostnames.append(daemons[key]['metadata']['hostname'])
@pytest.mark.no_docker
def test_rgw_http_endpoint(self, node, host, setup):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment