Skip to content

Commit 928de9a

Browse files
committed
(temp) Snapshot tests
1 parent 1f97fb2 commit 928de9a

File tree

4 files changed

+37
-14
lines changed

4 files changed

+37
-14
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,7 @@ node_modules/
147147
.venv
148148

149149
# Publisher Outputs
150-
playground/**/publish/
150+
playground/**/publish/
151+
152+
# Verify
153+
*.received.*

tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj

+16-12
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,38 @@
22

33
<PropertyGroup>
44
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
5+
<NoWarn>$(NoWarn);IDE0005</NoWarn>
56
</PropertyGroup>
67

78
<ItemGroup>
8-
<ProjectReference Include="..\..\src\Aspire.Hosting\Aspire.Hosting.csproj" />
9+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.AppConfiguration\Aspire.Hosting.Azure.AppConfiguration.csproj" />
910
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.AppContainers\Aspire.Hosting.Azure.AppContainers.csproj" />
10-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure\Aspire.Hosting.Azure.csproj" />
11-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Redis\Aspire.Hosting.Azure.Redis.csproj" />
12-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.KeyVault\Aspire.Hosting.Azure.KeyVault.csproj" />
11+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.ApplicationInsights\Aspire.Hosting.Azure.ApplicationInsights.csproj" />
1312
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.CognitiveServices\Aspire.Hosting.Azure.CognitiveServices.csproj" />
14-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.PostgreSQL\Aspire.Hosting.Azure.PostgreSQL.csproj" />
1513
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.CosmosDB\Aspire.Hosting.Azure.CosmosDB.csproj" />
1614
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.EventHubs\Aspire.Hosting.Azure.EventHubs.csproj" />
1715
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Functions\Aspire.Hosting.Azure.Functions.csproj" />
18-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Storage\Aspire.Hosting.Azure.Storage.csproj" />
16+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.KeyVault\Aspire.Hosting.Azure.KeyVault.csproj" />
17+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.OperationalInsights\Aspire.Hosting.Azure.OperationalInsights.csproj" />
18+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.PostgreSQL\Aspire.Hosting.Azure.PostgreSQL.csproj" />
19+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Redis\Aspire.Hosting.Azure.Redis.csproj" />
20+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Search\Aspire.Hosting.Azure.Search.csproj" />
1921
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.ServiceBus\Aspire.Hosting.Azure.ServiceBus.csproj" />
20-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.WebPubSub\Aspire.Hosting.Azure.WebPubSub.csproj" />
21-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Sql\Aspire.Hosting.Azure.Sql.csproj" />
2222
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.SignalR\Aspire.Hosting.Azure.SignalR.csproj" />
23-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Search\Aspire.Hosting.Azure.Search.csproj" />
24-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.OperationalInsights\Aspire.Hosting.Azure.OperationalInsights.csproj" />
25-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.ApplicationInsights\Aspire.Hosting.Azure.ApplicationInsights.csproj" />
26-
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.AppConfiguration\Aspire.Hosting.Azure.AppConfiguration.csproj" />
23+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Sql\Aspire.Hosting.Azure.Sql.csproj" />
24+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Storage\Aspire.Hosting.Azure.Storage.csproj" />
25+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.WebPubSub\Aspire.Hosting.Azure.WebPubSub.csproj" />
26+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure\Aspire.Hosting.Azure.csproj" />
27+
<ProjectReference Include="..\..\src\Aspire.Hosting\Aspire.Hosting.csproj" />
2728
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Messaging.EventHubs\Aspire.Azure.Messaging.EventHubs.csproj" />
2829
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Messaging.ServiceBus\Aspire.Azure.Messaging.ServiceBus.csproj" />
2930
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Storage.Blobs\Aspire.Azure.Storage.Blobs.csproj" />
3031
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.Azure.Cosmos\Aspire.Microsoft.Azure.Cosmos.csproj" />
3132
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.EntityFrameworkCore.Cosmos\Aspire.Microsoft.EntityFrameworkCore.Cosmos.csproj" />
3233
<ProjectReference Include="..\Aspire.Hosting.Tests\Aspire.Hosting.Tests.csproj" />
34+
</ItemGroup>
3335

36+
<ItemGroup>
3437
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.EventHubs\EventHubsEmulatorContainerImageTags.cs" />
3538
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.ServiceBus\ServiceBusEmulatorContainerImageTags.cs" />
3639
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.Storage\AzureStorageEmulatorConnectionString.cs" />
@@ -39,6 +42,7 @@
3942
<ItemGroup>
4043
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" />
4144
<PackageReference Include="Microsoft.Azure.SignalR.Management" />
45+
<PackageReference Include="Verify.XunitV3" />
4246
</ItemGroup>
4347

4448
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Runtime.CompilerServices;
5+
using EmptyFiles;
6+
7+
namespace Aspire.Hosting.Azure.Tests;
8+
9+
sealed class TestModuleInitializer
10+
{
11+
[ModuleInitializer]
12+
internal static void Setup()
13+
{
14+
FileExtensions.AddTextExtension("bicep");
15+
}
16+
}

tests/Directory.Packages.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
<PackageVersion Include="Testcontainers.Oracle" Version="$(TestcontainersPackageVersion)" />
2424
<PackageVersion Include="Testcontainers.Elasticsearch" Version="$(TestcontainersPackageVersion)" />
2525
<PackageVersion Include="Testcontainers" Version="$(TestcontainersPackageVersion)" />
26-
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
26+
<PackageVersion Include="Verify.XunitV3" Version="29.1.0" />
2727
</ItemGroup>
2828
</Project>

0 commit comments

Comments
 (0)