129 references to RunCommandAsync
Aspire.Cli.EndToEnd.Tests (129)
AppHostSyntaxErrorOutputTests.cs (1)
142
await auto.
RunCommandAsync
($"cd \"$ASPIRE_E2E_WORKSPACE\"/{quotedWorkingDirectory}", counter, TimeSpan.FromSeconds(10));
BundleSmokeTests.cs (5)
161
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(ProjectName)}", counter);
162
await auto.
RunCommandAsync
("test ! -e .config/dotnet-tools.json", counter);
167
await auto.
RunCommandAsync
(
178
await auto.
RunCommandAsync
(
245
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
ChannelUpdateWorkflowTests.cs (4)
118
await auto.
RunCommandAsync
($"cd {projectName}", counter);
258
await auto.
RunCommandAsync
($"cd {projectName}", counter);
306
await auto.
RunCommandAsync
($"cd {projectName}", counter);
341
await auto.
RunCommandAsync
($"cd {projectName}", counter);
CliTelemetryTests.cs (1)
61
await auto.
RunCommandAsync
($"mkdir -p {diagDir}", counter);
CSharpProjectModeInitTests.cs (1)
108
await auto.
RunCommandAsync
(
DoctorCommandTests.cs (1)
187
await auto.
RunCommandAsync
(
EmptyAppHostTemplateTests.cs (13)
61
await auto.
RunCommandAsync
("mkdir source-feed && cp \"$HOME\"/.aspire/hives/*/packages/Aspire.ProjectTemplates.*.nupkg source-feed/", counter);
62
await auto.
RunCommandAsync
("aspire --version > /tmp/aspire-source-version", counter);
66
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
67
await auto.
RunCommandAsync
("aspire config set features.showAllTemplates true -g", counter);
68
await auto.
RunCommandAsync
(
75
await auto.
RunCommandAsync
("dotnet nuget disable source nuget.org", counter);
76
await auto.
RunCommandAsync
("dotnet nuget add source \"$PWD/source-feed\" --name source-override-e2e", counter);
79
await auto.
RunCommandAsync
(
82
await auto.
RunCommandAsync
(
90
await auto.
RunCommandAsync
("rm -rf \"$HOME/.aspire/logs\" && mkdir -p \"$HOME/.aspire/logs\"", counter);
92
await auto.
RunCommandAsync
(
98
await auto.
RunCommandAsync
("test -f SourceOverrideServiceDefaults/SourceOverrideServiceDefaults.csproj", counter);
117
await auto.
RunCommandAsync
(
EmulatedLocalReleaseBuildTests.cs (6)
104
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
169
await auto.
RunCommandAsync
($"cd {projectName}", counter);
231
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=stable", counter);
232
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={localStableVersion}", counter);
233
await auto.
RunCommandAsync
("export ASPIRE_CLI_PACKAGES=$HOME/.aspire/hives/local/packages", counter);
259
await auto.
RunCommandAsync
(
EmulatedReleasedBuildTests.cs (4)
84
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
145
await auto.
RunCommandAsync
($"cd {projectName}", counter);
162
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=stable", counter);
163
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={stableVersion}", counter);
EmulatedStagingBuildTests.cs (5)
96
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
163
await auto.
RunCommandAsync
($"cd {projectName}", counter);
193
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=staging", counter);
194
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={staging.Version}", counter);
195
await auto.
RunCommandAsync
($"export ASPIRE_CLI_COMMIT={staging.Commit}", counter);
Helpers\CliE2EAutomatorHelpers.cs (18)
75
await auto.
RunCommandAsync
("umask 000", counter);
78
await auto.
RunCommandAsync
(AspireCliShellCommandHelpers.GetPrepareAspireEnvironmentCommand(), counter);
82
await auto.
RunCommandAsync
("export DCP_DIAGNOSTICS_LOG_LEVEL=debug DCP_DIAGNOSTICS_LOG_FOLDER=~/.aspire/dcp-logs DCP_PRESERVE_EXECUTABLE_LOGS=1", counter);
89
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter);
91
await auto.
RunCommandAsync
($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter);
100
await auto.
RunCommandAsync
(
136
await auto.
RunCommandAsync
(
144
await auto.
RunCommandAsync
(
152
await auto.
RunCommandAsync
(
161
await auto.
RunCommandAsync
(
434
await auto.
RunCommandAsync
(
443
await auto.
RunCommandAsync
(
572
await auto.
RunCommandAsync
($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter);
581
await auto.
RunCommandAsync
(
598
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(300));
683
await auto.
RunCommandAsync
(
696
await auto.
RunCommandAsync
("clear", counter);
735
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(300));
JavaScriptPublishTests.cs (5)
110
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
125
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
127
await auto.
RunCommandAsync
("aspire run > aspire-run.log 2>&1 & echo $! > aspire-run.pid", counter);
128
await auto.
RunCommandAsync
("bash verify-runtime.sh", counter, TimeSpan.FromMinutes(2));
134
await 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)
334
await auto.
RunCommandAsync
($"cd {ProjectName}", counter);
387
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
388
await auto.
RunCommandAsync
(
392
await auto.
RunCommandAsync
(
395
await auto.
RunCommandAsync
(
404
await auto.
RunCommandAsync
(
407
await auto.
RunCommandAsync
(
410
await auto.
RunCommandAsync
(
413
await auto.
RunCommandAsync
(
416
await auto.
RunCommandAsync
(
LaunchProfileTests.cs (1)
85
await auto.
RunCommandAsync
("cd LaunchProfile.AppHost", counter);
LogLevelTests.cs (2)
61
await auto.
RunCommandAsync
(
67
await auto.
RunCommandAsync
(
OllamaIntegrationTests.cs (3)
41
await auto.
RunCommandAsync
($"cd {ProjectName}", counter);
75
await auto.
RunCommandAsync
($"mkdir -p {crashDir}", counter);
76
await auto.
RunCommandAsync
(
PythonReactTemplateTests.cs (1)
47
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));
ResourceCommandTests.cs (4)
289
await auto.
RunCommandAsync
(
295
await auto.
RunCommandAsync
(
299
await auto.
RunCommandAsync
(
306
await auto.
RunCommandAsync
(
SdkExportTests.cs (1)
67
await auto.
RunCommandAsync
("bash run-sdk-export.sh", counter, TimeSpan.FromMinutes(5));
SelfUpdateChannelPersistenceTests.cs (7)
58
await auto.
RunCommandAsync
("aspire config delete channel -g", counter);
63
await auto.
RunCommandAsync
(
73
await auto.
RunCommandAsync
(
79
await auto.
RunCommandAsync
("hash -r; aspire --version", counter);
80
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
82
await auto.
RunCommandAsync
($"cd {projectName}", counter);
83
await auto.
RunCommandAsync
(
SmokeTests.cs (4)
88
await auto.
RunCommandAsync
($"cd {projectName}", counter);
89
await auto.
RunCommandAsync
("grep -F 'ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL' aspire.config.json && grep -F 'polyglotdevlocalhost.dev.localhost' aspire.config.json", counter);
140
await auto.
RunCommandAsync
($"cd {projectName}", counter);
177
await auto.
RunCommandAsync
($"cd {projectName}", counter);
StartStopTests.cs (15)
130
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
131
await auto.
RunCommandAsync
(
145
await auto.
RunCommandAsync
(
148
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter);
151
await auto.
RunCommandAsync
(
169
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter);
171
await auto.
RunCommandAsync
(
181
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter);
183
await auto.
RunCommandAsync
(
243
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
286
await auto.
RunCommandAsync
("export ASPIRE_E2E_LAUNCHER_PGID=$(ps -o pgid= -p $$ | tr -d ' ') ASPIRE_E2E_LAUNCHER_SID=$(ps -o sid= -p $$ | tr -d ' ')", counter);
287
await auto.
RunCommandAsync
("aspire start --format json > /tmp/aspire-start.json", counter, TimeSpan.FromMinutes(2));
430
await auto.
RunCommandAsync
(
439
await auto.
RunCommandAsync
(
460
await auto.
RunCommandAsync
(
TerminalCommandTests.cs (2)
32
await auto.
RunCommandAsync
("aspire config set features.terminalCommandsEnabled true -g", counter);
57
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
(
TypeScriptBlazorGatewayTests.cs (3)
58
await auto.
RunCommandAsync
(
72
await auto.
RunCommandAsync
(
132
await auto.
RunCommandAsync
(
TypeScriptEmptyAppHostTemplateTests.cs (5)
65
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));
68
await auto.
RunCommandAsync
(
95
await auto.
RunCommandAsync
("cd TsDeadlockRepro", counter);
96
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
97
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));
TypeScriptStarterSmokeTests.cs (1)
86
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));
TypeScriptStarterTemplateTests.cs (1)
57
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));