Skip to content

Commit

Permalink
fix(bosa): remove crab versions check
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 8, 2024
1 parent 83286a9 commit 4be8009
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public static async Task Main(string[] args)
var connectionString = hostContext.Configuration.GetConnectionString("Integration")
?? throw new ArgumentNullException("hostContext.Configuration.GetConnectionString(\"Integration\")");

services.AddSingleton<DatabaseSetup>(_ => new DatabaseSetup(connectionString));

services.AddTransient<IPostalInfoRepository, PostalInfoRepository>(_ => new PostalInfoRepository(connectionString));
services.AddTransient<IRegistryService, PostalInfoService>();

Expand Down Expand Up @@ -113,7 +111,7 @@ public static async Task Main(string[] args)
LogResponse = true
})
: new AmazonS3Client();

return new S3BlobClient(s3Client, options.UploadBucket);
});

Expand All @@ -124,7 +122,7 @@ public static async Task Main(string[] args)

return new AsyncFtpClient(options.Host, options.Username, options.Password, options.Port ?? 0);
});

services.AddHostedService<FullDownloadService>();
})
.UseConsoleLifetime()
Expand All @@ -140,8 +138,6 @@ public static async Task Main(string[] args)
await DistributedLock<Program>.RunAsync(
async () =>
{
host.Services.GetRequiredService<DatabaseSetup>().CheckIfDataPresent();

await host.RunAsync().ConfigureAwait(false);
},
DistributedLockOptions.LoadFromConfiguration(configuration),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ namespace Basisregisters.IntegrationDb.Bosa.Tests
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Be.Vlaanderen.Basisregisters.GrAr.Common;
using Be.Vlaanderen.Basisregisters.GrAr.Extracts;
using FluentAssertions;
using Microsoft.Extensions.Logging.Abstractions;
using Model.Database;
Expand Down Expand Up @@ -101,6 +103,7 @@ public XmlAddressTests()
[Fact]
public async Task GivenAddress_ThenSerializesCorrectly()
{
var s =SystemClock.Instance.GetCurrentInstant().ToBelgianDateTimeOffset().FromDateTimeOffset();
var municipalities = new Municipality[]
{
new (MunicipalityNamespace, "13013", Date, "Gemeente", "GemeenteFR", "GemeenteDE", "GemeenteEN", MunicipalityStatus.Current),
Expand Down

0 comments on commit 4be8009

Please sign in to comment.