-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAmazonSqsEndToEndTestBase.cs
More file actions
31 lines (27 loc) · 946 Bytes
/
AmazonSqsEndToEndTestBase.cs
File metadata and controls
31 lines (27 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using BuslyCLI.Config;
using Testcontainers.LocalStack;
using TransportConfig = BuslyCLI.Config.TransportConfig;
namespace BuslyCLI.Console.Tests.EndToEnd.AmazonSQS;
public abstract class AmazonSqsEndToEndTestBase : SingletonTestFixtureBase<LocalStackContainer>
{
protected override TransportConfig CreateTransportConfig() => new()
{
AmazonsqsTransportConfig = new AmazonsqsTransportConfig
{
ServiceUrl = Container.GetConnectionString(),
RegionName = "us-east-1",
AccessKey = "test",
SecretKey = "test"
}
};
protected override LocalStackContainer CreateContainer()
{
return new LocalStackBuilder("localstack/localstack:4")
.WithEnvironment("SERVICES", "sqs,sns")
.Build();
}
protected override async Task StartContainerAsync(LocalStackContainer container)
{
await container.StartAsync();
}
}