diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-03-21 23:42:34 +0100 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-03-24 18:51:06 +0100 |
commit | bc65ace09f3420406357c440accb14bed20a69fe (patch) | |
tree | c572c01004a9fc61636d3beee2e7549b1f7982cf /src/java/test | |
parent | java: support ceph_get_file_extent_osds (diff) | |
download | ceph-bc65ace09f3420406357c440accb14bed20a69fe.tar.xz ceph-bc65ace09f3420406357c440accb14bed20a69fe.zip |
java: support ceph_get_osd_crush_location
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Diffstat (limited to 'src/java/test')
-rw-r--r-- | src/java/test/com/ceph/fs/CephMountTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/test/com/ceph/fs/CephMountTest.java b/src/java/test/com/ceph/fs/CephMountTest.java index 22274d1905c..2922f589eba 100644 --- a/src/java/test/com/ceph/fs/CephMountTest.java +++ b/src/java/test/com/ceph/fs/CephMountTest.java @@ -26,6 +26,8 @@ import java.util.UUID; import org.junit.*; import static org.junit.Assert.*; +import com.ceph.crush.Bucket; + /* * Coverage * - Everything is covered in at least success cases. @@ -981,4 +983,14 @@ public class CephMountTest { mount.close(fd); mount.unlink(path); } + + @Test + public void test_get_osd_crush_location() throws Exception { + Bucket[] path = mount.get_osd_crush_location(0); + assertTrue(path.length > 0); + for (Bucket b : path) { + assertTrue(b.getType().length() > 0); + assertTrue(b.getName().length() > 0); + } + } } |