Skip to content

Commit

Permalink
Add more components/resources to smoke test. (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdenny authored and andrevlins committed Nov 24, 2023
1 parent 7df647a commit f9cd28f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
13 changes: 11 additions & 2 deletions tests/testproject/TestProject.AppHost/TestProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projects.IntegrationServiceA>("integrationservicea")
.WithReference(sql);
.WithReference(sqlserver)
.WithReference(mysql)
.WithReference(redis)
.WithReference(postgres)
.WithReference(rabbitmq);
}
}

Expand Down
6 changes: 5 additions & 1 deletion tests/testproject/TestProject.IntegrationServiceA/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -9,6 +9,10 @@
<ItemGroup>
<ProjectReference Include="..\..\..\src\Components\Aspire.Microsoft.Data.SqlClient\Aspire.Microsoft.Data.SqlClient.csproj" />
<ProjectReference Include="..\..\..\src\Components\Aspire.Microsoft.EntityFrameworkCore.SqlServer\Aspire.Microsoft.EntityFrameworkCore.SqlServer.csproj" />
<ProjectReference Include="..\..\..\src\Components\Aspire.MySqlConnector\Aspire.MySqlConnector.csproj" />
<ProjectReference Include="..\..\..\src\Components\Aspire.Npgsql\Aspire.Npgsql.csproj" />
<ProjectReference Include="..\..\..\src\Components\Aspire.RabbitMQ.Client\Aspire.RabbitMQ.Client.csproj" />
<ProjectReference Include="..\..\..\src\Components\Aspire.StackExchange.Redis\Aspire.StackExchange.Redis.csproj" />
</ItemGroup>

</Project>

0 comments on commit f9cd28f

Please sign in to comment.