Merge pull request #8393 from jcsp/wip-15309-2

qa: update rest test cephfs calls (part 2)

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-04-04 09:42:57 -04:00
commit 77aee99835

View File

@ -196,9 +196,9 @@ if __name__ == '__main__':
r = expect('mds/stat.json', 'GET', 200, 'json')
expect('mds/set?var=max_mds&val=2', 'PUT', 200, '')
r = expect('mds/stat.json', 'GET', 200, 'json')
assert('info' in r.myjson['output']['mdsmap'])
assert('epoch' in r.myjson['output']['fsmap'])
r = expect('mds/stat.xml', 'GET', 200, 'xml')
assert(r.tree.find('output/mds_stat/mdsmap/info') is not None)
assert(r.tree.find('output/mds_stat/fsmap/epoch') is not None)
# more content tests below, just check format here
expect('mon/dump.json', 'GET', 200, 'json')