70 references to RunCommandAsync
Aspire.Deployment.EndToEnd.Tests (70)
AcaManagedRedisDeploymentTests.cs (7)
83await auto.RunCommandAsync("az provider register --namespace Microsoft.Cache --wait", counter, TimeSpan.FromMinutes(5)); 94await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 111await auto.RunCommandAsync( 160await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg($"{projectName}.AppHost")}", counter); 167await auto.RunCommandAsync( 183await auto.RunCommandAsync( 206await auto.RunCommandAsync(
AksPersistentVolumeDeploymentTests.cs (15)
86await auto.RunCommandAsync( 105await auto.RunCommandAsync( 110await auto.RunCommandAsync( 114await auto.RunCommandAsync( 125await auto.RunCommandAsync( 146await auto.RunCommandAsync( 150await auto.RunCommandAsync( 155await auto.RunCommandAsync( 330await auto.RunCommandAsync( 334await auto.RunCommandAsync( 345await auto.RunCommandAsync( 356await auto.RunCommandAsync( 401await auto.RunCommandAsync( 411await auto.RunCommandAsync( 423await auto.RunCommandAsync(
AppServiceStoragePrivateEndpointDeploymentTests.cs (2)
216await auto.RunCommandAsync( 222await auto.RunCommandAsync(
AzureConnectorNamespaceDeploymentTests.cs (2)
100await auto.RunCommandAsync( 115await auto.RunCommandAsync(
AzureRoleAssignmentRunModeTests.cs (7)
162await auto.RunCommandAsync(contextCommand, counter); 170await auto.RunCommandAsync("aspire start --non-interactive --format Json", counter, TimeSpan.FromMinutes(20)); 177await auto.RunCommandAsync("aspire wait storage-roles --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26)); 183await auto.RunCommandAsync("aspire wait storage --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26)); 190await auto.RunCommandAsync($"az deployment group show --subscription {subscriptionId} --resource-group {resourceGroupName} --name storage-roles -o json > roles-deployment.json", counter, TimeSpan.FromMinutes(2)); 191await auto.RunCommandAsync($"az account show --subscription {subscriptionId} -o json > az-account.json", counter, TimeSpan.FromMinutes(1)); 194await auto.RunCommandAsync($"python3 validate-role-assignment.py roles-deployment.json az-account.json {requireServicePrincipal}", counter, TimeSpan.FromSeconds(30));
AzureSandboxesDeploymentTests.cs (13)
85await auto.RunCommandAsync($"cd {projectName}", counter); 94await auto.RunCommandAsync($"dotnet new web -n {defaultServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 95await auto.RunCommandAsync($"dotnet new web -n {anonymousServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 96await auto.RunCommandAsync( 102await auto.RunCommandAsync($"touch {BashQuote(stateMarkerFile)}", counter); 103await auto.RunCommandAsync( 120await auto.RunCommandAsync( 124await auto.RunCommandAsync( 130await auto.RunCommandAsync( 134await auto.RunCommandAsync( 140await auto.RunCommandAsync( 146await auto.RunCommandAsync( 253await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
AzureStorageRunModeTests.cs (9)
145await auto.RunCommandAsync(contextCommand, counter); 153await auto.RunCommandAsync("aspire start --non-interactive --format Json", counter, TimeSpan.FromMinutes(20)); 158await auto.RunCommandAsync("aspire wait storage --status up --timeout 1500 --non-interactive", counter, TimeSpan.FromMinutes(26)); 161await auto.RunCommandAsync("aspire resource storage get-azure-resource --non-interactive > get-resource.json", counter, TimeSpan.FromMinutes(2)); 162await auto.RunCommandAsync("python3 validate-get-resource.py get-resource.json storage-resource-id.txt storage-deployment-id.txt", counter, TimeSpan.FromSeconds(30)); 165await auto.RunCommandAsync("az resource show --ids \"$(cat storage-resource-id.txt)\" --query \"properties.provisioningState\" -o tsv | grep '^Succeeded$'", counter, TimeSpan.FromMinutes(1)); 166await auto.RunCommandAsync("az resource show --ids \"$(cat storage-deployment-id.txt)\" --query \"properties.provisioningState\" -o tsv | grep '^Succeeded$'", counter, TimeSpan.FromMinutes(1)); 169await auto.RunCommandAsync("aspire resource azure-environment delete-azure-resources --non-interactive", counter, TimeSpan.FromMinutes(10)); 174await auto.RunCommandAsync($"az group exists --subscription {subscriptionId} --name {resourceGroupName} -o tsv | grep '^false$'", counter, TimeSpan.FromSeconds(30));
Helpers\DeploymentE2EAutomatorHelpers.cs (4)
56await auto.RunCommandAsync( 63await auto.RunCommandAsync( 74await auto.RunCommandAsync( 82await auto.RunCommandAsync(
tests\Shared\Hex1bAutomatorTestHelpers.cs (5)
303await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(workspacePath)}", counter); 314await auto.RunCommandAsync( 329await auto.RunCommandAsync(command, counter); 341await auto.RunCommandAsync( 354await auto.RunCommandAsync(
TypeScriptAzureContainerAppJobDeploymentTests.cs (3)
66await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 71await auto.RunCommandAsync($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter); 78await auto.RunCommandAsync(BuildJobVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(5));
TypeScriptJavaScriptHostingDeploymentTests.cs (3)
66await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 73await auto.RunCommandAsync($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter); 80await auto.RunCommandAsync(BuildEndpointVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(10));