Skip to content

Commit

Permalink
tests: fix test_rgw_is_up test
Browse files Browse the repository at this point in the history
The data structure seems to have been modified in ceph@master (quincy).

This commit update the test accordingly.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b8080ba)
  • Loading branch information
guits committed Mar 24, 2021
1 parent fb75fce commit 439cb79
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/functional/tests/rgw/test_rgw.py
Expand Up @@ -36,14 +36,14 @@ def test_rgw_is_up(self, node, host, setup):
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):
Expand Down

0 comments on commit 439cb79

Please sign in to comment.