]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rest/test.py
update sources to v12.1.1
[ceph.git] / ceph / qa / workunits / rest / test.py
index 565873e518297ba9d4546a9b4c20f9f0168d8578..8b55378cf8b6d588c2def15de554b8a4f7fcb628 100755 (executable)
@@ -330,7 +330,7 @@ if __name__ == '__main__':
 
     expect('pg/debug?debugop=unfound_objects_exist', 'GET', 200, '')
     expect('pg/debug?debugop=degraded_pgs_exist', 'GET', 200, '')
-    expect('pg/deep-scrub?pgid=0.0', 'PUT', 200, '')
+    expect('pg/deep-scrub?pgid=1.0', 'PUT', 200, '')
     r = expect('pg/dump', 'GET', 200, 'json', JSONHDR)
     assert('pg_stats_sum' in r.myjson['output'])
     r = expect('pg/dump', 'GET', 200, 'xml', XMLHDR)
@@ -345,15 +345,15 @@ if __name__ == '__main__':
     r = expect('pg/getmap', 'GET', 200, '')
     assert(len(r.text) != 0)
 
-    r = expect('pg/map?pgid=0.0', 'GET', 200, 'json', JSONHDR)
+    r = expect('pg/map?pgid=1.0', 'GET', 200, 'json', JSONHDR)
     assert('acting' in r.myjson['output'])
-    assert(r.myjson['output']['pgid'] == '0.0')
-    r = expect('pg/map?pgid=0.0', 'GET', 200, 'xml', XMLHDR)
+    assert(r.myjson['output']['pgid'] == '1.0')
+    r = expect('pg/map?pgid=1.0', 'GET', 200, 'xml', XMLHDR)
     assert(r.tree.find('output/pg_map/acting') is not None)
-    assert(r.tree.find('output/pg_map/pgid').text == '0.0')
+    assert(r.tree.find('output/pg_map/pgid').text == '1.0')
 
-    expect('pg/repair?pgid=0.0', 'PUT', 200, '')
-    expect('pg/scrub?pgid=0.0', 'PUT', 200, '')
+    expect('pg/repair?pgid=1.0', 'PUT', 200, '')
+    expect('pg/scrub?pgid=1.0', 'PUT', 200, '')
 
     expect('osd/set-full-ratio?ratio=0.90', 'PUT', 200, '')
     r = expect('osd/dump', 'GET', 200, 'json', JSONHDR)
@@ -373,7 +373,7 @@ if __name__ == '__main__':
     r = expect('pg/stat', 'GET', 200, 'xml', XMLHDR)
     assert(r.tree.find('output/pg_summary/num_pgs') is not None)
 
-    expect('tell/0.0/query', 'GET', 200, 'json', JSONHDR)
+    expect('tell/1.0/query', 'GET', 200, 'json', JSONHDR)
     expect('quorum?quorumcmd=enter', 'PUT', 200, 'json', JSONHDR)
     expect('quorum?quorumcmd=enter', 'PUT', 200, 'xml', XMLHDR)
     expect('quorum_status', 'GET', 200, 'json', JSONHDR)