-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Ephemeral Execute with Tag option #18
Added Ephemeral Execute with Tag option #18
Conversation
e48949b
to
12c6349
Compare
Co-authored-by: Petra Scherer <[email protected]> Co-authored-by: Timo Klenk <[email protected]> Signed-off-by: Johannes Graf <[email protected]>
12c6349
to
c972220
Compare
@sbckr have rebased to current workflow files |
String code = | ||
readCodeFromStdIn() | ||
.getOrElseThrow( | ||
e -> | ||
new CsCliRunnerException( | ||
getMessages().getString("execute.failure.read-code"), e)); | ||
|
||
Future<Either<ActivationError, List<ActivationResult>>> execute; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather call it execution, but that is a personal preference.
String uuid = UUID.randomUUID().toString(); | ||
String tagFilter = "key:value"; | ||
|
||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am aware that the existing tests for exceptions were all implemented with try/catch, but I would prefer the transition to Assert.assertThrows. Like
CsCliRunnerException actualCCRE = Assert.assertThrows(CsCliRunnerException.class, () ->
getCliWithArgs(
ExecuteEphemeralClientCliCommandConfig.COMMAND_NAME,
"-i",
uuid,
"-f",
tagFilter,
"app.example.com")
.parse());
assertEquals(actualCCRE.getMessage(),
EPHEMERAL_CLI_MESSAGES.getString("execute.failure.both-inputs-provided"));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is missing dependency update for the Ephemeral java client (pom file) which requires carbynestack/ephemeral#17 to be merged
I have just realised, that the newly added option is not yet described in the readme`. (see README.md#usage). So far we have inserted the respective help output at the corresponding place |
This PR has been marked stale because it has been open for 90 days with no activity. It will be automatically closed in 30 days if no further activity occurs. |
Needs to be addressed in a holistic way (see carbynestack/amphora#34). |
cli part for carbynestack/ephemeral#17