70 references to RunCommandAsync
Aspire.Deployment.EndToEnd.Tests (70)
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 (15)
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
(
330
await auto.
RunCommandAsync
(
334
await auto.
RunCommandAsync
(
345
await auto.
RunCommandAsync
(
356
await auto.
RunCommandAsync
(
401
await auto.
RunCommandAsync
(
411
await auto.
RunCommandAsync
(
423
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)
85
await auto.
RunCommandAsync
($"cd {projectName}", counter);
94
await auto.
RunCommandAsync
($"dotnet new web -n {defaultServiceName} --no-restore", counter, TimeSpan.FromMinutes(2));
95
await auto.
RunCommandAsync
($"dotnet new web -n {anonymousServiceName} --no-restore", counter, TimeSpan.FromMinutes(2));
96
await auto.
RunCommandAsync
(
102
await auto.
RunCommandAsync
($"touch {BashQuote(stateMarkerFile)}", counter);
103
await auto.
RunCommandAsync
(
120
await auto.
RunCommandAsync
(
124
await auto.
RunCommandAsync
(
130
await auto.
RunCommandAsync
(
134
await auto.
RunCommandAsync
(
140
await auto.
RunCommandAsync
(
146
await auto.
RunCommandAsync
(
253
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));
Helpers\DeploymentE2EAutomatorHelpers.cs (4)
56
await auto.
RunCommandAsync
(
63
await auto.
RunCommandAsync
(
74
await auto.
RunCommandAsync
(
82
await auto.
RunCommandAsync
(
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));
71
await auto.
RunCommandAsync
($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter);
78
await auto.
RunCommandAsync
(BuildJobVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(5));
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));