1161 references to Resource
Aspire.Hosting (80)
ResourceBuilderExtensions.cs (39)
164context.EnvironmentVariables[name] = parameter.Resource;
188context.EnvironmentVariables[envVarName] = new ConnectionStringReference(resource.Resource, optional: false);
350var resource = source.Resource;
377ApplyEndpoints(builder, source.Resource);
435var endpointReferenceAnnotation = builder.Resource.Annotations
499var endpoint = builder.Resource.Annotations
513builder.Resource.Annotations.Add(endpoint);
552if (builder.Resource.Annotations.OfType<EndpointAnnotation>().Any(sb => string.Equals(sb.Name, annotation.Name, StringComparisons.EndpointAnnotationName)))
558if (env is not null && builder.Resource is IResourceWithEndpoints resourceWithEndpoints and IResourceWithEnvironment)
623if (!builder.Resource.TryGetAnnotationsOfType<EndpointAnnotation>(out var endpoints))
651return builder.Resource.GetEndpoint(name);
712if (builder.Resource as IResource == dependency.Resource)
714throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself.");
717if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.Parent == dependency.Resource)
719throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'.");
722if (dependency.Resource is IResourceWithParent dependencyResourceWithParent)
731builder.WithRelationship(dependency.Resource, KnownRelationshipTypes.WaitFor);
733return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy));
767if (builder.Resource as IResource == dependency.Resource)
769throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself.");
772if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.Parent == dependency.Resource)
774throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'.");
777builder.WithRelationship(dependency.Resource, KnownRelationshipTypes.WaitFor);
779return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode));
823if (builder.Resource.TryGetAnnotationsOfType<HealthCheckAnnotation>(out var annotations) && annotations.Any(a => a.Key == key))
825throw new DistributedApplicationException($"Resource '{builder.Resource.Name}' already has a health check with key '{key}'.");
880var endpoint = builder.Resource.GetEndpoint(endpointName);
886throw new DistributedApplicationException($"The endpoint '{endpointName}' does not exist on the resource '{builder.Resource.Name}'.");
891throw new DistributedApplicationException($"The endpoint '{endpointName}' on resource '{builder.Resource.Name}' was not using the '{desiredScheme}' scheme.");
898builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, (@event, ct) =>
905var healthCheckKey = $"{builder.Resource.Name}_{endpointName}_{path}_{statusCode}_check";
1024var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.Name == name);
1027builder.Resource.Annotations.Remove(existingAnnotation);
Aspire.Hosting.Azure (18)
Aspire.Hosting.Azure.ApplicationInsights (1)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.CosmosDB (13)
Aspire.Hosting.Azure.EventHubs (16)
Aspire.Hosting.Azure.Functions (7)
Aspire.Hosting.Azure.PostgreSQL (14)
Aspire.Hosting.Azure.Redis (6)
Aspire.Hosting.Azure.ServiceBus (13)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (10)
Aspire.Hosting.Azure.Storage (9)
Aspire.Hosting.Azure.Tests (258)
AzureBicepResourceTests.cs (149)
35Assert.Equal("content", bicepResource.Resource.TemplateString);
36Assert.Equal("value1", bicepResource.Resource.Parameters["param1"]);
37Assert.Equal("value2", bicepResource.Resource.Parameters["param2"]);
99if (azureResourceBuilder.Resource is not AzureProvisioningResource bicepResource)
120if (azureResourceBuilder.Resource is not AzureProvisioningResource bicepResource)
138bicepResource.Resource.Outputs["resourceEndpoint"] = "https://myendpoint";
150bicepResource.Resource.SecretOutputs["connectionString"] = "https://myendpoint;Key=43";
229Assert.True(cosmos.Resource.IsContainer());
231var csExpr = cosmos.Resource.ConnectionStringExpression;
237Assert.Equal(cs, await ((IResourceWithConnectionString)cosmos.Resource).GetConnectionStringAsync());
253cosmos.Resource.SecretOutputs["connectionString"] = "mycosmosconnectionstring";
255var manifest = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);
345var connectionStringResource = (IResourceWithConnectionString)cosmos.Resource;
347Assert.Equal("cosmos", cosmos.Resource.Name);
364cosmos.Resource.Outputs["connectionString"] = "mycosmosconnectionstring";
366var manifest = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);
466var connectionStringResource = (IResourceWithConnectionString)cosmos.Resource;
468Assert.Equal("cosmos", cosmos.Resource.Name);
485cosmos.Resource.SecretOutputs["connectionString"] = "mycosmosconnectionstring";
487var manifest = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);
577var connectionStringResource = (IResourceWithConnectionString)cosmos.Resource;
579Assert.Equal("cosmos", cosmos.Resource.Name);
596cosmos.Resource.Outputs["connectionString"] = "mycosmosconnectionstring";
598var manifest = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);
696var connectionStringResource = (IResourceWithConnectionString)cosmos.Resource;
698Assert.Equal("cosmos", cosmos.Resource.Name);
708appConfig.Resource.Outputs["appConfigEndpoint"] = "https://myendpoint";
709Assert.Equal("https://myendpoint", await appConfig.Resource.ConnectionStringExpression.GetValueAsync(default));
711var manifest = await ManifestUtils.GetManifestWithBicep(appConfig.Resource);
713var connectionStringResource = (IResourceWithConnectionString)appConfig.Resource;
775appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey";
777var connectionStringResource = (IResourceWithConnectionString)appInsights.Resource;
779Assert.Equal("appInsights", appInsights.Resource.Name);
781Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.ValueExpression);
783var appInsightsManifest = await ManifestUtils.GetManifestWithBicep(appInsights.Resource);
832appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey";
834var connectionStringResource = (IResourceWithConnectionString)appInsights.Resource;
836Assert.Equal("appInsights", appInsights.Resource.Name);
838Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.ValueExpression);
840var appInsightsManifest = await ManifestUtils.GetManifestWithBicep(appInsights.Resource);
898appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey";
900var connectionStringResource = (IResourceWithConnectionString)appInsights.Resource;
902Assert.Equal("appInsights", appInsights.Resource.Name);
904Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.ValueExpression);
906var appInsightsManifest = await ManifestUtils.GetManifestWithBicep(appInsights.Resource);
955Assert.Equal("logAnalyticsWorkspace", logAnalyticsWorkspace.Resource.Name);
956Assert.Equal("{logAnalyticsWorkspace.outputs.logAnalyticsWorkspaceId}", logAnalyticsWorkspace.Resource.WorkspaceId.ValueExpression);
958var appInsightsManifest = await ManifestUtils.GetManifestWithBicep(logAnalyticsWorkspace.Resource);
997appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey";
1002var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(serviceA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
1023var manifest = await ManifestUtils.GetManifest(infrastructure1.Resource);
1048var manifest = await ManifestUtils.GetManifest(infrastructure1.Resource);
1087var manifest = await ManifestUtils.GetManifest(infrastructure1.Resource);
1117Assert.True(redis.Resource.IsContainer());
1119Assert.Equal("localhost:12455", await redis.Resource.GetConnectionStringAsync());
1121var manifest = await ManifestUtils.GetManifestWithBicep(redis.Resource);
1181var manifest = await ManifestUtils.GetManifestWithBicep(mykv.Resource);
1243var manifest = await ManifestUtils.GetManifestWithBicep(mykv.Resource);
1308var manifest = await ManifestUtils.GetManifestWithBicep(sql.Resource);
1310Assert.True(sql.Resource.TryGetLastAnnotation<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1314Assert.Equal("Server=tcp:myserver,1433;Encrypt=True;Authentication=\"Active Directory Default\"", await sql.Resource.GetConnectionStringAsync(default));
1315Assert.Equal("Server=tcp:{sql.outputs.sqlServerFqdn},1433;Encrypt=True;Authentication=\"Active Directory Default\"", sql.Resource.ConnectionStringExpression.ValueExpression);
1402var manifest = await ManifestUtils.GetManifestWithBicep(sql.Resource);
1404Assert.True(sql.Resource.TryGetLastAnnotation<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1408Assert.Equal("Server=tcp:myserver,1433;Encrypt=True;Authentication=\"Active Directory Default\"", await sql.Resource.GetConnectionStringAsync(default));
1409Assert.Equal("Server=tcp:{sql.outputs.sqlServerFqdn},1433;Encrypt=True;Authentication=\"Active Directory Default\"", sql.Resource.ConnectionStringExpression.ValueExpression);
1488Assert.True(postgres.Resource.TryGetLastAnnotation<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1492var manifest = await ManifestUtils.GetManifestWithBicep(postgres.Resource);
1497Assert.Equal("myconnectionstring", await postgres.Resource.GetConnectionStringAsync(default));
1606Assert.True(postgres.Resource.TryGetLastAnnotation<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1610var manifest = await ManifestUtils.GetManifestWithBicep(postgres.Resource);
1615Assert.Equal("myconnectionstring", await postgres.Resource.GetConnectionStringAsync(default));
1716var manifest = await ManifestUtils.GetManifestWithBicep(postgres.Resource);
1722Assert.Equal(expectedConnectionString, await postgres.Resource.GetConnectionStringAsync());
1748var manifest = await ManifestUtils.GetManifest(postgres.Resource);
1768manifest = await ManifestUtils.GetManifest(postgres.Resource);
1787manifest = await ManifestUtils.GetManifest(postgres.Resource);
1832serviceBus.Resource.Outputs["serviceBusEndpoint"] = "mynamespaceEndpoint";
1834var connectionStringResource = (IResourceWithConnectionString)serviceBus.Resource;
1836Assert.Equal("sb", serviceBus.Resource.Name);
1840var manifest = await ManifestUtils.GetManifestWithBicep(serviceBus.Resource);
1925wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint";
1939var connectionStringResource = (IResourceWithConnectionString)wps.Resource;
1942var manifest = await ManifestUtils.GetManifestWithBicep(wps.Resource);
1945Assert.Equal("wps1", wps.Resource.Name);
1994wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint";
2009var manifest = await ManifestUtils.GetManifestWithBicep(wps.Resource);
2012Assert.Equal("wps1", wps.Resource.Name);
2065Assert.True(storage.Resource.IsContainer());
2072=> new(storage.Resource, new EndpointAnnotation(ProtocolType.Tcp, name: name, targetPort: port));
2078Assert.Equal(blobqs, blob.Resource.ConnectionStringExpression.ValueExpression);
2079Assert.Equal(queueqs, queue.Resource.ConnectionStringExpression.ValueExpression);
2080Assert.Equal(tableqs, table.Resource.ConnectionStringExpression.ValueExpression);
2086Assert.Equal(Resolve(blobqs, "blob", 10000), await ((IResourceWithConnectionString)blob.Resource).GetConnectionStringAsync());
2087Assert.Equal(Resolve(queueqs, "queue", 10001), await ((IResourceWithConnectionString)queue.Resource).GetConnectionStringAsync());
2088Assert.Equal(Resolve(tableqs, "table", 10002), await ((IResourceWithConnectionString)table.Resource).GetConnectionStringAsync());
2107storage.Resource.Outputs["blobEndpoint"] = "https://myblob";
2108storage.Resource.Outputs["queueEndpoint"] = "https://myqueue";
2109storage.Resource.Outputs["tableEndpoint"] = "https://mytable";
2112Assert.Equal("storage", storage.Resource.Name);
2114var storageManifest = await ManifestUtils.GetManifestWithBicep(storage.Resource);
2206var connectionStringBlobResource = (IResourceWithConnectionString)blob.Resource;
2215var blobManifest = await ManifestUtils.GetManifest(blob.Resource);
2221var connectionStringQueueResource = (IResourceWithConnectionString)queue.Resource;
2230var queueManifest = await ManifestUtils.GetManifest(queue.Resource);
2236var connectionStringTableResource = (IResourceWithConnectionString)table.Resource;
2245var tableManifest = await ManifestUtils.GetManifest(table.Resource);
2266storage.Resource.Outputs["blobEndpoint"] = "https://myblob";
2267storage.Resource.Outputs["queueEndpoint"] = "https://myqueue";
2268storage.Resource.Outputs["tableEndpoint"] = "https://mytable";
2271Assert.Equal("storage", storage.Resource.Name);
2273var storageManifest = await ManifestUtils.GetManifestWithBicep(storage.Resource);
2365var connectionStringBlobResource = (IResourceWithConnectionString)blob.Resource;
2374var blobManifest = await ManifestUtils.GetManifest(blob.Resource);
2380var connectionStringQueueResource = (IResourceWithConnectionString)queue.Resource;
2389var queueManifest = await ManifestUtils.GetManifest(queue.Resource);
2395var connectionStringTableResource = (IResourceWithConnectionString)table.Resource;
2404var tableManifest = await ManifestUtils.GetManifest(table.Resource);
2424storage.Resource.Outputs["blobEndpoint"] = "https://myblob";
2425storage.Resource.Outputs["queueEndpoint"] = "https://myqueue";
2426storage.Resource.Outputs["tableEndpoint"] = "https://mytable";
2429Assert.Equal("storage", storage.Resource.Name);
2431var storageManifest = await ManifestUtils.GetManifestWithBicep(storage.Resource);
2523var connectionStringBlobResource = (IResourceWithConnectionString)blob.Resource;
2532var blobManifest = await ManifestUtils.GetManifest(blob.Resource);
2538var connectionStringQueueResource = (IResourceWithConnectionString)queue.Resource;
2547var queueManifest = await ManifestUtils.GetManifest(queue.Resource);
2553var connectionStringTableResource = (IResourceWithConnectionString)table.Resource;
2562var tableManifest = await ManifestUtils.GetManifest(table.Resource);
2583storage.Resource.Outputs["blobEndpoint"] = "https://myblob";
2584storage.Resource.Outputs["queueEndpoint"] = "https://myqueue";
2585storage.Resource.Outputs["tableEndpoint"] = "https://mytable";
2588Assert.Equal("storage", storage.Resource.Name);
2590var storageManifest = await ManifestUtils.GetManifestWithBicep(storage.Resource);
2682var connectionStringBlobResource = (IResourceWithConnectionString)blob.Resource;
2691var blobManifest = await ManifestUtils.GetManifest(blob.Resource);
2697var connectionStringQueueResource = (IResourceWithConnectionString)queue.Resource;
2706var queueManifest = await ManifestUtils.GetManifest(queue.Resource);
2712var connectionStringTableResource = (IResourceWithConnectionString)table.Resource;
2721var tableManifest = await ManifestUtils.GetManifest(table.Resource);
2741search.Resource.Outputs["connectionString"] = fakeConnectionString;
2743var connectionStringResource = (IResourceWithConnectionString)search.Resource;
2746Assert.Equal("search", search.Resource.Name);
2750var manifest = await ManifestUtils.GetManifestWithBicep(search.Resource);
2833var aiManifest = await ManifestUtils.GetManifest(ai.Resource);
2837var serviceBusManifest = await ManifestUtils.GetManifest(serviceBus.Resource);
2841var serviceManifest = await ManifestUtils.GetManifest(serviceA.Resource);
2868var manifest = await ManifestUtils.GetManifestWithBicep(openai.Resource);
3023var (manifest, bicep) = await ManifestUtils.GetManifestWithBicep(provisioningResource.Resource);
AzureCosmosDBEmulatorFunctionalTests.cs (16)
51await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
53await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
57await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
59await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
177await rns.WaitForResourceHealthyAsync(db1.Resource.Name, cts.Token);
185[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.GetValueAsync(default)
188hb.AddAzureCosmosClient(db1.Resource.Name);
225await rns.WaitForResourceHealthyAsync(db2.Resource.Name, cts.Token);
233[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.GetValueAsync(default)
236hb.AddAzureCosmosClient(db2.Resource.Name);
293await rns.WaitForResourceHealthyAsync(cosmos.Resource.Name, cts.Token);
296hb.Configuration[$"ConnectionStrings:{cosmos.Resource.Name}"] = await cosmos.Resource.ConnectionStringExpression.GetValueAsync(default);
297hb.AddAzureCosmosClient(cosmos.Resource.Name);
AzureServiceBusExtensionsTests.cs (12)
43var manifest = await ManifestUtils.GetManifestWithBicep(serviceBus.Resource);
138var manifest = await ManifestUtils.GetManifestWithBicep(serviceBus.Resource);
212await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
214await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
218await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
220await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
242hb.Configuration["ConnectionStrings:servicebusns"] = await serviceBus.Resource.ConnectionStringExpression.GetValueAsync(CancellationToken.None);
249await rns.WaitForResourceAsync(serviceBus.Resource.Name, KnownResourceStates.Running, cts.Token);
250await rns.WaitForResourceHealthyAsync(serviceBus.Resource.Name, cts.Token);
276serviceBus.Resource.Annotations.OfType<EndpointAnnotation>(),
298var containerImageAnnotation = serviceBus.Resource.Annotations.OfType<ContainerImageAnnotation>().FirstOrDefault();
372var manifest = await ManifestUtils.GetManifestWithBicep(serviceBus.Resource);
Aspire.Hosting.Azure.WebPubSub (4)
Aspire.Hosting.Containers.Tests (30)
ContainerResourceBuilderTests.cs (16)
17Assert.Equal("redis-stack", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image);
25Assert.Equal("redis-stack", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image);
26Assert.Equal("1.0.0", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag);
34container.Resource.Annotations.RemoveAt(0);
37Assert.Equal("new-image", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image);
38Assert.Equal("latest", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag);
46container.Resource.Annotations.Add(new ContainerImageAnnotation { Image = "another-image" });
49Assert.Equal("new-image", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Last().Image);
50Assert.Equal("latest", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Last().Tag);
58Assert.Equal("7.1", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag);
66Assert.Equal("myregistry.azurecr.io", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Registry);
74Assert.Equal("42b5c726e719639fcc1e9dbc13dd843f567dcd37911d0e1abb9f47f2cc1c95cd", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().SHA256);
152var annotation = redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single();
164var annotation = redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single();
177var annotation = redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single();
207var containerImage = builder.Resource.Annotations.OfType<ContainerImageAnnotation>().Single();
Aspire.Hosting.Dapr (3)
Aspire.Hosting.Elasticsearch (1)
Aspire.Hosting.Elasticsearch.Tests (21)
ElasticsearchFunctionalTests.cs (17)
46await rns.WaitForResourceHealthyAsync(elasticsearch.Resource.Name, cts.Token);
50hb.Configuration[$"ConnectionStrings:{elasticsearch.Resource.Name}"] = await elasticsearch.Resource.ConnectionStringExpression.GetValueAsync(default);
52hb.AddElasticsearchClient(elasticsearch.Resource.Name);
89var password = elasticsearch1.Resource.PasswordParameter.Value;
111await rns.WaitForResourceHealthyAsync(elasticsearch1.Resource.Name, cts.Token);
117hb.Configuration[$"ConnectionStrings:{elasticsearch1.Resource.Name}"] = await elasticsearch1.Resource.ConnectionStringExpression.GetValueAsync(default);
119hb.AddElasticsearchClient(elasticsearch1.Resource.Name);
169await rns.WaitForResourceHealthyAsync(elasticsearch2.Resource.Name, cts.Token);
175hb.Configuration[$"ConnectionStrings:{elasticsearch2.Resource.Name}"] = await elasticsearch2.Resource.ConnectionStringExpression.GetValueAsync(default);
177hb.AddElasticsearchClient(elasticsearch2.Resource.Name);
261await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
263await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
267await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
269await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
Aspire.Hosting.Garnet.Tests (20)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kafka.Tests (15)
Aspire.Hosting.Keycloak (2)
Aspire.Hosting.Keycloak.Tests (8)
Aspire.Hosting.Milvus (5)
Aspire.Hosting.Milvus.Tests (18)
Aspire.Hosting.MongoDB (6)
Aspire.Hosting.MongoDB.Tests (27)
Aspire.Hosting.MySql (4)
Aspire.Hosting.MySql.Tests (41)
AddMySqlTests.cs (21)
23Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", mysql.Resource.PasswordParameter.Default?.GetType().FullName);
33Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", mysql.Resource.PasswordParameter.Default?.GetType().FullName);
160var mySqlManifest = await ManifestUtils.GetManifest(mysql.Resource);
161var dbManifest = await ManifestUtils.GetManifest(db.Resource);
199var serverManifest = await ManifestUtils.GetManifest(mysql.Resource);
248Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.PrimaryEndpoint.TargetPort}", config["PMA_HOST"]);
289string pattern1 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql1.Resource.Name}:{mysql1.Resource.PrimaryEndpoint.TargetPort}';";
290string pattern2 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql2.Resource.Name}:{mysql2.Resource.PrimaryEndpoint.TargetPort}';";
330Assert.Equal(["db1", "db2"], mysql1.Resource.Databases.Keys);
331Assert.Equal(["customers1", "customers2"], mysql1.Resource.Databases.Values);
333Assert.Equal("customers1", db1.Resource.DatabaseName);
334Assert.Equal("customers2", db2.Resource.DatabaseName);
336Assert.Equal("{mysql1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.ValueExpression);
337Assert.Equal("{mysql1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.ValueExpression);
351Assert.Equal("imports", db1.Resource.DatabaseName);
352Assert.Equal("imports", db2.Resource.DatabaseName);
354Assert.Equal("{mysql1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.ValueExpression);
355Assert.Equal("{mysql2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.ValueExpression);
Aspire.Hosting.Nats (2)
Aspire.Hosting.Nats.Tests (33)
NatsFunctionalTests.cs (19)
37await app.WaitForTextAsync("Listening for client connections", nats.Resource.Name);
41hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = await nats.Resource.ConnectionStringExpression.GetValueAsync(default);
82await app.WaitForTextAsync("Listening for client connections", nats.Resource.Name);
86var connectionString = await nats.Resource.ConnectionStringExpression.GetValueAsync(default);
87hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = connectionString;
124await app.WaitForTextAsync("Listening for client connections", nats.Resource.Name);
128var connectionString = await nats.Resource.ConnectionStringExpression.GetValueAsync(default);
133hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = modifiedConnectionString;
185await app.WaitForTextAsync("Listening for client connections", nats1.Resource.Name);
190hb.Configuration[$"ConnectionStrings:{nats1.Resource.Name}"] = await nats1.Resource.ConnectionStringExpression.GetValueAsync(default);
233await app.WaitForTextAsync("Listening for client connections", nats2.Resource.Name);
238hb.Configuration[$"ConnectionStrings:{nats2.Resource.Name}"] = await nats2.Resource.ConnectionStringExpression.GetValueAsync(default);
345await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
347await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
351await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
353await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
Aspire.Hosting.NodeJs.Tests (2)
Aspire.Hosting.Oracle (3)
Aspire.Hosting.Oracle.Tests (30)
AddOracleTests.cs (13)
22Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", orcl.Resource.PasswordParameter.Default?.GetType().FullName);
32Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", orcl.Resource.PasswordParameter.Default?.GetType().FullName);
200var serverManifest = await ManifestUtils.GetManifest(oracleServer.Resource);
201var dbManifest = await ManifestUtils.GetManifest(db.Resource);
239var serverManifest = await ManifestUtils.GetManifest(oracleServer.Resource);
295Assert.Equal("customers1", db1.Resource.DatabaseName);
296Assert.Equal("customers2", db2.Resource.DatabaseName);
298Assert.Equal("{oracle1.connectionString}/customers1", db1.Resource.ConnectionStringExpression.ValueExpression);
299Assert.Equal("{oracle1.connectionString}/customers2", db2.Resource.ConnectionStringExpression.ValueExpression);
313Assert.Equal("imports", db1.Resource.DatabaseName);
314Assert.Equal("imports", db2.Resource.DatabaseName);
316Assert.Equal("{oracle1.connectionString}/imports", db1.Resource.ConnectionStringExpression.ValueExpression);
317Assert.Equal("{oracle2.connectionString}/imports", db2.Resource.ConnectionStringExpression.ValueExpression);
Aspire.Hosting.Orleans (7)
Aspire.Hosting.PostgreSQL (8)
Aspire.Hosting.PostgreSQL.Tests (49)
AddPostgresTests.cs (24)
22Assert.Single(redis.Resource.Annotations, a => a is HealthCheckAnnotation hca && hca.Key == "postgres_check");
32Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.PasswordParameter.Default?.GetType().FullName);
42Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.PasswordParameter.Default?.GetType().FullName);
158var connectionStringResource = postgres.Resource as IResourceWithConnectionString;
162Assert.Equal($"Host=localhost;Port=2000;Username=postgres;Password={postgres.Resource.PasswordParameter.Value}", connectionString);
249var serverManifest = await ManifestUtils.GetManifest(pgServer.Resource);
250var dbManifest = await ManifestUtils.GetManifest(db.Resource);
293var serverManifest = await ManifestUtils.GetManifest(pgServer.Resource);
319serverManifest = await ManifestUtils.GetManifest(pgServer.Resource);
345serverManifest = await ManifestUtils.GetManifest(pgServer.Resource);
474Assert.Equal(pg1.Resource.Name, servers.GetProperty("1").GetProperty("Name").GetString());
481Assert.Equal($"echo '{pg1.Resource.PasswordParameter.Value}'", servers.GetProperty("1").GetProperty("PasswordExecCommand").GetString());
484Assert.Equal(pg2.Resource.Name, servers.GetProperty("2").GetProperty("Name").GetString());
491Assert.Equal($"echo '{pg2.Resource.PasswordParameter.Value}'", servers.GetProperty("2").GetProperty("PasswordExecCommand").GetString());
539Assert.Equal(CreatePgWebBookmarkfileContent(db1.Resource), content);
543Assert.Equal(CreatePgWebBookmarkfileContent(db2.Resource), content);
580Assert.Equal("customers1", db1.Resource.DatabaseName);
581Assert.Equal("customers2", db2.Resource.DatabaseName);
583Assert.Equal("{postgres1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.ValueExpression);
584Assert.Equal("{postgres1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.ValueExpression);
598Assert.Equal("imports", db1.Resource.DatabaseName);
599Assert.Equal("imports", db2.Resource.DatabaseName);
601Assert.Equal("{postgres1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.ValueExpression);
602Assert.Equal("{postgres2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.ValueExpression);
Aspire.Hosting.Python.Tests (3)
Aspire.Hosting.Qdrant (5)
Aspire.Hosting.Qdrant.Tests (20)
Aspire.Hosting.RabbitMQ (5)
Aspire.Hosting.RabbitMQ.Tests (20)
Aspire.Hosting.Redis (3)
Aspire.Hosting.Redis.Tests (59)
RedisFunctionalTests.cs (47)
51await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
53await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
57await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
59await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
80await app.WaitForTextAsync("Redis Connection", resourceName: commanderBuilder.Resource.Name);
82var client = app.CreateHttpClient(commanderBuilder.Resource.Name, "http");
85var path = $"/apiv2/server/R:{redis.Resource.Name}:{endpoint.TargetPort}:0/info";
106[$"ConnectionStrings:{redis.Resource.Name}"] = await redis.Resource.GetConnectionStringAsync()
109hb.AddRedisClient(redis.Resource.Name);
159builder1.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) =>
171using var client1 = app1.CreateHttpClient($"{redis1.Resource.Name}-insight", "http");
176Assert.Equal($"{redis1.Resource.Name}", firstRunDatabases[0].Name);
197builder2.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) =>
208using var client2 = app2.CreateHttpClient($"{redisInsightBuilder.Resource.Name}", "http");
213Assert.Equal($"{redis2.Resource.Name}", secondRunDatabases[0].Name);
225var latestEvent = await rns.WaitForResourceHealthyAsync(redisInsightBuilder.Resource.Name, cts.Token);
249builder.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) =>
261var client = app.CreateHttpClient(redisInsightBuilder.Resource.Name, "http");
272Assert.Equal(redis1.Resource.Name, db.Name);
273Assert.Equal(redis1.Resource.Name, db.Host);
274Assert.Equal(redis1.Resource.PrimaryEndpoint.TargetPort, db.Port);
280Assert.Equal(redis2.Resource.Name, db.Name);
281Assert.Equal(redis2.Resource.Name, db.Host);
282Assert.Equal(redis2.Resource.PrimaryEndpoint.TargetPort, db.Port);
319[$"ConnectionStrings:{redis1.Resource.Name}"] = $"{await redis1.Resource.GetConnectionStringAsync()},allowAdmin=true"
322hb.AddRedisClient(redis1.Resource.Name);
355[$"ConnectionStrings:{redis2.Resource.Name}"] = await redis2.Resource.GetConnectionStringAsync()
358hb.AddRedisClient(redis2.Resource.Name);
405[$"ConnectionStrings:{redis1.Resource.Name}"] = $"{await redis1.Resource.GetConnectionStringAsync()},allowAdmin=true"
408hb.AddRedisClient(redis1.Resource.Name);
440[$"ConnectionStrings:{redis2.Resource.Name}"] = await redis2.Resource.GetConnectionStringAsync()
443hb.AddRedisClient(redis2.Resource.Name);
489[$"ConnectionStrings:{redis1.Resource.Name}"] = $"{await redis1.Resource.GetConnectionStringAsync()},allowAdmin=true"
492hb.AddRedisClient(redis1.Resource.Name);
519[$"ConnectionStrings:{redis2.Resource.Name}"] = await redis2.Resource.GetConnectionStringAsync()
522hb.AddRedisClient(redis2.Resource.Name);
583builder1.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder1.Resource, (evt, ct) =>
593var httpClient = app.CreateHttpClient(redisInsightBuilder1.Resource.Name, "http");
626builder2.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder2.Resource, (evt, ct) =>
636var httpClient = app.CreateHttpClient(redisInsightBuilder2.Resource.Name, "http");
Aspire.Hosting.SqlServer (3)
Aspire.Hosting.SqlServer.Tests (30)
AddSqlServerTests.cs (13)
22Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", sql.Resource.PasswordParameter.Default?.GetType().FullName);
32Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", sql.Resource.PasswordParameter.Default?.GetType().FullName);
130var serverManifest = await ManifestUtils.GetManifest(sqlServer.Resource);
131var dbManifest = await ManifestUtils.GetManifest(db.Resource);
171var serverManifest = await ManifestUtils.GetManifest(sqlServer.Resource);
228Assert.Equal("customers1", db1.Resource.DatabaseName);
229Assert.Equal("customers2", db2.Resource.DatabaseName);
231Assert.Equal("{sqlserver1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.ValueExpression);
232Assert.Equal("{sqlserver1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.ValueExpression);
246Assert.Equal("imports", db1.Resource.DatabaseName);
247Assert.Equal("imports", db2.Resource.DatabaseName);
249Assert.Equal("{sqlserver1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.ValueExpression);
250Assert.Equal("{sqlserver2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.ValueExpression);
SqlServerFunctionalTests.cs (17)
46await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, cts.Token);
48await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting, cts.Token);
52await rns.WaitForResourceHealthyAsync(resource.Resource.Name, cts.Token);
54await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running, cts.Token);
81hb.Configuration[$"ConnectionStrings:{tempDb.Resource.Name}"] = await tempDb.Resource.ConnectionStringExpression.GetValueAsync(default);
83hb.AddSqlServerDbContext<TestDbContext>(tempDb.Resource.Name);
84hb.AddSqlServerClient(tempDb.Resource.Name);
140var password = sqlserver1.Resource.PasswordParameter.Value;
181await rns.WaitForResourceHealthyAsync(masterdb1.Resource.Name, cts.Token);
189[$"ConnectionStrings:{masterdb1.Resource.Name}"] = await masterdb1.Resource.ConnectionStringExpression.GetValueAsync(default),
192hb1.AddSqlServerClient(masterdb1.Resource.Name);
266await rns.WaitForResourceHealthyAsync(masterdb2.Resource.Name, cts.Token);
274[$"ConnectionStrings:{masterdb2.Resource.Name}"] = await masterdb2.Resource.ConnectionStringExpression.GetValueAsync(default),
277hb2.AddSqlServerClient(masterdb2.Resource.Name);
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (192)
ExpressionResolverTests.cs (4)
53var csRef = new ConnectionStringReference(target.Resource, false);
65var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(source.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
97var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
116var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
Health\ResourceHealthCheckServiceTests.cs (30)
35await rns.PublishUpdateAsync(resource.Resource, s => s with
43await rns.PublishUpdateAsync(resource.Resource, s => s with
76await rns.PublishUpdateAsync(resource.Resource, s => s with
84await rns.PublishUpdateAsync(resource.Resource, s => s with
115builder.Eventing.Subscribe<ResourceReadyEvent>(resource.Resource, (@event, ct) =>
128await rns.PublishUpdateAsync(resource.Resource, s => s with
137Assert.Equal(resource.Resource, e1.Resource);
143await rns.PublishUpdateAsync(resource.Resource, s => s with
151await rns.PublishUpdateAsync(resource.Resource, s => s with
165Assert.Equal(resource.Resource, e2.Resource);
195await rns.PublishUpdateAsync(resource.Resource, s => s with
199await rns.WaitForResourceHealthyAsync(resource.Resource.Name, abortTokenSource.Token).DefaultTimeout();
238await rns.PublishUpdateAsync(resource.Resource, s => s with
282await rns.PublishUpdateAsync(resource.Resource, s => s with
286await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).DefaultTimeout();
309builder.Eventing.Subscribe<ResourceReadyEvent>(resource.Resource, (@event, ct) =>
319await rns.PublishUpdateAsync(resource.Resource, s => s with
325Assert.Equal(resource.Resource, @event.Resource);
351await rns.PublishUpdateAsync(resource.Resource, s => s with
389builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
415await rns.PublishUpdateAsync(parent.Resource, s => s with
449builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
463await rns.PublishUpdateAsync(parent.Resource, s => s with
496builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
502var child = builder.AddResource(new ChildResource("child", parent.Resource));
505builder.Eventing.Subscribe<ResourceReadyEvent>(child.Resource, (@event, ct) =>
516await rns.PublishUpdateAsync(parent.Resource, s => s with
524await rns.PublishUpdateAsync(child.Resource, s => s with
530Assert.Equal(parentReadyEvent.Resource, parent.Resource);
533Assert.Equal(childReadyEvent.Resource, child.Resource);
WaitForTests.cs (29)
33await rns.WaitForResourceAsync(throwingResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
34await rns.WaitForResourceAsync(dependingContainerResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
35await rns.WaitForResourceAsync(dependingExecutableResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
66var childResourceBuilder = builder.AddResource(new CustomChildResource("child", parentResourceBuilder.Resource));
109await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
111await rns.PublishUpdateAsync(dependency.Resource, s => s with
148await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
153await rns.PublishUpdateAsync(dependency.Resource, s => s with
189await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
194await rns.PublishUpdateAsync(dependency.Resource, s => s with
204await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, runningStateCts.Token);
237await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
242await rns.PublishUpdateAsync(dependency.Resource, s => s with
252await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
276builder.Eventing.Subscribe<ResourceReadyEvent>(dependency.Resource, (e, ct) => resourceReadyTcs.Task);
293await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
298await rns.PublishUpdateAsync(dependency.Resource, s => s with
309await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
348await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
353await rns.PublishUpdateAsync(dependency.Resource, s => s with
362await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
397await rns.WaitForResourceAsync(nginx.Resource.Name, "FailedToStart", waitingStateCts.Token);
431await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
434await rns.PublishUpdateAsync(dependency.Resource, s => s with
439await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, waitingStateCts.Token);
451var childResource = builder.AddResource(new CustomChildResource("child", parentResource.Resource));
455Assert.True(containerResource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations));
459a => Assert.Equal(a.Resource, parentResource.Resource),
460a => Assert.Equal(a.Resource, childResource.Resource)
WithEnvironmentTests.cs (15)
31container.Resource,
53var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
66var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
82var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
98var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
115var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
130var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource,
147projectA.Resource,
170var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
195.WithEnvironment("HOST", $"{test.Resource};name=1");
197var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout();
198var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
230var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout();
254var runConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Run).DefaultTimeout();
260var publishConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
WithReferenceTests.cs (10)
29var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
52var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
77var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
100var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
121var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
172var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
191var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
207var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
223var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
296var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
Aspire.Hosting.Valkey.Tests (22)
Aspire.Playground.Tests (1)
BicepSample.AppHost (1)
KafkaBasic.AppHost (2)
Mongo.AppHost (2)
Stress.AppHost (5)