From: Yan, Zheng Date: Tue, 12 Jan 2016 15:01:02 +0000 (+0800) Subject: java/test: update for libcephfs permission check X-Git-Tag: v10.0.3~48^2~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5658%2Fhead;p=ceph.git java/test: update for libcephfs permission check libcephfs permission check does not allow some operations for non-root userm, disable the permission check for mount tests. Signed-off-by: Yan, Zheng --- diff --git a/src/java/test/com/ceph/fs/CephMountCreateTest.java b/src/java/test/com/ceph/fs/CephMountCreateTest.java index 9df9342571f..fc2bafd60d5 100644 --- a/src/java/test/com/ceph/fs/CephMountCreateTest.java +++ b/src/java/test/com/ceph/fs/CephMountCreateTest.java @@ -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; } diff --git a/src/java/test/com/ceph/fs/CephMountTest.java b/src/java/test/com/ceph/fs/CephMountTest.java index 1a3e568bb2b..c952c0c9422 100644 --- a/src/java/test/com/ceph/fs/CephMountTest.java +++ b/src/java/test/com/ceph/fs/CephMountTest.java @@ -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);