From d034539c52557fff2c3fcb47d3de80ee7aec3066 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 30 Mar 2016 11:43:22 +0100 Subject: [PATCH] qa: update rest test cephfs calls (part 2) "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 --- qa/workunits/rest/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/workunits/rest/test.py b/qa/workunits/rest/test.py index 7078da648db47..fb633c0eeb220 100755 --- a/qa/workunits/rest/test.py +++ b/qa/workunits/rest/test.py @@ -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') -- 2.39.5