85 references to RunCommandAsync
Aspire.Deployment.EndToEnd.Tests (85)
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(
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); 56await auto.RunCommandAsync($"cd {projectName}.AppHost", counter); 57await 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)
90await auto.RunCommandAsync($"cd {projectName}", counter); 103await auto.RunCommandAsync($"dotnet new web -n {defaultServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 104await auto.RunCommandAsync($"dotnet new web -n {anonymousServiceName} --no-restore", counter, TimeSpan.FromMinutes(2)); 105await auto.RunCommandAsync( 111await auto.RunCommandAsync($"touch {BashQuote(stateMarkerFile)}", counter); 112await auto.RunCommandAsync( 131await auto.RunCommandAsync( 135await auto.RunCommandAsync( 141await auto.RunCommandAsync( 145await auto.RunCommandAsync( 151await auto.RunCommandAsync( 157await auto.RunCommandAsync( 281await 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)
44await auto.RunCommandAsync($"cd {projectName}", counter); 64await 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)
134await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 141await 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));