diff --git a/tests/testproject/TestProject.AppHost/TestProgram.cs b/tests/testproject/TestProject.AppHost/TestProgram.cs index d00694f4933..7fe67f03129 100644 --- a/tests/testproject/TestProject.AppHost/TestProgram.cs +++ b/tests/testproject/TestProject.AppHost/TestProgram.cs @@ -14,9 +14,18 @@ private TestProgram(string[] args, Assembly assembly, bool includeIntegrationSer if (includeIntegrationServices) { - var sql = AppBuilder.AddSqlServerContainer("sql"); + var sqlserver = AppBuilder.AddSqlServerContainer("sqlserver"); + var mysql = AppBuilder.AddMySqlContainer("mysql"); + var redis = AppBuilder.AddRedisContainer("redis"); + var postgres = AppBuilder.AddPostgresContainer("postgres"); + var rabbitmq = AppBuilder.AddRabbitMQContainer("rabbitmq"); + IntegrationServiceA = AppBuilder.AddProject("integrationservicea") - .WithReference(sql); + .WithReference(sqlserver) + .WithReference(mysql) + .WithReference(redis) + .WithReference(postgres) + .WithReference(rabbitmq); } } diff --git a/tests/testproject/TestProject.IntegrationServiceA/Program.cs b/tests/testproject/TestProject.IntegrationServiceA/Program.cs index 6c7cbfcd5f2..a8a243cedb9 100644 --- a/tests/testproject/TestProject.IntegrationServiceA/Program.cs +++ b/tests/testproject/TestProject.IntegrationServiceA/Program.cs @@ -2,7 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. var builder = WebApplication.CreateBuilder(args); -builder.AddSqlServerClient("sql"); +builder.AddSqlServerClient("sqlserver"); +builder.AddMySqlDataSource("mysql"); +builder.AddRedis("redis"); +builder.AddNpgsqlDataSource("postgres"); +builder.AddRabbitMQ("rabbitmq"); var app = builder.Build(); diff --git a/tests/testproject/TestProject.IntegrationServiceA/TestProject.IntegrationServiceA.csproj b/tests/testproject/TestProject.IntegrationServiceA/TestProject.IntegrationServiceA.csproj index ec5ae27dcb5..79dc6d40c41 100644 --- a/tests/testproject/TestProject.IntegrationServiceA/TestProject.IntegrationServiceA.csproj +++ b/tests/testproject/TestProject.IntegrationServiceA/TestProject.IntegrationServiceA.csproj @@ -1,4 +1,4 @@ - + net8.0 @@ -9,6 +9,10 @@ + + + +