From 0af2a1c1cc72b028fe44c774e1abfcd53f0f97ff Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Dec 2014 15:45:48 -0800 Subject: [PATCH] qa/workunits/rest/test.py: fix pg stat test Back in e27b0d9e42b7ac3de896c3398689bbdbe03f1bbb we changed pg stat to not dump everything when a formatter is used. Fixes: #10326 Signed-off-by: Sage Weil --- 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 7dcaffe5e06b8..19808badb7c15 100755 --- a/qa/workunits/rest/test.py +++ b/qa/workunits/rest/test.py @@ -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) -- 2.39.5