]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: update rest test cephfs calls (part 2) 8393/head
authorJohn Spray <john.spray@redhat.com>
Wed, 30 Mar 2016 10:43:22 +0000 (11:43 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 31 Mar 2016 10:28:43 +0000 (11:28 +0100)
"mds stat" now gives fsmap output rather than
mdsmap.  Update the rest api test's expectations.

Fixes: http://tracker.ceph.com/issues/15309
Signed-off-by: John Spray <john.spray@redhat.com>
qa/workunits/rest/test.py

index 7078da648db475e6f4a4e8fb2bc84ef67aa88835..fb633c0eeb220af9efa48affbd54b249efb0b34b 100755 (executable)
@@ -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')