Anarchy.Toolkit.Testing.Aws
1.0.6
See the version list below for details.
dotnet add package Anarchy.Toolkit.Testing.Aws --version 1.0.6
NuGet\Install-Package Anarchy.Toolkit.Testing.Aws -Version 1.0.6
<PackageReference Include="Anarchy.Toolkit.Testing.Aws" Version="1.0.6" />
<PackageVersion Include="Anarchy.Toolkit.Testing.Aws" Version="1.0.6" />
<PackageReference Include="Anarchy.Toolkit.Testing.Aws" />
paket add Anarchy.Toolkit.Testing.Aws --version 1.0.6
#r "nuget: Anarchy.Toolkit.Testing.Aws, 1.0.6"
#:package Anarchy.Toolkit.Testing.Aws@1.0.6
#addin nuget:?package=Anarchy.Toolkit.Testing.Aws&version=1.0.6
#tool nuget:?package=Anarchy.Toolkit.Testing.Aws&version=1.0.6
Anarchy.Toolkit.Testing.Aws
AWS messaging helpers for SNS/SQS integration tests, typically against LocalStack.
dotnet add package Anarchy.Toolkit.Testing.Aws
- Use
SqsHelperandAwsMessageBrokerHelperto work with test queues and messaging resources. SqsMessageFixturebuilds SQS messages, including gzip/zlib-compressed payloads.- Supply a suitable AWS or LocalStack endpoint and resources for your integration tests.
When to use it
Use this test-only package to exercise SNS/SQS publishing or message processing against a controlled AWS-compatible environment, or to construct SQS event fixtures without a live broker. It does not start LocalStack or provision infrastructure automatically for the whole test suite.
How to use it
- Start a dedicated LocalStack instance or configure a separate test AWS account and supply an application settings object implementing
IAwsAppSettings. - Construct
AwsMessageBrokerHelperwith those settings. Use its queue/topic preparation methods and, when needed, subscribe a queue to a topic before exercising the code under test. - Receive and assert messages with the helper; use
SqsMessageFixturewhen testing a Lambda handler with a constructedSQSEvent, including compressed bodies. - Dispose the helper and clean up test resources. Use unique names or isolate tests that purge queues, and never point destructive cleanup at production resources.
The generic SqsHelper<TAppSettings> can use the test settings of your settings type; see the testing guide for details. PrepareTopicAsync deletes and recreates an existing topic, so isolate resource names carefully.
See Infrastructure.Messaging.Aws, the testing conventions and the toolkit overview.
Releases
1.0.6
- refactor(src): clean up code style across library packages
- chore(deps): update AWS SDK, Lambda ASP.NET Core server and MySqlConnector packages
1.0.5
- chore(deps): update AWS SDK packages
1.0.3
- build: migrate local automation to build tooling
1.0.2
- docs: expand package guides and release histories
- chore(deps): update AWS, Polly, and xUnit packages
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced AWS messaging test helpers, SQS helpers and an SQS message fixture.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.Core (>= 3.4.0)
- Amazon.Lambda.SQSEvents (>= 3.0.1)
- Amazon.Lambda.TestUtilities (>= 4.3.0)
- Anarchy.Toolkit.Infrastructure.Messaging.Aws (>= 1.0.6)
- Anarchy.Toolkit.Testing (>= 1.0.6)
- AwesomeAssertions (>= 9.6.0)
- AWSSDK.Core (>= 4.1.0.1)
- AWSSDK.KeyManagementService (>= 4.1.0)
- AWSSDK.SecretsManager (>= 4.1.1)
- AWSSDK.SimpleNotificationService (>= 4.1.0)
- AWSSDK.SQS (>= 4.1.0)
- Humanizer (>= 3.0.10)
- Microsoft.AspNetCore.WebUtilities (>= 10.0.15)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Json (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Microsoft.NET.Test.Sdk (>= 18.12.0)
- Moq (>= 4.21.0)
- Newtonsoft.Json (>= 13.0.4)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Spectre.Console (>= 0.57.2)
- xunit.v3.extensibility.core (>= 4.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.