]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rest/test.py: fix pg stat test 3208/head
authorSage Weil <sage@redhat.com>
Thu, 18 Dec 2014 23:45:48 +0000 (15:45 -0800)
committerSage Weil <sage@redhat.com>
Thu, 18 Dec 2014 23:49:58 +0000 (15:49 -0800)
Back in e27b0d9e42b7ac3de896c3398689bbdbe03f1bbb we changed pg stat to
not dump everything when a formatter is used.

Fixes: #10326
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/rest/test.py

index 7dcaffe5e06b8b06683fe1bc15091a14f14e0122..19808badb7c157145900aaa70cdbff316339df76 100755 (executable)
@@ -381,9 +381,9 @@ if __name__ == '__main__':
     expect('pg/set_full_ratio?ratio=0.85', 'PUT', 200, '')
 
     r = expect('pg/stat', 'GET', 200, 'json', JSONHDR)
-    assert('pg_stats_sum' in r.myjson['output'])
+    assert('num_pgs' in r.myjson['output'])
     r = expect('pg/stat', 'GET', 200, 'xml', XMLHDR)
-    assert(r.tree.find('output/pg_map/pg_stats_sum') is not None)
+    assert(r.tree.find('output/pg_summary/num_pgs') is not None)
 
     expect('tell/0.0/query', 'GET', 200, 'json', JSONHDR)
     expect('quorum?quorumcmd=enter', 'PUT', 200, 'json', JSONHDR)