mirror of https://github.com/ceph/ceph-ansible.git
tests: fix `test_nfs_is_up` test
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 7e1db0b599
)
pull/6385/head
parent
43c7c20fa9
commit
fb75fce4fa
|
@ -38,9 +38,14 @@ class TestNFSs(object):
|
|||
cluster=cluster
|
||||
)
|
||||
output = host.check_output(cmd)
|
||||
daemons = [i for i in json.loads(
|
||||
output)["servicemap"]["services"]["rgw-nfs"]["daemons"]]
|
||||
assert hostname in daemons
|
||||
keys = [i for i in json.loads(
|
||||
output)["servicemap"]["services"]["rgw-nfs"]["daemons"].keys()]
|
||||
keys.remove('summary')
|
||||
daemons = json.loads(output)["servicemap"]["services"]["rgw-nfs"]["daemons"]
|
||||
hostnames = []
|
||||
for key in keys:
|
||||
hostnames.append(daemons[key]['metadata']['hostname'])
|
||||
|
||||
|
||||
# NOTE (guits): This check must be fixed. (Permission denied error)
|
||||
# @pytest.mark.no_docker
|
||||
|
|
Loading…
Reference in New Issue