Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix lambda tests #1618

Merged
merged 7 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace RoadRegistry.BackOffice.Handlers.Sqs.Lambda.Tests.Framework;
using RoadRegistry.Tests.BackOffice;
using RoadRegistry.Tests.BackOffice.Scenarios;
using TicketingService.Abstractions;
using Xunit.Sdk;
using Xunit.Abstractions;
using AcceptedChange = Messages.AcceptedChange;
using GeometryTranslator = GeometryTranslator;
using LineString = NetTopologySuite.Geometries.LineString;
Expand All @@ -43,6 +43,7 @@ namespace RoadRegistry.BackOffice.Handlers.Sqs.Lambda.Tests.Framework;
using RoadSegmentSurfaceAttributes = Messages.RoadSegmentSurfaceAttributes;
using RoadSegmentWidthAttributes = Messages.RoadSegmentWidthAttributes;

[Collection("runsequential")]
public abstract class BackOfficeLambdaTest: RoadNetworkTestBase
{
private const string ConfigurationDetailUrl = "http://base/{0}";
Expand All @@ -64,7 +65,7 @@ public abstract class BackOfficeLambdaTest: RoadNetworkTestBase

protected SqsLambdaHandlerOptions SqsLambdaHandlerOptions { get; }

protected BackOfficeLambdaTest() : base(new TestOutputHelper())
protected BackOfficeLambdaTest(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
{
SqsLambdaHandlerOptions = new FakeSqsLambdaHandlerOptions();
RecyclableMemoryStreamManager = new RecyclableMemoryStreamManager();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace RoadRegistry.BackOffice.Handlers.Sqs.Lambda.Tests;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

[Collection("runsequential")]
public class FunctionTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace RoadRegistry.BackOffice.Handlers.Sqs.Lambda.Tests;
using RoadRegistry.Tests.BackOffice.Scenarios;
using Xunit.Abstractions;

[Collection("runsequential")]
public sealed class MessageHandlerTests : RoadRegistryTestBase
{
public MessageHandlerTests(ITestOutputHelper testOutputHelper)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ namespace RoadRegistry.BackOffice.Handlers.Sqs.Lambda.Tests.RoadSegments.StreetN
using Messages;
using NodaTime.Text;
using RoadRegistry.StreetName;
using Xunit.Abstractions;
using AcceptedChange = Messages.AcceptedChange;

public abstract class LinkUnlinkStreetNameTestsBase : BackOfficeLambdaTest
{
protected LinkUnlinkStreetNameTestsBase()
protected LinkUnlinkStreetNameTestsBase(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
{
StreetNameClient = new StreetNameCacheClient(new FakeStreetNameCache()
.AddStreetName(WellKnownStreetNameIds.Proposed, "Proposed street", "voorgesteld")
Expand Down
Loading
Loading