summaryrefslogtreecommitdiffstats
path: root/src/java/test
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-03-21 23:42:34 +0100
committerNoah Watkins <noahwatkins@gmail.com>2013-03-24 18:51:06 +0100
commitbc65ace09f3420406357c440accb14bed20a69fe (patch)
treec572c01004a9fc61636d3beee2e7549b1f7982cf /src/java/test
parentjava: support ceph_get_file_extent_osds (diff)
downloadceph-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.java12
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);
+ }
+ }
}