370 references to RunCommandAsync
Aspire.Cli.EndToEnd.Tests (370)
AgentCommandTests.cs (8)
227
await auto.
RunCommandAsync
(
229
await auto.
RunCommandAsync
(
426
await auto.
RunCommandAsync
(
430
await auto.
RunCommandAsync
("docker network disconnect bridge \"$HOSTNAME\"", counter);
432
await auto.
RunCommandAsync
(
439
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerProject)}", counter);
499
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(60));
509
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(60));
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
(
247
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
ChannelUpdateWorkflowTests.cs (4)
119
await auto.
RunCommandAsync
($"cd {projectName}", counter);
256
await auto.
RunCommandAsync
($"cd {projectName}", counter);
305
await auto.
RunCommandAsync
($"cd {projectName}", counter);
341
await auto.
RunCommandAsync
($"cd {projectName}", counter);
CliTelemetryTests.cs (1)
61
await auto.
RunCommandAsync
($"mkdir -p {diagDir}", counter);
CompletionTests.cs (9)
44
await auto.
RunCommandAsync
("mkdir -p completion-bin && cp \"$(command -v aspire)\" completion-bin/aspire && test -x completion-bin/aspire", counter);
49
await auto.
RunCommandAsync
(
52
await auto.
RunCommandAsync
(
58
await auto.
RunCommandAsync
("bash -n completion.bash && source completion.bash && complete -p aspire > registration.txt", counter);
84
await auto.
RunCommandAsync
("aspire completions script bash > completion.bash && source completion.bash", counter);
97
await auto.
RunCommandAsync
("chmod +x completion-source/aspire && export PATH=\"$PWD/completion-source:$PATH\"", counter);
101
await auto.
RunCommandAsync
($"export COMPLETION_TEST_VALUE={AspireCliShellCommandHelpers.QuoteBashArg(candidate)}", counter);
115
await auto.
RunCommandAsync
("export COMPLETION_TEST_VALUE=--apphost", counter);
128
await auto.
RunCommandAsync
("export PATH=\"${PATH#\"$PWD/completion-source:\"}\"", counter);
ConfigMigrationTests.cs (1)
591
await auto.
RunCommandAsync
(
CSharpInitTests.cs (3)
48
await auto.
RunCommandAsync
("cd app", counter);
119
await auto.
RunCommandAsync
(
140
await auto.
RunCommandAsync
("aspire describe --format json > resources.json", counter);
CSharpProjectModeInitTests.cs (1)
108
await auto.
RunCommandAsync
(
CustomTemplateTests.cs (19)
62
await auto.
RunCommandAsync
("! command -v dotnet", counter);
66
await auto.
RunCommandAsync
("aspire template source add git-example --repository https://example.test/templates --ref main --path templates --yes --nologo", counter);
67
await auto.
RunCommandAsync
("cp \"$HOME/.aspire/aspire.config.json\" before.json", counter);
68
await auto.
RunCommandAsync
(
71
await auto.
RunCommandAsync
("cmp before.json \"$HOME/.aspire/aspire.config.json\"", counter);
97
await auto.
RunCommandAsync
("cmp before.json \"$HOME/.aspire/aspire.config.json\"", counter);
102
await auto.
RunCommandAsync
("aspire template source list --format json > sources.json", counter);
109
await auto.
RunCommandAsync
("aspire template source list > sources.txt", counter);
113
await auto.
RunCommandAsync
("cp \"$HOME/.aspire/aspire.config.json\" before.json", counter);
114
await auto.
RunCommandAsync
($"aspire template source add COMPANY --repository https://example.test/replacement --yes --nologo; test $? -eq {CliExitCodes.InvalidCommand}", counter);
115
await auto.
RunCommandAsync
("cmp before.json \"$HOME/.aspire/aspire.config.json\"", counter);
116
await auto.
RunCommandAsync
($"aspire config set templateSources.company.path ../escape --global --nologo; test $? -eq {CliExitCodes.InvalidCommand}", counter);
117
await auto.
RunCommandAsync
("cmp before.json \"$HOME/.aspire/aspire.config.json\"", counter);
118
await auto.
RunCommandAsync
("aspire template source remove git-example --nologo", counter);
124
await auto.
RunCommandAsync
(
199
await auto.
RunCommandAsync
("! command -v dotnet", counter);
202
await auto.
RunCommandAsync
("aspire template source remove COMPANY --nologo", counter);
203
await auto.
RunCommandAsync
("aspire template source list --format json > empty-sources.json", counter);
205
await auto.
RunCommandAsync
($"aspire template source remove company --nologo; test $? -eq {CliExitCodes.ConfigNotFound}", counter);
DockerComposeDeployWithVolumeTests.cs (6)
141
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND; mkdir -p deploy-output", counter);
142
await auto.
RunCommandAsync
(
147
await auto.
RunCommandAsync
(
166
await auto.
RunCommandAsync
(
174
await auto.
RunCommandAsync
(
211
await auto.
RunCommandAsync
(
DockerDeploymentTests.cs (1)
217
await auto.
RunCommandAsync
(
DoctorCommandTests.cs (5)
76
await auto.
RunCommandAsync
(
82
await auto.
RunCommandAsync
($"export {variableName}={configuredRuntime}", counter);
89
await auto.
RunCommandAsync
(
93
await auto.
RunCommandAsync
(
299
await auto.
RunCommandAsync
(
EmptyAppHostTemplateTests.cs (29)
62
await auto.
RunCommandAsync
("cd DestroySentinel", counter);
74
await auto.
RunCommandAsync
(
88
await auto.
RunCommandAsync
(
111
await auto.
RunCommandAsync
("mkdir source-feed && cp \"$HOME\"/.aspire/hives/*/packages/Aspire.ProjectTemplates.*.nupkg source-feed/", counter);
112
await auto.
RunCommandAsync
("aspire --version > /tmp/aspire-source-version", counter);
116
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
117
await auto.
RunCommandAsync
("aspire config set features.showAllTemplates true -g", counter);
118
await auto.
RunCommandAsync
(
125
await auto.
RunCommandAsync
("dotnet nuget disable source nuget.org", counter);
126
await auto.
RunCommandAsync
("dotnet nuget add source \"$PWD/source-feed\" --name source-override-e2e", counter);
130
await auto.
RunCommandAsync
("rm -rf \"$HOME/.aspire/logs\" && mkdir -p \"$HOME/.aspire/logs\"", counter);
132
await auto.
RunCommandAsync
(
138
await auto.
RunCommandAsync
("test -f SourceOverrideServiceDefaults/SourceOverrideServiceDefaults.csproj", counter);
153
await auto.
RunCommandAsync
(
187
await auto.
RunCommandAsync
(
200
await auto.
RunCommandAsync
(
204
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
205
await auto.
RunCommandAsync
("aspire config set features.showAllTemplates true -g", counter);
207
await auto.
RunCommandAsync
("rm -rf \"$HOME/.aspire/logs\" && mkdir -p \"$HOME/.aspire/logs\"", counter);
209
await auto.
RunCommandAsync
(
215
await auto.
RunCommandAsync
("test -f AmbientServiceDefaults/AmbientServiceDefaults.csproj", counter);
216
await auto.
RunCommandAsync
(
246
await auto.
RunCommandAsync
(
250
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
251
await auto.
RunCommandAsync
("aspire config set features.showAllTemplates true -g", counter);
253
await auto.
RunCommandAsync
("rm -rf \"$HOME/.aspire/logs\" && mkdir -p \"$HOME/.aspire/logs\"", counter);
255
await auto.
RunCommandAsync
(
261
await auto.
RunCommandAsync
("test -f DailyServiceDefaults/DailyServiceDefaults.csproj", counter);
262
await auto.
RunCommandAsync
(
EmulatedLocalReleaseBuildTests.cs (15)
104
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
167
await auto.
RunCommandAsync
($"cd {projectName}", counter);
228
await auto.
RunCommandAsync
("export NUGET_PACKAGES=\"$PWD/.nuget-packages\"", counter);
229
await auto.
RunCommandAsync
(
246
await auto.
RunCommandAsync
(
263
await auto.
RunCommandAsync
(
325
await auto.
RunCommandAsync
("export NUGET_PACKAGES=\"$PWD/.nuget-packages\"", counter);
326
await auto.
RunCommandAsync
(
347
await auto.
RunCommandAsync
(
361
await auto.
RunCommandAsync
(
471
await auto.
RunCommandAsync
(
501
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=stable", counter);
502
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={localStableVersion}", counter);
503
await auto.
RunCommandAsync
("export ASPIRE_CLI_PACKAGES=$HOME/.aspire/hives/local/packages", counter);
529
await auto.
RunCommandAsync
(
EmulatedReleasedBuildTests.cs (4)
83
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
144
await auto.
RunCommandAsync
($"cd {projectName}", counter);
161
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=stable", counter);
162
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={stableVersion}", counter);
EmulatedStagingBuildTests.cs (5)
109
await auto.
RunCommandAsync
($"cd {projectName}/{projectName}.AppHost", counter);
176
await auto.
RunCommandAsync
($"cd {projectName}", counter);
206
await auto.
RunCommandAsync
("export ASPIRE_CLI_CHANNEL=staging", counter);
207
await auto.
RunCommandAsync
($"export ASPIRE_CLI_VERSION={staging.Version}", counter);
208
await auto.
RunCommandAsync
($"export ASPIRE_CLI_COMMIT={staging.Commit}", counter);
GoCodegenValidationTests.cs (4)
36
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
56
await auto.
RunCommandAsync
("mkdir -p ~/sdk-baseline && cp .aspire/modules/aspire.go .aspire/modules/.codegen-hash ~/sdk-baseline/", counter);
58
await auto.
RunCommandAsync
("cp ~/sdk-baseline/aspire.go ~/sdk-baseline/.codegen-hash .aspire/modules/", counter);
65
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
GoEmptyAppHostTemplateTests.cs (3)
81
await auto.
RunCommandAsync
($"cd {projectName}", counter);
82
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
85
await auto.
RunCommandAsync
("go build -buildvcs=false ./...", counter, TimeSpan.FromMinutes(3));
GoKubernetesDeployTests.cs (3)
66
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
71
await auto.
RunCommandAsync
("(cd api && go mod tidy)", counter, TimeSpan.FromMinutes(3));
117
await auto.
RunCommandAsync
(
GoPolyglotApphostDirectoryTests.cs (2)
43
await auto.
RunCommandAsync
("mkdir goapp && cd goapp", counter);
56
await auto.
RunCommandAsync
("cd ..", counter);
GoPublishTests.cs (13)
34
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
38
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
39
await auto.
RunCommandAsync
("aspire publish -o artifacts --non-interactive", counter, TimeSpan.FromMinutes(5));
41
await auto.
RunCommandAsync
("ls -la artifacts/docker-compose.yaml", counter);
42
await auto.
RunCommandAsync
("grep -F \"api:\" artifacts/docker-compose.yaml", counter);
43
await auto.
RunCommandAsync
("grep -F \"validation-api\" artifacts/docker-compose.yaml", counter);
65
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
69
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
70
await auto.
RunCommandAsync
("aspire publish --non-interactive", counter, TimeSpan.FromMinutes(5));
98
await auto.
RunCommandAsync
($"cd {projectName}", counter);
100
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
107
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
108
await auto.
RunCommandAsync
("aspire publish -o artifacts --non-interactive", counter, TimeSpan.FromMinutes(5));
GoSecretAppHostTests.cs (7)
50
await auto.
RunCommandAsync
("aspire secret get MyConfig:ApiKey --apphost apphost.go | grep -qx 'test-key-123'", counter, TimeSpan.FromSeconds(30));
51
await auto.
RunCommandAsync
("aspire secret list --apphost apphost.go | grep 'ConnectionStrings:Db' | grep 'Server=localhost' >/dev/null", counter, TimeSpan.FromSeconds(30));
61
await auto.
RunCommandAsync
("aspire secret list --apphost apphost.go --format json > listed-secrets.json", counter, TimeSpan.FromSeconds(30));
76
await auto.
RunCommandAsync
("aspire secret get MyConfig:ApiKey --environment Staging --apphost apphost.go | grep -qx 'staging-go-secret'", counter, TimeSpan.FromSeconds(30));
77
await auto.
RunCommandAsync
("aspire secret get MyConfig:ApiKey --environment Production --apphost apphost.go | grep -qx 'production-go-secret'", counter, TimeSpan.FromSeconds(30));
78
await auto.
RunCommandAsync
("aspire secret list --all --apphost apphost.go | grep 'staging-go-secret' | grep 'Staging' >/dev/null", counter, TimeSpan.FromSeconds(30));
79
await auto.
RunCommandAsync
("aspire secret list --all --apphost apphost.go | grep 'production-go-secret' | grep 'Production' >/dev/null", counter, TimeSpan.FromSeconds(30));
GoStarterTemplateTests.cs (1)
52
await auto.
RunCommandAsync
("go build -buildvcs=false ./...", counter, TimeSpan.FromMinutes(3));
Helpers\CliE2EAutomatorHelpers.cs (22)
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);
95
await auto.
RunCommandAsync
(
117
await auto.
RunCommandAsync
($"printf '127.0.0.1 {blockedHosts}\\n' >> /etc/hosts", counter);
118
await auto.
RunCommandAsync
(
131
=> auto.
RunCommandAsync
("test ! -e /tmp/unexpected-nuget-source-contacted", counter);
160
await auto.
RunCommandAsync
(
168
await auto.
RunCommandAsync
(
180
await auto.
RunCommandAsync
(
189
await auto.
RunCommandAsync
(
516
await auto.
RunCommandAsync
(
529
await auto.
RunCommandAsync
(
658
await auto.
RunCommandAsync
($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter);
662
await auto.
RunCommandAsync
(
679
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(300));
764
await auto.
RunCommandAsync
(
777
await auto.
RunCommandAsync
("clear", counter);
849
await auto.
RunCommandAsync
(command, counter, TimeSpan.FromSeconds(300));
1053
await auto.
RunCommandAsync
(
Helpers\ConfigSourceTestContext.cs (37)
60
await _auto.
RunCommandAsync
($"{NewCommand} --use-config-source --non-interactive", _counter,
67
await _auto.
RunCommandAsync
($"{NewCommand} --use-config-source false --non-interactive", _counter,
71
await _auto.
RunCommandAsync
("aspire config delete configSource", _counter);
72
await _auto.
RunCommandAsync
("aspire config set docs.llmsTxtUrl https://local.example/llms.txt", _counter);
82
await _auto.
RunCommandAsync
("mkdir SourceApp && cd SourceApp && dotnet new sln --name SourceApp", _counter);
83
await _auto.
RunCommandAsync
(
86
await _auto.
RunCommandAsync
(
99
await _auto.
RunCommandAsync
("mkdir AppHost && mv apphost.cs apphost.run.json AppHost", _counter);
100
await _auto.
RunCommandAsync
("aspire config set appHost.path AppHost/apphost.cs", _counter);
137
await _auto.
RunCommandAsync
(
213
await _auto.
RunCommandAsync
(
215
await _auto.
RunCommandAsync
(command, _counter);
218
await _auto.
RunCommandAsync
(
228
await _auto.
RunCommandAsync
($"aspire config set skillSources.{source}.enabled false", _counter);
230
await _auto.
RunCommandAsync
(
253
await _auto.
RunCommandAsync
($"cd \"{directory}\"", _counter);
258
=> _auto.
RunCommandAsync
("test ! -f aspire.config.json", _counter);
265
await _auto.
RunCommandAsync
("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- expire", _counter);
266
await _auto.
RunCommandAsync
(
268
await _auto.
RunCommandAsync
("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- wait \"$source_run_pid\"", _counter,
270
await _auto.
RunCommandAsync
("kill -INT \"$source_run_pid\"; timeout 120 tail --pid=\"$source_run_pid\" -f /dev/null; wait \"$source_run_pid\"", _counter,
272
await _auto.
RunCommandAsync
("cat \"$ASPIRE_E2E_WORKSPACE/run.log\"", _counter);
279
await _auto.
RunCommandAsync
(
289
await _auto.
RunCommandAsync
(
335
await _auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", _counter);
337
await _auto.
RunCommandAsync
("git config --global --add safe.directory \"$ASPIRE_E2E_WORKSPACE/configuration source\"", _counter);
338
await _auto.
RunCommandAsync
("git -C 'configuration source' init --initial-branch=main", _counter);
339
await _auto.
RunCommandAsync
("git -C 'configuration source' config user.name 'Aspire E2E'", _counter);
340
await _auto.
RunCommandAsync
("git -C 'configuration source' config user.email aspire-e2e@example.com", _counter);
342
await _auto.
RunCommandAsync
(
349
await _auto.
RunCommandAsync
("cd SourceApp", _counter);
350
await _auto.
RunCommandAsync
("aspire config set docs.custom keep", _counter);
354
=> _auto.
RunCommandAsync
("test ! -d \"$HOME/.aspire/configsources\"", _counter);
360
await _auto.
RunCommandAsync
(
369
=> _auto.
RunCommandAsync
(
404
await _auto.
RunCommandAsync
(
408
await _auto.
RunCommandAsync
(
Helpers\KubernetesDeployTestHelpers.cs (3)
477
await auto.
RunCommandAsync
(
483
await auto.
RunCommandAsync
(
510
await auto.
RunCommandAsync
(
IntegrationHostLifetimeTests.cs (30)
62
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(3));
67
await auto.
RunCommandAsync
(
70
await auto.
RunCommandAsync
("node process-control.mjs install-ready", counter, TimeSpan.FromMinutes(3));
71
await auto.
RunCommandAsync
("node process-control.mjs install-kill", counter);
72
await auto.
RunCommandAsync
("node process-control.mjs install-stopped", counter, TimeSpan.FromSeconds(75));
73
await auto.
RunCommandAsync
("grep 'INSTALL_LIFETIME' install-session.log", counter);
75
await auto.
RunCommandAsync
("aspire restore --non-interactive", counter, TimeSpan.FromMinutes(3));
81
await auto.
RunCommandAsync
(
84
await auto.
RunCommandAsync
("node process-control.mjs ready", counter, TimeSpan.FromMinutes(3));
85
await auto.
RunCommandAsync
("aspire resource probe probe > probe-before.log 2>&1", counter);
86
await auto.
RunCommandAsync
("node process-control.mjs probe && node process-control.mjs snapshot", counter);
90
await auto.
RunCommandAsync
("node process-control.mjs block", counter, TimeSpan.FromSeconds(75));
95
await auto.
RunCommandAsync
(
106
await auto.
RunCommandAsync
(
109
await auto.
RunCommandAsync
("node process-control.mjs stall-diagnostics", counter);
113
await auto.
RunCommandAsync
("node process-control.mjs stopped", counter, TimeSpan.FromSeconds(75));
118
await auto.
RunCommandAsync
(
121
await auto.
RunCommandAsync
("grep -iE 'exited|failed|disconnect' run.log", counter);
125
await auto.
RunCommandAsync
("node process-control.mjs exhausted", counter);
129
await auto.
RunCommandAsync
("node process-control.mjs callbacks", counter);
131
await auto.
RunCommandAsync
("aspire start --non-interactive > restart.log 2>&1", counter, TimeSpan.FromMinutes(3));
135
await auto.
RunCommandAsync
("node process-control.mjs recovered", counter, TimeSpan.FromSeconds(75));
138
await auto.
RunCommandAsync
("aspire resource probe probe > probe-after.log 2>&1", counter);
139
await auto.
RunCommandAsync
("node process-control.mjs probe && cat probe-after.log", counter);
140
await auto.
RunCommandAsync
("aspire describe probe --format json > recovered-resource.json", counter);
141
await auto.
RunCommandAsync
("node process-control.mjs describe", counter);
142
await auto.
RunCommandAsync
("aspire stop --non-interactive > stop.log 2>&1", counter, TimeSpan.FromMinutes(1));
143
await auto.
RunCommandAsync
("node process-control.mjs clean", counter, TimeSpan.FromSeconds(75));
146
await auto.
RunCommandAsync
("mkdir -p exported-logs && install -m 0644 session.log exported-logs/session.log", counter);
149
await auto.
RunCommandAsync
("install -m 0644 install-session.log exported-logs/install-session.log", counter);
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));
KubernetesDeployBasicApiServiceTests.cs (1)
149
await auto.
RunCommandAsync
(
KubernetesDeployWithCertManagerTests.cs (14)
51
await auto.
RunCommandAsync
(
65
await auto.
RunCommandAsync
($"cd {projectName}", counter);
72
await auto.
RunCommandAsync
("aspire restore", counter, TimeSpan.FromMinutes(3));
85
await auto.
RunCommandAsync
(
93
await auto.
RunCommandAsync
("aspire deploy --non-interactive", counter, TimeSpan.FromMinutes(10));
97
await auto.
RunCommandAsync
(
109
await auto.
RunCommandAsync
(
132
await auto.
RunCommandAsync
(
139
await auto.
RunCommandAsync
("aspire deploy --non-interactive", counter, TimeSpan.FromMinutes(10));
140
await auto.
RunCommandAsync
(
153
await auto.
RunCommandAsync
(
156
await auto.
RunCommandAsync
(
162
await auto.
RunCommandAsync
(
170
await auto.
RunCommandAsync
(
KubernetesDeployWithFileKeyRefTests.cs (1)
143
await auto.
RunCommandAsync
(
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)
89
await auto.
RunCommandAsync
("cd LaunchProfile.AppHost", counter);
LogLevelTests.cs (2)
59
await auto.
RunCommandAsync
(
65
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
(
ProjectReferenceTests.cs (5)
55
await auto.
RunCommandAsync
("export NUGET_PACKAGES=\"$PWD/.nuget-packages\"", counter);
56
await auto.
RunCommandAsync
(
73
await auto.
RunCommandAsync
("grep -q addRedis .aspire/modules/aspire.mts", counter);
175
await auto.
RunCommandAsync
(
184
await auto.
RunCommandAsync
(
PythonReactTemplateTests.cs (1)
47
await auto.
RunCommandAsync
("npm run build", counter, TimeSpan.FromMinutes(2));
RadiusDotnetProjectDeployTests.cs (6)
87
await auto.
RunCommandAsync
("mkdir -p images; unset ASPIRE_PLAYGROUND", counter);
91
await auto.
RunCommandAsync
(
97
await auto.
RunCommandAsync
(
104
await auto.
RunCommandAsync
($"kubectl create namespace {radiusNamespace} --context kind-{clusterName}", counter);
105
await auto.
RunCommandAsync
(
110
await auto.
RunCommandAsync
(
RepositoryToolUpdateTests.cs (3)
143
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
144
await auto.
RunCommandAsync
(
190
await auto.
RunCommandAsync
(
ResourceCommandTests.cs (4)
287
await auto.
RunCommandAsync
(
293
await auto.
RunCommandAsync
(
297
await auto.
RunCommandAsync
(
304
await auto.
RunCommandAsync
(
SdkExportTests.cs (1)
67
await auto.
RunCommandAsync
("bash run-sdk-export.sh", counter, TimeSpan.FromMinutes(5));
SelfUpdateChannelPersistenceTests.cs (6)
66
await auto.
RunCommandAsync
("aspire config delete channel -g", counter);
78
await auto.
RunCommandAsync
(
91
await auto.
RunCommandAsync
(
98
await auto.
RunCommandAsync
("aspire config set features.updateNotificationsEnabled false -g", counter);
106
await auto.
RunCommandAsync
($"cd {projectName}", counter);
107
await auto.
RunCommandAsync
(
SmokeTests.cs (14)
87
await auto.
RunCommandAsync
($"cd {projectName}", counter);
101
await auto.
RunCommandAsync
(runCommand, counter);
106
await auto.
RunCommandAsync
(
124
await auto.
RunCommandAsync
("kill -0 \"$(cat remote-ssh.pid)\"", counter);
125
await auto.
RunCommandAsync
("aspire ps --format json > remote-ssh-ps.json", counter);
126
await auto.
RunCommandAsync
(
129
await auto.
RunCommandAsync
(
134
await auto.
RunCommandAsync
(
137
await auto.
RunCommandAsync
(
141
await auto.
RunCommandAsync
(
169
await auto.
RunCommandAsync
($"cd {projectName}", counter);
170
await auto.
RunCommandAsync
("grep -F 'ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL' aspire.config.json && grep -F 'polyglotdevlocalhost.dev.localhost' aspire.config.json", counter);
221
await auto.
RunCommandAsync
($"cd {projectName}", counter);
258
await auto.
RunCommandAsync
($"cd {projectName}", counter);
StartStopTests.cs (19)
99
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
142
await auto.
RunCommandAsync
($"ln -s {projectName} {projectLinkName}", counter);
148
await auto.
RunCommandAsync
(
152
await auto.
RunCommandAsync
(
224
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
225
await auto.
RunCommandAsync
(
239
await auto.
RunCommandAsync
(
242
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter);
245
await auto.
RunCommandAsync
(
263
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter);
265
await auto.
RunCommandAsync
(
275
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter);
277
await auto.
RunCommandAsync
(
337
await auto.
RunCommandAsync
($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
380
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);
381
await auto.
RunCommandAsync
("aspire start --format json > /tmp/aspire-start.json", counter, TimeSpan.FromMinutes(2));
524
await auto.
RunCommandAsync
(
533
await auto.
RunCommandAsync
(
554
await auto.
RunCommandAsync
(
TerminalCommandTests.cs (9)
33
await auto.
RunCommandAsync
("cd TerminalReplicas", counter);
34
await auto.
RunCommandAsync
("dotnet new console --output TerminalProbe --framework net10.0", counter);
72
await auto.
RunCommandAsync
(
87
await auto.
RunCommandAsync
($"aspire wait {instanceId} --status up --timeout 120", counter, TimeSpan.FromMinutes(3));
92
await auto.
RunCommandAsync
(
101
await auto.
RunCommandAsync
(
106
await auto.
RunCommandAsync
(
139
await auto.
RunCommandAsync
(
189
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 (4)
57
await auto.
RunCommandAsync
(
64
await auto.
RunCommandAsync
(
78
await auto.
RunCommandAsync
(
138
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));
TypeScriptPublishTests.cs (7)
42
await auto.
RunCommandAsync
("aspire init --language typescript --non-interactive", counter, TimeSpan.FromMinutes(2));
48
await auto.
RunCommandAsync
("aspire add Aspire.Hosting.Kubernetes", counter, TimeSpan.FromMinutes(2));
49
await auto.
RunCommandAsync
("aspire restore", counter, TimeSpan.FromMinutes(3));
119
await auto.
RunCommandAsync
("unset ASPIRE_PLAYGROUND", counter);
120
await auto.
RunCommandAsync
("export Parameters__storageclass=fast Parameters__capacity=5Gi Parameters__backuptier=daily", counter);
121
await auto.
RunCommandAsync
("aspire publish -o artifacts --non-interactive", counter, TimeSpan.FromMinutes(5));
138
await auto.
RunCommandAsync
("! aspire publish -o failed-artifacts --non-interactive > callback-failure.log 2>&1",
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));