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