1 write to _auto
Aspire.Cli.EndToEnd.Tests (1)
Helpers\ConfigSourceTestContext.cs (1)
31
_auto
= auto;
63 references to _auto
Aspire.Cli.EndToEnd.Tests (63)
Helpers\ConfigSourceTestContext.cs (63)
63
await
_auto
.RunCommandAsync($"{NewCommand} --use-config-source --non-interactive", _counter,
70
await
_auto
.RunCommandAsync($"{NewCommand} --use-config-source false --non-interactive", _counter,
74
await
_auto
.RunCommandAsync("aspire config delete configSource", _counter);
75
await
_auto
.RunCommandAsync("aspire config set docs.llmsTxtUrl https://local.example/llms.txt", _counter);
105
await
_auto
.RunCommandAsync(
114
await
_auto
.RunCommandAsync($"aspire add {id} --version 1.0.0 --non-interactive", _counter,
118
await
_auto
.RunCommandAsync("cat apphost.cs > \"$ASPIRE_E2E_WORKSPACE/actual-apphost.cs\"", _counter);
126
await
_auto
.RunCommandAsync("mkdir SourceApp && cd SourceApp && dotnet new sln --name SourceApp", _counter);
127
await
_auto
.RunCommandAsync(
130
await
_auto
.RunCommandAsync(
143
await
_auto
.RunCommandAsync("mkdir AppHost && mv apphost.cs apphost.run.json AppHost", _counter);
144
await
_auto
.RunCommandAsync("aspire config set appHost.path AppHost/apphost.cs", _counter);
152
await
_auto
.TypeAsync(
154
await
_auto
.EnterAsync();
158
await
_auto
.WaitUntilAsync(snapshot => consentPrompt.Search(snapshot).Count > 0,
161
await
_auto
.TypeAsync(accept ? "y" : "n");
164
await
_auto
.WaitUntilAsync(snapshot => templatePrompt.Search(snapshot).Count > 0,
166
await
_auto
.TypeAsync("Empty AppHost");
167
await
_auto
.EnterAsync();
169
await
_auto
.WaitUntilAsync(snapshot => languagePrompt.Search(snapshot).Count > 0,
171
await
_auto
.EnterAsync();
173
await
_auto
.WaitUntilAsync(snapshot => urlsPrompt.Search(snapshot).Count > 0,
175
await
_auto
.EnterAsync();
176
await
_auto
.WaitForSuccessPromptAsync(_counter, timeout: TimeSpan.FromMinutes(3));
199
await
_auto
.RunCommandAsync(
213
await
_auto
.TypeAsync($"{NewCommand} --use-config-source --log-file \"$ASPIRE_E2E_WORKSPACE/git-auth-cli.log\"");
214
await
_auto
.EnterAsync();
216
await
_auto
.WaitUntilAsync(snapshot => authenticationPrompt.Search(snapshot).Count > 0,
218
await
_auto
.TypeAsync("allow-source");
219
await
_auto
.EnterAsync();
221
await
_auto
.WaitUntilAsync(snapshot => authenticated.Search(snapshot).Count > 0,
223
await
_auto
.WaitForSuccessPromptAsync(_counter, timeout: TimeSpan.FromMinutes(3));
231
await
_auto
.RunCommandAsync(
285
await
_auto
.RunCommandAsync(
287
await
_auto
.RunCommandAsync(command, _counter);
290
await
_auto
.RunCommandAsync(
315
await
_auto
.RunCommandAsync($"cd \"{directory}\"", _counter);
320
=>
_auto
.RunCommandAsync("test ! -f aspire.config.json", _counter);
327
await
_auto
.RunCommandAsync("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- expire", _counter);
328
await
_auto
.RunCommandAsync(
330
await
_auto
.RunCommandAsync("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- wait \"$source_run_pid\"", _counter,
332
await
_auto
.RunCommandAsync("kill -INT \"$source_run_pid\"; timeout 120 tail --pid=\"$source_run_pid\" -f /dev/null; wait \"$source_run_pid\"", _counter,
334
await
_auto
.RunCommandAsync("cat \"$ASPIRE_E2E_WORKSPACE/run.log\"", _counter);
340
=>
_auto
.RunCommandAsync(
346
await
_auto
.RunCommandAsync(
356
await
_auto
.TypeAsync("aspire update --yes --nuget-config-dir .");
357
await
_auto
.EnterAsync();
360
await
_auto
.WaitUntilAsync(snapshot => candidate.Search(snapshot).Count > 0 && consentPrompt.Search(snapshot).Count > 0,
362
await
_auto
.TypeAsync("y");
363
await
_auto
.WaitForSuccessPromptAsync(_counter, timeout: TimeSpan.FromMinutes(5));
397
await
_auto
.RunCommandAsync("aspire config set features.updateNotificationsEnabled false -g", _counter);
399
await
_auto
.RunCommandAsync("git config --global --add safe.directory \"$ASPIRE_E2E_WORKSPACE/configuration source\"", _counter);
400
await
_auto
.RunCommandAsync($"git -C 'configuration source' init --initial-branch=main --object-format={objectFormat}", _counter);
401
await
_auto
.RunCommandAsync("git -C 'configuration source' config user.name 'Aspire E2E'", _counter);
402
await
_auto
.RunCommandAsync("git -C 'configuration source' config user.email aspire-e2e@example.com", _counter);
404
await
_auto
.RunCommandAsync(
411
await
_auto
.RunCommandAsync("cd SourceApp", _counter);
412
await
_auto
.RunCommandAsync("aspire config set docs.custom keep", _counter);
416
=>
_auto
.RunCommandAsync("test ! -d \"$HOME/.aspire/configsources\"", _counter);
422
await
_auto
.RunCommandAsync(
431
=>
_auto
.RunCommandAsync(
471
await
_auto
.RunCommandAsync(
475
await
_auto
.RunCommandAsync(