256 references to TestConstants
Aspire.Hosting.Tests (256)
Dcp\DcpExecutorTests.cs (1)
1586
},
TestConstants
.DefaultOrchestratorTestTimeout);
DistributedApplicationTests.cs (128)
27
using TestConstants = Microsoft.AspNetCore.InternalTesting.
TestConstants
;
69
}).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
114
}).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
141
var resourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
144
await orchestrator.StartResourceAsync(resourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
145
await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
148
await orchestrator.StopResourceAsync(resourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
149
await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Finished).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
152
var restartResourceTask = orchestrator.StartResourceAsync(resourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
153
await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
156
await orchestrator.StartResourceAsync(resourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
157
await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
159
await restartResourceTask.DefaultTimeout(
TestConstants
.LongTimeoutDuration);
160
await startTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
161
await app.StopAsync().DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
185
var notStartedResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.NotStarted).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
186
var dependentResourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
206
await orchestrator.StartResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
207
var runningResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
215
var dependentResourceRunningEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
223
await orchestrator.StopResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
224
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Finished).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
227
await orchestrator.StartResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
228
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
230
await startTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
231
await app.StopAsync().DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
260
var notStartedResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.NotStarted).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
261
var dependentResourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
280
await orchestrator.StartResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
281
var runningResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
288
var dependentRunningResourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
296
await orchestrator.StopResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
297
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Exited).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
300
await orchestrator.StartResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
301
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
303
await startTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
304
await app.StopAsync().DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
341
notStartedResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.NotStarted).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
342
dependentResourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
361
await orchestrator.StartResourceAsync(notStartedResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
364
var runningResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
371
var dependentRunningResourceEvent = await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
379
await orchestrator.StopResourceAsync(runningResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
380
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Exited).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
386
await orchestrator.StartResourceAsync(runningResourceEvent.ResourceId, CancellationToken.None).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
387
await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
390
await startTask.DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
391
await app.StopAsync().DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
452
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
454
var appModel = await tcs.Task.DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
492
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
498
await Task.WhenAll(clientA.GetStringAsync("/pid"), clientC.GetStringAsync("/pid")).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
546
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
549
var list = await s.ListAsync<Container>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
559
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
604
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
607
var list = await s.ListAsync<Container>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
625
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
651
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
654
var list = await s.ListAsync<Container>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
673
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
767
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
773
var list = await s.ListAsync<Container>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
881
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
907
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
909
var dependentRunningResourceEvent = await rns.WaitForResourceAsync(container.Resource.Name, e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
911
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
939
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
941
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.DefaultOrchestratorTestLongTimeout);
945
var redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, containerPattern, r => r.Status?.State == ContainerState.Running, token).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
951
await orchestrator.StopResourceAsync(redisContainer.Metadata.Name, token).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
953
redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, containerPattern, r => r.Status?.State == ContainerState.Exited, token).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
964
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
982
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
985
var serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Running).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
988
await orchestrator.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
990
serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Finished).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
993
await orchestrator.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
995
serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Running).DefaultTimeout(
TestConstants
.LongTimeoutDuration);
998
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1024
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1027
var redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, $"{testName}-redis-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1030
var serviceA = await KubernetesHelper.GetResourceByNameAsync<Executable>(kubernetes, $"{testName}-servicea", suffix!, r => r.Status?.EffectiveEnv is not null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1033
var nodeApp = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"{testName}-nodeapp-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1050
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1075
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1086
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1109
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1112
var aspireDashboard = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"aspire-dashboard-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
1122
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1149
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1152
var aspireDashboard = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"aspire-dashboard-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
1158
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1180
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1186
r => r.Status?.State == ContainerState.FailedToStart && (r.Status?.Message.Contains("bob") ?? false)).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1192
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1209
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1216
$"{testName}-redis-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1222
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1238
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1245
$"{testName}-redis-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1252
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1268
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1275
$"{testName}-redis-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1281
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1294
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1313
await foreach (var resource in s.WatchAsync<Container>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout))
1327
await foreach (var resource in s.WatchAsync<Executable>().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout))
1355
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout));
1374
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout));
1396
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1400
var result = await client.GetStringAsync("pid").DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1412
}).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
1439
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1441
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
1445
await app.WaitForTextAsync("Content root path:", resourceName: testProgram.ServiceABuilder.Resource.Name).DefaultTimeout(
TestConstants
.LongTimeoutDuration);
1508
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1511
await app.WaitForTextAsync("Application started.").DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1515
await clientA.GetStringAsync("/").DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
1555
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1579
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1582
await app.WaitForTextAsync("Application started.").DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1586
await clientA.GetStringAsync("/").DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
1631
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1648
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout));
1671
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1707
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
1709
await kubernetesLifecycle.HooksCompleted.DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
Eventing\DistributedApplicationBuilderEventingTests.cs (5)
189
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
193
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
216
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
221
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
327
await app.StartAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
Health\ResourceHealthCheckServiceTests.cs (10)
48
await app.StopAsync().TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
224
var abortTokenSource = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
241
await app.StopAsync(abortTokenSource.Token).TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
265
var abortTokenSource = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
308
var abortTokenSource = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
357
await app.StopAsync().TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
423
var pendingStart = app.StartAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
557
await app.StopAsync().TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
605
await app.StopAsync().TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
651
await app.StopAsync().TimeoutAfter(
TestConstants
.LongTimeoutTimeSpan);
HealthCheckTests.cs (7)
103
await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
105
await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
109
await rns.WaitForResourceHealthyAsync(resource.Resource.Name).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
111
await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestLongTimeout);
113
await pendingStart.DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
115
await app.StopAsync().DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
135
}).DefaultTimeout(
TestConstants
.DefaultOrchestratorTestTimeout);
OperationModesTests.cs (12)
31
await app.StartAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
33
var context = await tcs.Task.WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
35
await app.StopAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
60
await app.StartAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
62
var context = await tcs.Task.WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
64
await app.StopAsync().WaitAsync(
TestConstants
.LongTimeoutTimeSpan);
89
await app.StartAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
91
var context = await tcs.Task.WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
93
await app.StopAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
120
await app.StartAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
122
var context = await tcs.Task.WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
124
await app.StopAsync().WaitAsync(
TestConstants
.DefaultTimeoutTimeSpan);
Publishing\ResourceContainerImageBuilderTests.cs (23)
35
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
67
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
99
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
137
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
175
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
209
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
247
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
288
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
327
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
363
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
392
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
443
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
470
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
496
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
518
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
539
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
569
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
601
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
633
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
670
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
716
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
788
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
883
using var cts = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
ResourceCommandServiceTests.cs (4)
133
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
176
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
235
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
270
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
SlimTestProgramTests.cs (3)
26
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
51
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
70
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
TestProgramFixture.cs (1)
32
using var cts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
tests\Shared\AsyncTestHelpers.cs (6)
40
milliseconds =
TestConstants
.DefaultTimeoutDuration;
55
milliseconds =
TestConstants
.DefaultTimeoutDuration;
70
milliseconds =
TestConstants
.DefaultTimeoutDuration;
85
milliseconds =
TestConstants
.DefaultTimeoutDuration;
100
milliseconds =
TestConstants
.DefaultTimeoutDuration;
115
milliseconds =
TestConstants
.DefaultTimeoutDuration;
WaitForTests.cs (36)
29
var abortCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
104
using var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
107
using var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
135
using var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
138
using var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
168
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
174
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
212
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
215
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
323
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
326
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
357
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
360
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
404
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
407
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
446
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
452
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
468
var runningStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
493
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
499
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
515
var runningStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
548
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
554
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
571
var runningStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
602
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
608
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
623
var runningStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
653
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
659
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
706
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
712
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
755
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
761
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
870
var startupCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
874
var waitingStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
884
var runningStateCts = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
WithHttpCommandTests.cs (11)
188
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
212
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
235
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
274
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
313
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
354
await app.ResourceNotifications.WaitForResourceHealthyAsync("servicea").DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
403
await app.ResourceNotifications.WaitForResourceAsync(service.Resource.Name, KnownResourceStates.Starting).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
413
await app.ResourceNotifications.WaitForResourceAsync(service.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
414
await watchTcs.Task.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
473
await app.ResourceNotifications.WaitForResourceAsync(service.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
484
await watchTcs.Task.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
WithUrlsTests.cs (9)
397
await watchTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
433
await watchTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
482
await app.ResourceNotifications.WaitForResourceAsync(servicea.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
484
await watchTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
646
await app.ResourceNotifications.WaitForResourceAsync(servicea.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
647
await app.ResourceNotifications.WaitForResourceAsync(custom.Resource.Name, KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
649
await watchTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
690
await rns.WaitForResourceAsync("servicea", KnownResourceStates.Running).DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);
691
await watchTask.DefaultTimeout(
TestConstants
.LongTimeoutTimeSpan);