]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: test_pool_perm: reinstate proper caps on teardown
authorJohn Spray <john.spray@redhat.com>
Mon, 27 Jul 2015 22:29:06 +0000 (23:29 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 28 Jul 2015 09:34:58 +0000 (10:34 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_pool_perm.py

index b71436d326ea4896f1d09351a64985c4d0bebb2b..a566f8630ee8d8ff18fb0f9603680ad0e54ec8f0 100644 (file)
@@ -49,3 +49,9 @@ class TestPoolPerm(CephFSTestCase):
 
         # read should fail
         self.mount_a.run_python(remote_script.format(path=file_path, check_read=str(True)))
+
+    def tearDown(self):
+        self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', "client.{0}".format(self.mount_a.client_id),
+                                                   'mon', 'allow r', 'osd', 'allow rw pool=data')
+
+        super(CephFSTestCase, self).tearDown()