Skip to content

Commit

Permalink
Revert "Revert "[improve][fn] Set default tenant and namespace for Li…
Browse files Browse the repository at this point in the history
…stFunctions cmd (apache#23881)""

This reverts commit 14a7b58.
  • Loading branch information
mukesh-ctds committed Feb 28, 2025
1 parent 342c75a commit 5749a37
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,19 @@ public void testListFunctions() throws Exception {
verify(functions, times(1)).getFunctions(eq(TENANT), eq(NAMESPACE));
}

@Test
public void testListFunctionsWithDefaultValue() throws Exception {
cmd.run(new String[] {
"list",
});

ListFunctions lister = cmd.getLister();
assertEquals("public", lister.getTenant());
assertEquals("default", lister.getNamespace());

verify(functions, times(1)).getFunctions(eq("public"), eq("default"));
}

@Test
public void testStateGetter() throws Exception {
String key = TEST_NAME + "-key";
Expand Down

0 comments on commit 5749a37

Please sign in to comment.