]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
java/test: update for libcephfs permission check 5658/head
authorYan, Zheng <zyan@redhat.com>
Tue, 12 Jan 2016 15:01:02 +0000 (23:01 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 12 Jan 2016 15:04:27 +0000 (23:04 +0800)
libcephfs permission check does not allow some operations for
non-root userm, disable the permission check for mount tests.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/java/test/com/ceph/fs/CephMountCreateTest.java
src/java/test/com/ceph/fs/CephMountTest.java

index 9df9342571fd3396b824715ce5546db2788cbdda..fc2bafd60d5f28ca5f35a294d5d8546b8b364451 100644 (file)
@@ -44,6 +44,7 @@ public class CephMountCreateTest {
     CephMount mount = new CephMount("admin");
     if (conf_file != null)
       mount.conf_read_file(conf_file);
+    mount.conf_set("client_permissions", "0");
     mount.mount(root);
     return mount;
   }
index 1a3e568bb2bfaf3ea37d92b5c81fd8b9c01b14ef..c952c0c9422cb3c3b47b481c8e60798a570a7f12 100644 (file)
@@ -47,6 +47,7 @@ public class CephMountTest {
     String conf_file = System.getProperty("CEPH_CONF_FILE");
     if (conf_file != null)
       mount.conf_read_file(conf_file);
+    mount.conf_set("client_permissions", "0");
 
     mount.mount(null);