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