113 references to RunCommandAsync
Aspire.Deployment.EndToEnd.Tests (113)
AcaExpressDeploymentTests.cs (4)
82await auto.RunCommandAsync($"cd {ProjectName}", counter); 86await auto.RunCommandAsync( 95await auto.RunCommandAsync( 115await auto.RunCommandAsync("unset Parameters__manualsecret", counter);
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(
AksCrossResourceGroupRegistryDeploymentTests.cs (19)
54await auto.RunCommandAsync($"az account set --subscription {subscriptionId}", counter); 55await auto.RunCommandAsync( 61await auto.RunCommandAsync($"cd {projectName}", counter); 91await auto.RunCommandAsync($"cd {projectName}.AppHost", counter); 92await auto.RunCommandAsync( 109await auto.RunCommandAsync( 137await auto.RunCommandAsync( 150await auto.RunCommandAsync( 168await auto.RunCommandAsync( 172await auto.RunCommandAsync( 178await auto.RunCommandAsync( 185await auto.RunCommandAsync( 193await auto.RunCommandAsync( 198await auto.RunCommandAsync( 205await auto.RunCommandAsync("kill \"$PORT_FORWARD_PID\" && { wait \"$PORT_FORWARD_PID\" || test $? -eq 143; }", counter); 209await auto.RunCommandAsync( 218await auto.RunCommandAsync( 232await auto.RunCommandAsync( 338await auto.RunCommandAsync(
AksPersistentVolumeDeploymentTests.cs (18)
86await auto.RunCommandAsync( 105await auto.RunCommandAsync( 110await auto.RunCommandAsync( 114await auto.RunCommandAsync( 125await auto.RunCommandAsync( 146await auto.RunCommandAsync( 150await auto.RunCommandAsync( 155await auto.RunCommandAsync( 187await auto.RunCommandAsync( 370await auto.RunCommandAsync( 374await auto.RunCommandAsync( 385await auto.RunCommandAsync( 396await auto.RunCommandAsync( 418await auto.RunCommandAsync( 439await auto.RunCommandAsync( 476await auto.RunCommandAsync( 486await auto.RunCommandAsync( 498await auto.RunCommandAsync(
AppServiceDotnetProjectDeploymentTests.cs (3)
33await auto.RunCommandAsync($"cd {projectName}", counter); 54await auto.RunCommandAsync($"cd {projectName}.AppHost", counter); 55await auto.RunCommandAsync(
AppServiceStoragePrivateEndpointDeploymentTests.cs (2)
216await auto.RunCommandAsync( 222await auto.RunCommandAsync(
AzureConnectorNamespaceDeploymentTests.cs (2)
100await auto.RunCommandAsync( 115await auto.RunCommandAsync(
AzureEntraIdDeploymentTests.cs (6)
74await auto.RunCommandAsync("cd EntraDeployment", counter); 77await auto.RunCommandAsync("dotnet new web -n Consumer --no-restore", counter, TimeSpan.FromMinutes(2)); 81await auto.RunCommandAsync( 88await auto.RunCommandAsync( 98await auto.RunCommandAsync( 179return auto.RunCommandAsync(command, counter, TimeSpan.FromMinutes(25));
AzureFunctionsDeploymentTests.cs (3)
47await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 57await auto.RunCommandAsync( 67await 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)
88await auto.RunCommandAsync($"cd {projectName}", counter); 101await auto.RunCommandAsync($"dotnet new web -n {defaultServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 102await auto.RunCommandAsync($"dotnet new web -n {anonymousServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 103await auto.RunCommandAsync( 109await auto.RunCommandAsync($"touch {BashQuote(stateMarkerFile)}", counter); 110await auto.RunCommandAsync( 129await auto.RunCommandAsync( 133await auto.RunCommandAsync( 139await auto.RunCommandAsync( 143await auto.RunCommandAsync( 151await auto.RunCommandAsync( 158await auto.RunCommandAsync( 280await 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));
FoundryDotnetProjectDeploymentTests.cs (2)
43await auto.RunCommandAsync($"cd {projectName}", counter); 63await auto.RunCommandAsync(
Helpers\DeploymentE2EAutomatorHelpers.cs (4)
56await auto.RunCommandAsync( 63await auto.RunCommandAsync( 74await auto.RunCommandAsync( 86await auto.RunCommandAsync(
Helpers\DotnetProjectDeploymentHelpers.cs (1)
62return auto.RunCommandAsync($"bash -c {AspireCliShellCommandHelpers.QuoteBashArg(script)}", counter, timeout);
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)); 72await auto.RunCommandAsync($"unset ASPIRE_PLAYGROUND && export AZURE__LOCATION=westus3 && export AZURE__RESOURCEGROUP={resourceGroupName}", counter); 79await auto.RunCommandAsync(BuildJobVerificationCommand(resourceGroupName), counter, TimeSpan.FromMinutes(5));
TypeScriptAzureProvisioningDeploymentTests.cs (2)
135await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 142await auto.RunCommandAsync(
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));