@@ -343,7 +343,7 @@ public async Task AllocatedPortsAssignedAfterHookRuns()
343
343
344
344
await using var app = testProgram . Build ( ) ;
345
345
346
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
346
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
347
347
348
348
var appModel = await tcs . Task . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
349
349
@@ -381,7 +381,7 @@ public async Task TestServicesWithMultipleReplicas()
381
381
382
382
var logger = app . Services . GetRequiredService < ILogger < DistributedApplicationTests > > ( ) ;
383
383
384
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
384
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
385
385
386
386
logger . LogInformation ( "Make sure services A and C are running" ) ;
387
387
using var clientA = app . CreateHttpClient ( testProgram . ServiceABuilder . Resource . Name , "http" ) ;
@@ -435,7 +435,7 @@ public async Task VerifyContainerArgs()
435
435
436
436
await using var app = testProgram . Build ( ) ;
437
437
438
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
438
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
439
439
440
440
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
441
441
var list = await s . ListAsync < Container > ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
@@ -488,7 +488,7 @@ public async Task VerifyContainerCreateFile()
488
488
489
489
await using var app = testProgram . Build ( ) ;
490
490
491
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
491
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
492
492
493
493
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
494
494
var list = await s . ListAsync < Container > ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
@@ -537,7 +537,7 @@ public async Task VerifyContainerStopStartWorks()
537
537
var orchestrator = app . Services . GetRequiredService < ApplicationOrchestrator > ( ) ;
538
538
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
539
539
540
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
540
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
541
541
542
542
using var cts = AsyncTestHelpers . CreateDefaultTimeoutTokenSource ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
543
543
var token = cts . Token ;
@@ -580,7 +580,7 @@ public async Task VerifyExecutableStopStartWorks()
580
580
var orchestrator = app . Services . GetRequiredService < ApplicationOrchestrator > ( ) ;
581
581
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
582
582
583
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
583
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
584
584
585
585
var executablePattern = $ "{ testName } -servicea-{ ReplicaIdRegex } -{ suffix } ";
586
586
var serviceA = await KubernetesHelper . GetResourceByNameMatchAsync < Executable > ( kubernetes , executablePattern , r => r . Status ? . State == ExecutableState . Running ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
@@ -622,7 +622,7 @@ public async Task SpecifyingEnvPortInEndpointFlowsToEnv()
622
622
623
623
var kubernetes = app . Services . GetRequiredService < IKubernetesService > ( ) ;
624
624
625
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
625
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
626
626
627
627
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
628
628
var redisContainer = await KubernetesHelper . GetResourceByNameMatchAsync < Container > ( kubernetes , $ "{ testName } -redis-{ ReplicaIdRegex } -{ suffix } ", r => r . Status ? . EffectiveEnv is not null ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
@@ -677,7 +677,7 @@ public async Task StartAsync_DashboardAuthConfig_PassedToDashboardProcess(string
677
677
678
678
var kubernetes = app . Services . GetRequiredService < IKubernetesService > ( ) ;
679
679
680
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
680
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
681
681
682
682
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
683
683
var aspireDashboard = await KubernetesHelper . GetResourceByNameMatchAsync < Executable > ( kubernetes , $ "aspire-dashboard-{ ReplicaIdRegex } -{ suffix } ", r => r . Status ? . EffectiveEnv is not null ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
@@ -717,7 +717,7 @@ public async Task StartAsync_UnsecuredAllowAnonymous_PassedToDashboardProcess()
717
717
718
718
var kubernetes = app . Services . GetRequiredService < IKubernetesService > ( ) ;
719
719
720
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
720
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
721
721
722
722
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
723
723
var aspireDashboard = await KubernetesHelper . GetResourceByNameMatchAsync < Executable > ( kubernetes , $ "aspire-dashboard-{ ReplicaIdRegex } -{ suffix } ", r => r . Status ? . EffectiveEnv is not null ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
@@ -748,7 +748,7 @@ public async Task VerifyDockerWithEntrypointWorks()
748
748
749
749
await using var app = testProgram . Build ( ) ;
750
750
751
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
751
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
752
752
753
753
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
754
754
@@ -777,7 +777,7 @@ public async Task VerifyDockerWithBindMountWorksWithAbsolutePaths()
777
777
778
778
await using var app = testProgram . Build ( ) ;
779
779
780
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
780
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
781
781
782
782
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
783
783
@@ -806,7 +806,7 @@ public async Task VerifyDockerWithBindMountWorksWithRelativePaths()
806
806
807
807
await using var app = testProgram . Build ( ) ;
808
808
809
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
809
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
810
810
811
811
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
812
812
@@ -836,7 +836,7 @@ public async Task VerifyDockerWithVolumeWorksWithName()
836
836
837
837
await using var app = testProgram . Build ( ) ;
838
838
839
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
839
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
840
840
841
841
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
842
842
@@ -862,7 +862,7 @@ public async Task KubernetesHasResourceNameForContainersAndExes()
862
862
863
863
await using var app = testProgram . Build ( ) ;
864
864
865
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
865
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
866
866
867
867
var s = app . Services . GetRequiredService < IKubernetesService > ( ) ;
868
868
@@ -923,7 +923,7 @@ public async Task ReplicasAndProxylessEndpointThrows()
923
923
924
924
await using var app = testProgram . Build ( ) ;
925
925
926
- var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ) ;
926
+ var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ) ;
927
927
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
928
928
Assert . Equal ( $ "Resource '{ testName } -servicea-{ suffix } ' uses multiple replicas and a proxy-less endpoint 'http'. These features do not work together.", ex . Message ) ;
929
929
}
@@ -942,7 +942,7 @@ public async Task ProxylessEndpointWithoutPortThrows()
942
942
943
943
await using var app = testProgram . Build ( ) ;
944
944
945
- var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ) ;
945
+ var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ) ;
946
946
var suffix = app . Services . GetRequiredService < IOptions < DcpOptions > > ( ) . Value . ResourceNameSuffix ;
947
947
Assert . Equal ( $ "Service '{ testName } -servicea-{ suffix } ' needs to specify a port for endpoint 'http' since it isn't using a proxy.", ex . Message ) ;
948
948
}
@@ -964,7 +964,7 @@ public async Task ProxylessEndpointWorks()
964
964
SetupXUnitLogging ( testProgram . AppBuilder . Services ) ;
965
965
966
966
await using var app = testProgram . Build ( ) ;
967
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
967
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
968
968
969
969
var client = app . CreateHttpClientWithResilience ( $ "{ testName } -servicea", "http" ) ;
970
970
@@ -1007,7 +1007,7 @@ public async Task ProxylessAndProxiedEndpointBothWorkOnSameResource()
1007
1007
1008
1008
await using var app = testProgram . Build ( ) ;
1009
1009
1010
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
1010
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
1011
1011
1012
1012
using var cts = AsyncTestHelpers . CreateDefaultTimeoutTokenSource ( TestConstants . LongTimeoutDuration ) ;
1013
1013
var token = cts . Token ;
@@ -1076,7 +1076,7 @@ public async Task ProxylessContainerCanBeReferenced()
1076
1076
. WithReference ( redisNoPort ) ;
1077
1077
1078
1078
using var app = builder . Build ( ) ;
1079
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
1079
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
1080
1080
1081
1081
// Wait for the application to be ready
1082
1082
await app . WaitForTextAsync ( "Application started." ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
@@ -1126,7 +1126,7 @@ public async Task WithEndpointProxySupportDisablesProxies()
1126
1126
. WithReference ( redisNoPort ) ;
1127
1127
1128
1128
using var app = builder . Build ( ) ;
1129
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
1129
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
1130
1130
1131
1131
// Wait for the application to be ready
1132
1132
await app . WaitForTextAsync ( "Application started." ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
@@ -1173,7 +1173,7 @@ public async Task ProxylessContainerWithoutPortThrows()
1173
1173
1174
1174
using var app = builder . Build ( ) ;
1175
1175
1176
- var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ) ;
1176
+ var ex = await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) => await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ) ;
1177
1177
Assert . Equal ( $ "The endpoint 'tcp' for container resource '{ testName } -redis' must specify the TargetPort value", ex . Message ) ;
1178
1178
}
1179
1179
@@ -1194,7 +1194,7 @@ public async Task AfterResourcesCreatedLifecycleHookWorks()
1194
1194
var kubernetesLifecycle = ( KubernetesTestLifecycleHook ) lifecycles . Where ( l => l . GetType ( ) == typeof ( KubernetesTestLifecycleHook ) ) . First ( ) ;
1195
1195
kubernetesLifecycle . KubernetesService = s ;
1196
1196
1197
- await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
1197
+ await app . StartAsync ( ) . DefaultTimeout ( TestConstants . DefaultOrchestratorTestLongTimeout ) ;
1198
1198
1199
1199
await kubernetesLifecycle . HooksCompleted . DefaultTimeout ( TestConstants . DefaultOrchestratorTestTimeout ) ;
1200
1200
}
0 commit comments