From 18a60de6d906165ccd6ca5e2f722ca56464cc362 Mon Sep 17 00:00:00 2001 From: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:37:15 -0800 Subject: [PATCH] wip --- tests/oidc-guard-tests/EndToEnd/Helm.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/oidc-guard-tests/EndToEnd/Helm.cs b/tests/oidc-guard-tests/EndToEnd/Helm.cs index 7f030de..374a81d 100644 --- a/tests/oidc-guard-tests/EndToEnd/Helm.cs +++ b/tests/oidc-guard-tests/EndToEnd/Helm.cs @@ -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); } } }