85 references to RunCommandAsync
Aspire.Deployment.EndToEnd.Tests (85)
AcaExpressDeploymentTests.cs (4)
82
await auto.
RunCommandAsync
($"cd {ProjectName}", counter);
86
await auto.
RunCommandAsync
(
95
await auto.
RunCommandAsync
(
115
await auto.
RunCommandAsync
("unset Parameters__manualsecret", counter);
AcaManagedRedisDeploymentTests.cs (7)
83
await auto.
RunCommandAsync
("az provider register --namespace Microsoft.Cache --wait", counter, TimeSpan.FromMinutes(5));
94
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
111
await auto.
RunCommandAsync
(
160
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg($"{projectName}.AppHost")}", counter);
167
await auto.
RunCommandAsync
(
183
await auto.
RunCommandAsync
(
206
await auto.
RunCommandAsync
(
AksPersistentVolumeDeploymentTests.cs (18)
86
await auto.
RunCommandAsync
(
105
await auto.
RunCommandAsync
(
110
await auto.
RunCommandAsync
(
114
await auto.
RunCommandAsync
(
125
await auto.
RunCommandAsync
(
146
await auto.
RunCommandAsync
(
150
await auto.
RunCommandAsync
(
155
await auto.
RunCommandAsync
(
187
await auto.
RunCommandAsync
(
370
await auto.
RunCommandAsync
(
374
await auto.
RunCommandAsync
(
385
await auto.
RunCommandAsync
(
396
await auto.
RunCommandAsync
(
418
await auto.
RunCommandAsync
(
439
await auto.
RunCommandAsync
(
476
await auto.
RunCommandAsync
(
486
await auto.
RunCommandAsync
(
498
await auto.
RunCommandAsync
(
AppServiceDotnetProjectDeploymentTests.cs (3)
33
await auto.
RunCommandAsync
($"cd {projectName}", counter);
56
await auto.
RunCommandAsync
($"cd {projectName}.AppHost", counter);
57
await auto.
RunCommandAsync
(
AppServiceStoragePrivateEndpointDeploymentTests.cs (2)
216
await auto.
RunCommandAsync
(
222
await auto.
RunCommandAsync
(
AzureConnectorNamespaceDeploymentTests.cs (2)
100
await auto.
RunCommandAsync
(
115
await auto.
RunCommandAsync
(
AzureRoleAssignmentRunModeTests.cs (7)
162
await auto.
RunCommandAsync
(contextCommand, counter);
170
await auto.
RunCommandAsync
("aspire start --non-interactive --format Json", counter, TimeSpan.FromMinutes(20));
177
await auto.
RunCommandAsync
("aspire wait storage-roles --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26));
183
await auto.
RunCommandAsync
("aspire wait storage --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26));
190
await auto.
RunCommandAsync
($"az deployment group show --subscription {subscriptionId} --resource-group {resourceGroupName} --name storage-roles -o json > roles-deployment.json", counter, TimeSpan.FromMinutes(2));
191
await auto.
RunCommandAsync
($"az account show --subscription {subscriptionId} -o json > az-account.json", counter, TimeSpan.FromMinutes(1));
194
await auto.
RunCommandAsync
($"python3 validate-role-assignment.py roles-deployment.json az-account.json {requireServicePrincipal}", counter, TimeSpan.FromSeconds(30));
AzureSandboxesDeploymentTests.cs (13)
90
await auto.
RunCommandAsync
($"cd {projectName}", counter);
103
await auto.
RunCommandAsync
($"dotnet new web -n {defaultServiceName} --no-restore", counter, TimeSpan.FromMinutes(2));
104
await auto.
RunCommandAsync
($"dotnet new web -n {anonymousServiceName} --no-restore", counter, TimeSpan.FromMinutes(2));
105
await auto.
RunCommandAsync
(
111
await auto.
RunCommandAsync
($"touch {BashQuote(stateMarkerFile)}", counter);
112
await auto.
RunCommandAsync
(
131
await auto.
RunCommandAsync
(
135
await auto.
RunCommandAsync
(
141
await auto.
RunCommandAsync
(
145
await auto.
RunCommandAsync
(
151
await auto.
RunCommandAsync
(
157
await auto.
RunCommandAsync
(
281
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
AzureStorageRunModeTests.cs (9)
145
await auto.
RunCommandAsync
(contextCommand, counter);
153
await auto.
RunCommandAsync
("aspire start --non-interactive --format Json", counter, TimeSpan.FromMinutes(20));
158
await auto.
RunCommandAsync
("aspire wait storage --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26));
161
await auto.
RunCommandAsync
("aspire resource storage get-azure-resource --non-interactive > get-resource.json", counter, TimeSpan.FromMinutes(2));
162
await auto.
RunCommandAsync
("python3 validate-get-resource.py get-resource.json storage-resource-id.txt storage-deployment-id.txt", counter, TimeSpan.FromSeconds(30));
165
await auto.
RunCommandAsync
("az resource show --ids \"$(cat storage-resource-id.txt)\" --query \"properties.provisioningState\" -o tsv | grep '^Succeeded$'", counter, TimeSpan.FromMinutes(1));
166
await auto.
RunCommandAsync
("az resource show --ids \"$(cat storage-deployment-id.txt)\" --query \"properties.provisioningState\" -o tsv | grep '^Succeeded$'", counter, TimeSpan.FromMinutes(1));
169
await auto.
RunCommandAsync
("aspire resource azure-environment delete-azure-resources --non-interactive", counter, TimeSpan.FromMinutes(10));
174
await auto.
RunCommandAsync
($"az group exists --subscription {subscriptionId} --name {resourceGroupName} -o tsv | grep '^false$'", counter, TimeSpan.FromSeconds(30));
FoundryDotnetProjectDeploymentTests.cs (2)
44
await auto.
RunCommandAsync
($"cd {projectName}", counter);
64
await auto.
RunCommandAsync
(
Helpers\DeploymentE2EAutomatorHelpers.cs (4)
56
await auto.
RunCommandAsync
(
63
await auto.
RunCommandAsync
(
74
await auto.
RunCommandAsync
(
86
await auto.
RunCommandAsync
(
Helpers\DotnetProjectDeploymentHelpers.cs (1)
62
return auto.
RunCommandAsync
($"bash -c {AspireCliShellCommandHelpers.QuoteBashArg(script)}", counter, timeout);
tests\Shared\Hex1bAutomatorTestHelpers.cs (5)
303
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(workspacePath)}", counter);
314
await auto.
RunCommandAsync
(
329
await auto.
RunCommandAsync
(command, counter);
341
await auto.
RunCommandAsync
(
354
await auto.
RunCommandAsync
(
TypeScriptAzureContainerAppJobDeploymentTests.cs (3)
66
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
72
await auto.
RunCommandAsync
($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter);
79
await auto.
RunCommandAsync
(BuildJobVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(5));
TypeScriptAzureProvisioningDeploymentTests.cs (2)
134
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
141
await auto.
RunCommandAsync
(
TypeScriptJavaScriptHostingDeploymentTests.cs (3)
66
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
73
await auto.
RunCommandAsync
($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter);
80
await auto.
RunCommandAsync
(BuildEndpointVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(10));