diff options
Diffstat (limited to 'vespaclient-java/src/test')
-rw-r--r-- | vespaclient-java/src/test/java/com/yahoo/vespastat/CommandLineOptionsTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vespaclient-java/src/test/java/com/yahoo/vespastat/CommandLineOptionsTest.java b/vespaclient-java/src/test/java/com/yahoo/vespastat/CommandLineOptionsTest.java index 31cef2a6a86..a6bd7280c36 100644 --- a/vespaclient-java/src/test/java/com/yahoo/vespastat/CommandLineOptionsTest.java +++ b/vespaclient-java/src/test/java/com/yahoo/vespastat/CommandLineOptionsTest.java @@ -70,6 +70,17 @@ public class CommandLineOptionsTest { } } + // TODO fixed bucket space repo + @Test + public void bucket_space_is_default_unless_specified() { + assertEquals("default", getParsedOptions("--user", "id").bucketSpace); + } + + @Test + public void can_specify_explicit_bucket_space() { + assertEquals("global", getParsedOptions("--user", "id", "--bucketspace", "global").bucketSpace); + } + @Test public void testDefaultRoute() { assertEquals("default", getParsedOptions("--user", "dummyuser").route); |