173 references to RunCommandAsync
Aspire.Cli.EndToEnd.Tests (173)
AppHostSyntaxErrorOutputTests.cs (1)
142await auto.RunCommandAsync($"cd \"$ASPIRE_E2E_WORKSPACE\"/{quotedWorkingDirectory}", counter, TimeSpan.FromSeconds(10));
BundleSmokeTests.cs (5)
161await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(ProjectName)}", counter); 162await auto.RunCommandAsync("test ! -e .config/dotnet-tools.json", counter); 167await auto.RunCommandAsync( 178await auto.RunCommandAsync( 245await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
ChannelUpdateWorkflowTests.cs (4)
118await auto.RunCommandAsync($"cd {projectName}", counter); 258await auto.RunCommandAsync($"cd {projectName}", counter); 306await auto.RunCommandAsync($"cd {projectName}", counter); 341await auto.RunCommandAsync($"cd {projectName}", counter);
CliTelemetryTests.cs (1)
61await auto.RunCommandAsync($"mkdir -p {diagDir}", counter);
CompletionTests.cs (9)
44await auto.RunCommandAsync("mkdir -p completion-bin && cp \"$(command -v aspire)\" completion-bin/aspire && test -x completion-bin/aspire", counter); 49await auto.RunCommandAsync( 52await auto.RunCommandAsync( 58await auto.RunCommandAsync("bash -n completion.bash && source completion.bash && complete -p aspire > registration.txt", counter); 84await auto.RunCommandAsync("aspire completions script bash > completion.bash && source completion.bash", counter); 97await auto.RunCommandAsync("chmod +x completion-source/aspire && export PATH=\"$PWD/completion-source:$PATH\"", counter); 101await auto.RunCommandAsync($"export COMPLETION_TEST_VALUE={AspireCliShellCommandHelpers.QuoteBashArg(candidate)}", counter); 115await auto.RunCommandAsync("export COMPLETION_TEST_VALUE=--apphost", counter); 128await auto.RunCommandAsync("export PATH=\"${PATH#\"$PWD/completion-source:\"}\"", counter);
CSharpInitTests.cs (3)
48await auto.RunCommandAsync("cd app", counter); 119await auto.RunCommandAsync( 140await auto.RunCommandAsync("aspire describe --format json > resources.json", counter);
CSharpProjectModeInitTests.cs (1)
108await auto.RunCommandAsync(
DockerComposeDeployWithVolumeTests.cs (6)
139await auto.RunCommandAsync("unset ASPIRE_PLAYGROUND; mkdir -p deploy-output", counter); 140await auto.RunCommandAsync( 145await auto.RunCommandAsync( 164await auto.RunCommandAsync( 172await auto.RunCommandAsync( 209await auto.RunCommandAsync(
DoctorCommandTests.cs (1)
188await auto.RunCommandAsync(
EmptyAppHostTemplateTests.cs (13)
61await auto.RunCommandAsync("mkdir source-feed && cp \"$HOME\"/.aspire/hives/*/packages/Aspire.ProjectTemplates.*.nupkg source-feed/", counter); 62await auto.RunCommandAsync("aspire --version > /tmp/aspire-source-version", counter); 66await auto.RunCommandAsync("aspire config set features.updateNotificationsEnabled false -g", counter); 67await auto.RunCommandAsync("aspire config set features.showAllTemplates true -g", counter); 68await auto.RunCommandAsync( 75await auto.RunCommandAsync("dotnet nuget disable source nuget.org", counter); 76await auto.RunCommandAsync("dotnet nuget add source \"$PWD/source-feed\" --name source-override-e2e", counter); 79await auto.RunCommandAsync( 82await auto.RunCommandAsync( 90await auto.RunCommandAsync("rm -rf \"$HOME/.aspire/logs\" && mkdir -p \"$HOME/.aspire/logs\"", counter); 92await auto.RunCommandAsync( 98await auto.RunCommandAsync("test -f SourceOverrideServiceDefaults/SourceOverrideServiceDefaults.csproj", counter); 113await auto.RunCommandAsync(
EmulatedLocalReleaseBuildTests.cs (6)
104await auto.RunCommandAsync($"cd {projectName}/{projectName}.AppHost", counter); 169await auto.RunCommandAsync($"cd {projectName}", counter); 231await auto.RunCommandAsync("export ASPIRE_CLI_CHANNEL=stable", counter); 232await auto.RunCommandAsync($"export ASPIRE_CLI_VERSION={localStableVersion}", counter); 233await auto.RunCommandAsync("export ASPIRE_CLI_PACKAGES=$HOME/.aspire/hives/local/packages", counter); 259await auto.RunCommandAsync(
EmulatedReleasedBuildTests.cs (4)
84await auto.RunCommandAsync($"cd {projectName}/{projectName}.AppHost", counter); 145await auto.RunCommandAsync($"cd {projectName}", counter); 162await auto.RunCommandAsync("export ASPIRE_CLI_CHANNEL=stable", counter); 163await auto.RunCommandAsync($"export ASPIRE_CLI_VERSION={stableVersion}", counter);
EmulatedStagingBuildTests.cs (5)
96await auto.RunCommandAsync($"cd {projectName}/{projectName}.AppHost", counter); 163await auto.RunCommandAsync($"cd {projectName}", counter); 193await auto.RunCommandAsync("export ASPIRE_CLI_CHANNEL=staging", counter); 194await auto.RunCommandAsync($"export ASPIRE_CLI_VERSION={staging.Version}", counter); 195await auto.RunCommandAsync($"export ASPIRE_CLI_COMMIT={staging.Commit}", counter);
Helpers\CliE2EAutomatorHelpers.cs (19)
75await auto.RunCommandAsync("umask 000", counter); 78await auto.RunCommandAsync(AspireCliShellCommandHelpers.GetPrepareAspireEnvironmentCommand(), counter); 82await auto.RunCommandAsync("export DCP_DIAGNOSTICS_LOG_LEVEL=debug DCP_DIAGNOSTICS_LOG_FOLDER=~/.aspire/dcp-logs DCP_PRESERVE_EXECUTABLE_LOGS=1", counter); 89await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 91await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 95await auto.RunCommandAsync( 131await auto.RunCommandAsync( 139await auto.RunCommandAsync( 147await auto.RunCommandAsync( 156await auto.RunCommandAsync( 429await auto.RunCommandAsync( 438await auto.RunCommandAsync( 567await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter); 571await auto.RunCommandAsync( 588await auto.RunCommandAsync(command, counter, TimeSpan.FromSeconds(300)); 673await auto.RunCommandAsync( 686await auto.RunCommandAsync("clear", counter); 725await auto.RunCommandAsync(command, counter, TimeSpan.FromSeconds(300)); 929await auto.RunCommandAsync(
Helpers\KubernetesDeployTestHelpers.cs (3)
441await auto.RunCommandAsync( 447await auto.RunCommandAsync( 474await auto.RunCommandAsync(
JavaScriptPublishTests.cs (5)
110await auto.RunCommandAsync("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2)); 125await auto.RunCommandAsync("unset ASPIRE_PLAYGROUND", counter); 127await auto.RunCommandAsync("aspire run > aspire-run.log 2>&1 & echo $! > aspire-run.pid", counter); 128await auto.RunCommandAsync("bash verify-runtime.sh", counter, TimeSpan.FromMinutes(2)); 134await auto.RunCommandAsync("if [ -f aspire-run.pid ]; then kill \"$(cat aspire-run.pid)\" 2>/dev/null || true; wait \"$(cat aspire-run.pid)\" 2>/dev/null || true; fi", counter, TimeSpan.FromMinutes(1));
KubernetesPublishTests.cs (10)
334await auto.RunCommandAsync($"cd {ProjectName}", counter); 387await auto.RunCommandAsync("unset ASPIRE_PLAYGROUND", counter); 388await auto.RunCommandAsync( 392await auto.RunCommandAsync( 395await auto.RunCommandAsync( 404await auto.RunCommandAsync( 407await auto.RunCommandAsync( 410await auto.RunCommandAsync( 413await auto.RunCommandAsync( 416await auto.RunCommandAsync(
LaunchProfileTests.cs (1)
89await auto.RunCommandAsync("cd LaunchProfile.AppHost", counter);
LogLevelTests.cs (2)
61await auto.RunCommandAsync( 67await auto.RunCommandAsync(
OllamaIntegrationTests.cs (3)
41await auto.RunCommandAsync($"cd {ProjectName}", counter); 75await auto.RunCommandAsync($"mkdir -p {crashDir}", counter); 76await auto.RunCommandAsync(
PythonReactTemplateTests.cs (1)
47await auto.RunCommandAsync("npm run build", counter, TimeSpan.FromMinutes(2));
RadiusDotnetProjectDeployTests.cs (6)
88await auto.RunCommandAsync("mkdir -p images; unset ASPIRE_PLAYGROUND", counter); 92await auto.RunCommandAsync( 98await auto.RunCommandAsync( 105await auto.RunCommandAsync($"kubectl create namespace {radiusNamespace} --context kind-{clusterName}", counter); 106await auto.RunCommandAsync( 111await auto.RunCommandAsync(
RepositoryToolUpdateTests.cs (3)
143await auto.RunCommandAsync("aspire config set features.updateNotificationsEnabled false -g", counter); 144await auto.RunCommandAsync( 190await auto.RunCommandAsync(
ResourceCommandTests.cs (4)
289await auto.RunCommandAsync( 295await auto.RunCommandAsync( 299await auto.RunCommandAsync( 306await auto.RunCommandAsync(
SdkExportTests.cs (1)
67await auto.RunCommandAsync("bash run-sdk-export.sh", counter, TimeSpan.FromMinutes(5));
SelfUpdateChannelPersistenceTests.cs (6)
56await auto.RunCommandAsync("aspire config delete channel -g", counter); 68await auto.RunCommandAsync( 81await auto.RunCommandAsync( 88await auto.RunCommandAsync("aspire config set features.updateNotificationsEnabled false -g", counter); 96await auto.RunCommandAsync($"cd {projectName}", counter); 97await auto.RunCommandAsync(
SmokeTests.cs (14)
88await auto.RunCommandAsync($"cd {projectName}", counter); 102await auto.RunCommandAsync(runCommand, counter); 107await auto.RunCommandAsync( 125await auto.RunCommandAsync("kill -0 \"$(cat remote-ssh.pid)\"", counter); 126await auto.RunCommandAsync("aspire ps --format json > remote-ssh-ps.json", counter); 127await auto.RunCommandAsync( 130await auto.RunCommandAsync( 135await auto.RunCommandAsync( 138await auto.RunCommandAsync( 142await auto.RunCommandAsync( 170await auto.RunCommandAsync($"cd {projectName}", counter); 171await auto.RunCommandAsync("grep -F 'ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL' aspire.config.json && grep -F 'polyglotdevlocalhost.dev.localhost' aspire.config.json", counter); 222await auto.RunCommandAsync($"cd {projectName}", counter); 259await auto.RunCommandAsync($"cd {projectName}", counter);
StartStopTests.cs (19)
99await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 142await auto.RunCommandAsync($"ln -s {projectName} {projectLinkName}", counter); 148await auto.RunCommandAsync( 152await auto.RunCommandAsync( 224await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 225await auto.RunCommandAsync( 239await auto.RunCommandAsync( 242await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 245await auto.RunCommandAsync( 263await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter); 265await auto.RunCommandAsync( 275await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 277await auto.RunCommandAsync( 337await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 380await auto.RunCommandAsync("export ASPIRE_E2E_LAUNCHER_PGID=$(ps -o pgid= -p $$ | tr -d ' ') ASPIRE_E2E_LAUNCHER_SID=$(ps -o sid= -p $$ | tr -d ' ')", counter); 381await auto.RunCommandAsync("aspire start --format json > /tmp/aspire-start.json", counter, TimeSpan.FromMinutes(2)); 524await auto.RunCommandAsync( 533await auto.RunCommandAsync( 554await auto.RunCommandAsync(
TerminalCommandTests.cs (2)
32await auto.RunCommandAsync("aspire config set features.terminalCommandsEnabled true -g", counter); 57await 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(
TypeScriptBlazorGatewayTests.cs (3)
58await auto.RunCommandAsync( 72await auto.RunCommandAsync( 132await auto.RunCommandAsync(
TypeScriptEmptyAppHostTemplateTests.cs (5)
65await auto.RunCommandAsync("npm run build", counter, TimeSpan.FromMinutes(2)); 68await auto.RunCommandAsync( 95await auto.RunCommandAsync("cd TsDeadlockRepro", counter); 96await auto.RunCommandAsync("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3)); 97await auto.RunCommandAsync("npm run build", counter, TimeSpan.FromMinutes(2));
TypeScriptStarterSmokeTests.cs (1)
86await auto.RunCommandAsync("npm run build", counter, TimeSpan.FromMinutes(2));
TypeScriptStarterTemplateTests.cs (1)
57await auto.RunCommandAsync("npm run build", counter, TimeSpan.FromMinutes(2));