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