1 write to _counter
Aspire.Cli.EndToEnd.Tests (1)
Helpers\ConfigSourceTestContext.cs (1)
29
_counter
= counter;
30 references to _counter
Aspire.Cli.EndToEnd.Tests (30)
Helpers\ConfigSourceTestContext.cs (30)
60
await _auto.RunCommandAsync($"{NewCommand} --use-config-source true --non-interactive",
_counter
,
67
await _auto.RunCommandAsync("mkdir SourceApp && cd SourceApp && dotnet new sln --name SourceApp",
_counter
);
70
_counter
, timeout: TimeSpan.FromMinutes(3));
73
"cd SourceApp.AppHost && aspire config set docs.custom keep",
_counter
);
84
await _auto.RunCommandAsync("mkdir AppHost && mv apphost.cs apphost.run.json AppHost",
_counter
);
85
await _auto.RunCommandAsync("aspire config set appHost.path AppHost/apphost.cs",
_counter
);
100
await _auto.WaitForSuccessPromptAsync(
_counter
, timeout: TimeSpan.FromMinutes(3));
124
_counter
, timeout: TimeSpan.FromMinutes(3));
145
await _auto.WaitForSuccessPromptAsync(
_counter
, timeout: TimeSpan.FromMinutes(3));
174
await _auto.RunCommandAsync($"cd \"{directory}\"",
_counter
);
179
=> _auto.RunCommandAsync("test ! -f aspire.config.json",
_counter
);
186
await _auto.RunCommandAsync("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- expire",
_counter
);
188
"aspire run --non-interactive > \"$ASPIRE_E2E_WORKSPACE/run.log\" 2>&1 </dev/null & source_run_pid=$!",
_counter
);
189
await _auto.RunCommandAsync("dotnet run \"$ASPIRE_E2E_WORKSPACE/check-source.cs\" -- wait \"$source_run_pid\"",
_counter
,
191
await _auto.RunCommandAsync("kill -INT \"$source_run_pid\"; timeout 120 tail --pid=\"$source_run_pid\" -f /dev/null; wait \"$source_run_pid\"",
_counter
,
193
await _auto.RunCommandAsync("cat \"$ASPIRE_E2E_WORKSPACE/run.log\"",
_counter
);
202
_counter
, timeout: TimeSpan.FromMinutes(2));
227
await _auto.RunCommandAsync("aspire config set features.updateNotificationsEnabled false -g",
_counter
);
229
await _auto.RunCommandAsync("git config --global --add safe.directory \"$ASPIRE_E2E_WORKSPACE/configuration source\"",
_counter
);
230
await _auto.RunCommandAsync("git -C 'configuration source' init --initial-branch=main",
_counter
);
231
await _auto.RunCommandAsync("git -C 'configuration source' config user.name 'Aspire E2E'",
_counter
);
232
await _auto.RunCommandAsync("git -C 'configuration source' config user.email aspire-e2e@example.com",
_counter
);
236
"ASPIRE_INIT_SOURCE_PATH=teams/platform.json ASPIRE_INIT_SOURCE_REF=main",
_counter
);
241
await _auto.RunCommandAsync("cd SourceApp",
_counter
);
242
await _auto.RunCommandAsync("aspire config set docs.custom keep",
_counter
);
246
=> _auto.RunCommandAsync("test ! -d \"$HOME/.aspire/configsources\"",
_counter
);
253
$"cat \"$ASPIRE_E2E_WORKSPACE/{_configurationRelativePath}\" > \"$ASPIRE_E2E_WORKSPACE/actual-config.json\"",
_counter
);
264
"git -C \"$ASPIRE_E2E_WORKSPACE/configuration source\" rev-parse HEAD:teams/platform.json > \"$ASPIRE_E2E_WORKSPACE/source-version.txt\"",
_counter
);
289
_counter
, timeout: TimeSpan.FromMinutes(2));
293
$"ASPIRE_INIT_SOURCE_URL={SshRepository}",
_counter
);