]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rest/test: cluster_down/up are now idempotent
authorSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 04:04:01 +0000 (21:04 -0700)
committerSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 04:04:01 +0000 (21:04 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rest/test.py

index 0c99891bad32f20ebf2e43933bb3bcec93f86e4d..272760c82892bd9e7c56ca786602362994086ae7 100755 (executable)
@@ -141,11 +141,9 @@ if __name__ == '__main__':
     # XXX no ceph -w equivalent yet
 
     expect('mds/cluster_down', 'PUT', 200, '')
-    # failure if down
-    expect('mds/cluster_down', 'PUT', 400, '')
+    expect('mds/cluster_down', 'PUT', 200, '')
+    expect('mds/cluster_up', 'PUT', 200, '')
     expect('mds/cluster_up', 'PUT', 200, '')
-    # failure if up
-    expect('mds/cluster_up', 'PUT', 400, '')
 
     expect('mds/compat/rm_incompat?feature=4', 'PUT', 200, '')
     expect('mds/compat/rm_incompat?feature=4', 'PUT', 200, '')