11 references to CliExitCodes
Aspire.Cli.EndToEnd.Tests (11)
CustomTemplateTests.cs (6)
70$"test $? -eq {CliExitCodes.InvalidCommand}", counter, timeout: TimeSpan.FromSeconds(30)); 78var expectedExitCode = response == "y" ? CliExitCodes.Success : CliExitCodes.Cancelled; 115await auto.RunCommandAsync($"aspire template source add COMPANY --repository https://example.test/replacement --yes --nologo; test $? -eq {CliExitCodes.InvalidCommand}", counter); 117await auto.RunCommandAsync($"aspire config set templateSources.company.path ../escape --global --nologo; test $? -eq {CliExitCodes.InvalidCommand}", counter); 189await auto.RunCommandAsync($"aspire template source remove company --nologo; test $? -eq {CliExitCodes.ConfigNotFound}", counter);
Helpers\ConfigSourceTestContext.cs (1)
201$"result=$?; cat \"$ASPIRE_E2E_WORKSPACE/consent.log\"; test \"$result\" -eq {CliExitCodes.InvalidCommand}",
Helpers\SecretInputTestHelpers.cs (2)
71Assert.True(auto.CreateSnapshot().ContainsText($"[{cancelledSequence} ERR:{CliExitCodes.Cancelled}] $")); 98Assert.True(auto.CreateSnapshot().ContainsText($"[{sequence} ERR:{CliExitCodes.InvalidCommand}] $"));
ResourceCommandTests.cs (2)
197await auto.TypeAsync($"if [ $? -eq {CliExitCodes.FailedToExecuteResourceCommand} ]; then echo RESOURCE_CMD_EXIT_CODE_CORRECT; else echo RESOURCE_CMD_UNEXPECTED_EXIT_CODE; fi"); 277await auto.TypeAsync($"if [ $? -eq {CliExitCodes.FailedToExecuteResourceCommand} ]; then echo RESOURCE_CMD_EXIT_CODE_CORRECT; else echo RESOURCE_CMD_UNEXPECTED_EXIT_CODE; fi");