Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Nov 9, 2023
1 parent e178622 commit 18a60de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/oidc-guard-tests/EndToEnd/Helm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,22 @@ await Cli.Wrap(FileName)
public static async Task Upgrade(string name, string chart, string flags)
{
var stdErrBuffer = new StringBuilder();
var stdOutBuffer = new StringBuilder();

var result = await Cli.Wrap(FileName)
.WithArguments($"upgrade {name} {chart} {flags}")
.WithStandardErrorPipe(PipeTarget.ToStringBuilder(stdErrBuffer))
.WithStandardOutputPipe(PipeTarget.ToStringBuilder(stdErrBuffer))

.WithValidation(CommandResultValidation.None)
.ExecuteAsync();

var stdErr = stdErrBuffer.ToString();
var stdOut = stdOutBuffer.ToString();

if (result.ExitCode != 0)
{
throw new Exception(stdErr);
throw new Exception(stdErr + "-" + stdOut);
}
}
}
Expand Down

0 comments on commit 18a60de

Please sign in to comment.