Skip to content

Commit

Permalink
fix(tests): kv-store CLI tests was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Jul 9, 2024
1 parent b5d32b9 commit 76fc7ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.kestra.cli.AbstractCommand;
import io.kestra.cli.App;
import io.kestra.cli.commands.namespaces.files.NamespaceFilesCommand;
import io.kestra.cli.commands.namespaces.kv.KvCommand;
import io.micronaut.configuration.picocli.PicocliRunner;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -13,7 +14,8 @@
description = "handle namespaces",
mixinStandardHelpOptions = true,
subcommands = {
NamespaceFilesCommand.class
NamespaceFilesCommand.class,
KvCommand.class
}
)
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kestra.cli.commands.namespaces.kv;

import io.kestra.cli.commands.namespaces.files.NamespaceFilesCommand;
import io.micronaut.configuration.picocli.PicocliRunner;
import io.micronaut.context.ApplicationContext;
import org.junit.jupiter.api.Test;
Expand All @@ -20,7 +19,7 @@ void runWithNoParam() {

try (ApplicationContext ctx = ApplicationContext.builder().deduceEnvironment(false).start()) {
String[] args = {};
Integer call = PicocliRunner.call(NamespaceFilesCommand.class, ctx, args);
Integer call = PicocliRunner.call(KvCommand.class, ctx, args);

assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra namespace kv"));
Expand Down

0 comments on commit 76fc7ea

Please sign in to comment.