Skip to content

Commit f971998

Browse files
authored
Use snapshot-based testing (#8930)
1 parent 8306d90 commit f971998

File tree

50 files changed

+67
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+67
-94
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,34 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<ProjectReference Include="..\..\src\Aspire.Hosting\Aspire.Hosting.csproj" />
8+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.AppConfiguration\Aspire.Hosting.Azure.AppConfiguration.csproj" />
99
<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" />
10+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.ApplicationInsights\Aspire.Hosting.Azure.ApplicationInsights.csproj" />
1311
<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" />
1512
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.CosmosDB\Aspire.Hosting.Azure.CosmosDB.csproj" />
1613
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.EventHubs\Aspire.Hosting.Azure.EventHubs.csproj" />
1714
<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" />
15+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.KeyVault\Aspire.Hosting.Azure.KeyVault.csproj" />
16+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.OperationalInsights\Aspire.Hosting.Azure.OperationalInsights.csproj" />
17+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.PostgreSQL\Aspire.Hosting.Azure.PostgreSQL.csproj" />
18+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Redis\Aspire.Hosting.Azure.Redis.csproj" />
19+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Search\Aspire.Hosting.Azure.Search.csproj" />
1920
<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" />
2221
<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" />
22+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Sql\Aspire.Hosting.Azure.Sql.csproj" />
23+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.Storage\Aspire.Hosting.Azure.Storage.csproj" />
24+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure.WebPubSub\Aspire.Hosting.Azure.WebPubSub.csproj" />
25+
<ProjectReference Include="..\..\src\Aspire.Hosting.Azure\Aspire.Hosting.Azure.csproj" />
26+
<ProjectReference Include="..\..\src\Aspire.Hosting\Aspire.Hosting.csproj" />
2727
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Messaging.EventHubs\Aspire.Azure.Messaging.EventHubs.csproj" />
2828
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Messaging.ServiceBus\Aspire.Azure.Messaging.ServiceBus.csproj" />
2929
<ProjectReference Include="..\..\src\Components\Aspire.Azure.Storage.Blobs\Aspire.Azure.Storage.Blobs.csproj" />
3030
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.Azure.Cosmos\Aspire.Microsoft.Azure.Cosmos.csproj" />
3131
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.EntityFrameworkCore.Cosmos\Aspire.Microsoft.EntityFrameworkCore.Cosmos.csproj" />
3232
<ProjectReference Include="..\Aspire.Hosting.Tests\Aspire.Hosting.Tests.csproj" />
33+
</ItemGroup>
3334

35+
<ItemGroup>
3436
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.EventHubs\EventHubsEmulatorContainerImageTags.cs" />
3537
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.ServiceBus\ServiceBusEmulatorContainerImageTags.cs" />
3638
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Azure.Storage\AzureStorageEmulatorConnectionString.cs" />
@@ -39,6 +41,7 @@
3941
<ItemGroup>
4042
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" />
4143
<PackageReference Include="Microsoft.Azure.SignalR.Management" />
44+
<PackageReference Include="Verify.XunitV3" />
4245
</ItemGroup>
4346

4447
</Project>

tests/Aspire.Hosting.Azure.Tests/AzureBicepProvisionerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Aspire.Hosting.Utils;
99
using Microsoft.Extensions.Configuration;
1010
using Microsoft.Extensions.DependencyInjection;
11-
using Xunit;
1211

1312
namespace Aspire.Hosting.Azure.Tests;
1413

tests/Aspire.Hosting.Azure.Tests/AzureBicepResourceTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using Azure.Provisioning.Search;
1818
using Azure.Provisioning.Storage;
1919
using Microsoft.Extensions.DependencyInjection;
20-
using Xunit;
2120
using static Aspire.Hosting.Utils.AzureManifestUtils;
2221

2322
namespace Aspire.Hosting.Azure.Tests;

tests/Aspire.Hosting.Azure.Tests/AzureContainerAppsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
using Azure.Provisioning.Primitives;
1515
using Azure.Provisioning.Storage;
1616
using Microsoft.Extensions.DependencyInjection;
17-
using Xunit;
1817
using static Aspire.Hosting.Utils.AzureManifestUtils;
1918

2019
namespace Aspire.Hosting.Azure.Tests;

tests/Aspire.Hosting.Azure.Tests/AzureCosmosDBEmulatorFunctionalTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using Microsoft.Extensions.Diagnostics.HealthChecks;
1313
using Microsoft.Extensions.Hosting;
1414
using Polly;
15-
using Xunit;
1615

1716
namespace Aspire.Hosting.Azure.Tests;
1817

tests/Aspire.Hosting.Azure.Tests/AzureCosmosDBExtensionsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Aspire.Hosting.Tests.Utils;
77
using Aspire.Hosting.Utils;
88
using Microsoft.Extensions.DependencyInjection;
9-
using Xunit;
109
using static Aspire.Hosting.Utils.AzureManifestUtils;
1110

1211
namespace Aspire.Hosting.Azure.Tests;

tests/Aspire.Hosting.Azure.Tests/AzureEventHubsExtensionsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
using Microsoft.Extensions.DependencyInjection;
1414
using Microsoft.Extensions.Diagnostics.HealthChecks;
1515
using Microsoft.Extensions.Hosting;
16-
using Xunit;
1716

1817
namespace Aspire.Hosting.Azure.Tests;
1918

tests/Aspire.Hosting.Azure.Tests/AzureFunctionsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Aspire.Hosting.Utils;
99
using Azure.Provisioning.Storage;
1010
using Microsoft.Extensions.DependencyInjection;
11-
using Xunit;
1211
using static Aspire.Hosting.Utils.AzureManifestUtils;
1312

1413
namespace Aspire.Hosting.Azure.Tests;

tests/Aspire.Hosting.Azure.Tests/AzureKeyVaultTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Aspire.Hosting.ApplicationModel;
55
using Aspire.Hosting.Utils;
66
using Microsoft.Extensions.DependencyInjection;
7-
using Xunit;
87

98
namespace Aspire.Hosting.Azure.Tests;
109

0 commit comments

Comments
 (0)