91 references to DefaultTimeout
Aspire.Dashboard.Tests (91)
ChannelExtensionsTests.cs (1)
146await read2Task.DefaultTimeout();
Integration\DashboardClientAuthTests.cs (4)
44await using var server = await CreateResourceServiceServerAsync(loggerFactory, useHttps).DefaultTimeout(); 45await using var client = await CreateDashboardClientAsync(loggerFactory, server.Url, authMode: ResourceClientAuthMode.Unsecured).DefaultTimeout(); 60await using var server = await CreateResourceServiceServerAsync(loggerFactory, useHttps).DefaultTimeout(); 61await using var client = await CreateDashboardClientAsync(loggerFactory, server.Url, authMode: ResourceClientAuthMode.ApiKey, configureOptions: options => options.ResourceServiceClient.ApiKey = "TestApiKey!").DefaultTimeout();
Integration\FrontendBrowserTokenAuthTests.cs (6)
43var response = await client.GetAsync("/").DefaultTimeout(); 65var response1 = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: apiKey)).DefaultTimeout(); 72var response2 = await client.GetAsync(DashboardUrls.StructuredLogsUrl()).DefaultTimeout(); 96var response = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: apiKey)).DefaultTimeout(); 120var response = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: "Wrong!")).DefaultTimeout(); 145var response = await client.PostAsync("/api/validatetoken?token=" + requestToken, content: null).DefaultTimeout();
Integration\FrontendOpenIdConnectAuthTests.cs (4)
20await using var authority = await MockOpenIdAuthority.CreateAsync().DefaultTimeout(); 40var response = await client.GetAsync("/").DefaultTimeout(); 63await using var authority = await MockOpenIdAuthority.CreateAsync().DefaultTimeout(); 85var response = await client.GetAsync("/").DefaultTimeout();
Integration\OtlpCorsHttpServiceTests.cs (5)
36var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout(); 60var responseMessage1 = await httpClient.SendAsync(preflightRequest1).DefaultTimeout(); 74var responseMessage2 = await httpClient.SendAsync(preflightRequest2).DefaultTimeout(); 101var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout(); 129var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout();
Integration\OtlpGrpcServiceTests.cs (13)
40var message = await response.ResponseAsync.DefaultTimeout(); 41var headers = await response.ResponseHeadersAsync.DefaultTimeout(); 64var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync).DefaultTimeout(); 91var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest(), metadata).ResponseAsync).DefaultTimeout(); 118var response = await client.ExportAsync(new ExportLogsServiceRequest(), metadata).ResponseAsync.DefaultTimeout(); 147var response = await client.ExportAsync(new ExportLogsServiceRequest(), metadata).ResponseAsync.DefaultTimeout(); 192var response1 = await client.ExportAsync(new ExportLogsServiceRequest(), metadata).ResponseAsync.DefaultTimeout(); 228var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest(), metadata).ResponseAsync).DefaultTimeout(); 257var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync).DefaultTimeout(); 282var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync).DefaultTimeout(); 321var response = await client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync.DefaultTimeout(); 361var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync).DefaultTimeout(); 400var ex = await Assert.ThrowsAsync<RpcException>(() => client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync).DefaultTimeout();
Integration\OtlpHttpServiceTests.cs (15)
47var responseMessage = await httpClient.PostAsync("/v1/logs", content).DefaultTimeout(); 50var response = ExportLogsServiceResponse.Parser.ParseFrom(await responseMessage.Content.ReadAsByteArrayAsync().DefaultTimeout()); 73var responseMessage = await httpClient.PostAsync("/v1/logs", content).DefaultTimeout(); 117var responseMessage = await httpClient.PostAsync("/v1/logs", content).DefaultTimeout(); 145var responseMessage = await httpClient.SendAsync(requestMessage).DefaultTimeout(); 173var responseMessage = await httpClient.SendAsync(requestMessage).DefaultTimeout(); 176var response = ExportLogsServiceResponse.Parser.ParseFrom(await responseMessage.Content.ReadAsByteArrayAsync().DefaultTimeout()); 207var responseMessage = await httpClient.PostAsync("/v1/logs", content).DefaultTimeout(); 237var responseMessage = await client.PostAsync("/v1/logs", content).DefaultTimeout(); 264var responseMessage = await client.SendAsync(requestMessage).DefaultTimeout(); 287var responseMessage = await client.PostAsync("/v1/logs", content).DefaultTimeout(); 316var responseMessage = await client.PostAsync("/v1/traces", content).DefaultTimeout(); 320var response = ExportTraceServiceResponse.Parser.ParseFrom(await responseMessage.Content.ReadAsByteArrayAsync().DefaultTimeout()); 345var responseMessage = await client.PostAsync("/v1/metrics", content).DefaultTimeout(); 349var response = ExportMetricsServiceResponse.Parser.ParseFrom(await responseMessage.Content.ReadAsByteArrayAsync().DefaultTimeout());
Integration\Playwright\BrowserTokenAuthenticationTests.cs (5)
38var response = await page.GotoAsync("/").DefaultTimeout(); 64var response = await page.GotoAsync("/").DefaultTimeout(); 90await page.GotoAsync("/login?t=VALID_TOKEN").DefaultTimeout(); 107await page.GotoAsync("/login?t=INVALID_TOKEN").DefaultTimeout(); 110var name = await submitButton.GetAttributeAsync("name").DefaultTimeout();
Integration\ResponseCompressionTests.cs (2)
28var response = await client.SendAsync(request).DefaultTimeout(); 50var response = await client.SendAsync(request).DefaultTimeout();
Integration\StartupTests.cs (7)
140}).DefaultTimeout(); 237}).DefaultTimeout(); 299var response = await httpClient.SendAsync(request).DefaultTimeout(); 305var serviceResponse = await client.ExportAsync(new ExportLogsServiceRequest()).ResponseAsync.DefaultTimeout(); 400var responseMessage = await httpClient.SendAsync(request).DefaultTimeout(); 410var response = ExportLogsServiceResponse.Parser.ParseFrom(await responseMessage.Content.ReadAsByteArrayAsync().DefaultTimeout()); 693var response = await client.GetAsync("/").DefaultTimeout();
LocalBrowserStorageTests.cs (3)
61var result = await localStorage.GetUnprotectedAsync<int>("MyKey").DefaultTimeout(); 87var result = await localStorage.GetUnprotectedAsync<int>("MyKey").DefaultTimeout(); 112var result = await localStorage.GetUnprotectedAsync<int>("MyKey").DefaultTimeout();
Middleware\ValidateTokenMiddlewareTests.cs (12)
21using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout(); 22var response = await host.GetTestClient().GetAsync("/login?t=test").DefaultTimeout(); 29using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout(); 30var response = await host.GetTestClient().GetAsync("/login?t=test&returnUrl=/test").DefaultTimeout(); 37using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 38var response = await host.GetTestClient().GetAsync("/login?t=wrong").DefaultTimeout(); 45using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 46var response = await host.GetTestClient().GetAsync("/login?t=wrong&returnUrl=/test").DefaultTimeout(); 53using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 54var response = await host.GetTestClient().GetAsync("/login?t=token").DefaultTimeout(); 61using var host = await SetUpHostAsync(FrontendAuthMode.BrowserToken, "token").DefaultTimeout(); 62var response = await host.GetTestClient().GetAsync("/login?t=token&returnUrl=/test").DefaultTimeout();
Model\DashboardClientTests.cs (5)
53var (_, subscription) = await client.SubscribeResourcesAsync(CancellationToken.None).DefaultTimeout(); 81var (_, subscription) = await client.SubscribeResourcesAsync(CancellationToken.None).DefaultTimeout(); 106await Assert.ThrowsAsync<ObjectDisposedException>(() => client.SubscribeResourcesAsync(CancellationToken.None)).DefaultTimeout(); 119_ = await client.SubscribeResourcesAsync(CancellationToken.None).DefaultTimeout(); 148var (initialData, subscription) = await subscribeTask.DefaultTimeout();
OtlpApiKeyAuthenticationHandlerTests.cs (8)
22var handler = await CreateAuthHandlerAsync(primaryApiKey: "abc", secondaryApiKey: null, otlpApiKeyHeader: null).DefaultTimeout(); 25var result = await handler.AuthenticateAsync().DefaultTimeout(); 36var handler = await CreateAuthHandlerAsync(primaryApiKey: new string('!', 1000), secondaryApiKey: null, otlpApiKeyHeader: new string('!', 999)).DefaultTimeout(); 39var result = await handler.AuthenticateAsync().DefaultTimeout(); 50var handler = await CreateAuthHandlerAsync(primaryApiKey: new string('!', 1000), secondaryApiKey: null, otlpApiKeyHeader: new string('!', 1000)).DefaultTimeout(); 53var result = await handler.AuthenticateAsync().DefaultTimeout(); 67var handler = await CreateAuthHandlerAsync(primaryApiKey, secondaryApiKey, otlpApiKeyHeader).DefaultTimeout(); 70var result = await handler.AuthenticateAsync().DefaultTimeout();
TelemetryRepositoryTests\LogTests.cs (1)
611var callbackValue = await tcs.Task.DefaultTimeout();