We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b697140 commit 59e90e6Copy full SHA for 59e90e6
pulsar-client-tools-test/src/test/java/org/apache/pulsar/admin/cli/CmdFunctionsTest.java
@@ -632,6 +632,19 @@ public void testListFunctions() throws Exception {
632
verify(functions, times(1)).getFunctions(eq(TENANT), eq(NAMESPACE));
633
}
634
635
+ @Test
636
+ public void testListFunctionsWithDefaultValue() throws Exception {
637
+ cmd.run(new String[] {
638
+ "list",
639
+ });
640
+
641
+ ListFunctions lister = cmd.getLister();
642
+ assertEquals("public", lister.getTenant());
643
+ assertEquals("default", lister.getNamespace());
644
645
+ verify(functions, times(1)).getFunctions(eq("public"), eq("default"));
646
+ }
647
648
@Test
649
public void testStateGetter() throws Exception {
650
String key = TEST_NAME + "-key";
0 commit comments