From 821e5c5791041b93a2aa83082e529358017f020a Mon Sep 17 00:00:00 2001 From: James Gunn Date: Wed, 25 Oct 2023 09:01:55 +0100 Subject: [PATCH] Update dependencies (#748) --- .../ServiceCollectionExtensions.cs | 10 ++-- .../TeacherIdentity.AuthServer.csproj | 50 +++++++++---------- .../TeacherIdentity.SampleApi.csproj | 2 +- .../TeacherIdentity.TestClient.csproj | 4 +- .../Register.cs | 2 +- ...erIdentity.AuthServer.EndToEndTests.csproj | 16 +++--- .../TrnTokenSignInJourney.cs | 2 +- ...acherIdentity.AuthServer.SmokeTests.csproj | 8 +-- ...acherIdentity.AuthServer.TestCommon.csproj | 2 +- .../TeacherIdentity.AuthServer.Tests.csproj | 16 +++--- 10 files changed, 52 insertions(+), 60 deletions(-) diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Services/BackgroundJobs/ServiceCollectionExtensions.cs b/dotnet-authserver/src/TeacherIdentity.AuthServer/Services/BackgroundJobs/ServiceCollectionExtensions.cs index 1b7a9eb67..fa20ac6ea 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Services/BackgroundJobs/ServiceCollectionExtensions.cs +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Services/BackgroundJobs/ServiceCollectionExtensions.cs @@ -13,11 +13,11 @@ public static IServiceCollection AddBackgroundJobs( { if (!environment.IsUnitTests() && !environment.IsEndToEndTests()) { - services.AddHangfire(configuration => configuration - .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) - .UseSimpleAssemblyNameTypeSerializer() - .UseRecommendedSerializerSettings() - .UsePostgreSqlStorage(postgresConnectionString)); + services.AddHangfire(config => + config.UsePostgreSqlStorage(o => o.UseNpgsqlConnection(postgresConnectionString)) + .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) + .UseSimpleAssemblyNameTypeSerializer() + .UseRecommendedSerializerSettings()); services.AddHangfireServer(); diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/TeacherIdentity.AuthServer.csproj b/dotnet-authserver/src/TeacherIdentity.AuthServer/TeacherIdentity.AuthServer.csproj index c9304f1f2..d60b5e6ce 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/TeacherIdentity.AuthServer.csproj +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/TeacherIdentity.AuthServer.csproj @@ -10,50 +10,50 @@ - - + + - + - + - + - - - - + + + + - - - - - - + + + + + + - - + + - - - - - + + + + + - + - - + + diff --git a/dotnet-authserver/src/TeacherIdentity.SampleApi/TeacherIdentity.SampleApi.csproj b/dotnet-authserver/src/TeacherIdentity.SampleApi/TeacherIdentity.SampleApi.csproj index be70217b0..073fb1bcd 100644 --- a/dotnet-authserver/src/TeacherIdentity.SampleApi/TeacherIdentity.SampleApi.csproj +++ b/dotnet-authserver/src/TeacherIdentity.SampleApi/TeacherIdentity.SampleApi.csproj @@ -6,7 +6,7 @@ - + diff --git a/dotnet-authserver/src/TeacherIdentity.TestClient/TeacherIdentity.TestClient.csproj b/dotnet-authserver/src/TeacherIdentity.TestClient/TeacherIdentity.TestClient.csproj index e8a0af385..2ac68ac81 100644 --- a/dotnet-authserver/src/TeacherIdentity.TestClient/TeacherIdentity.TestClient.csproj +++ b/dotnet-authserver/src/TeacherIdentity.TestClient/TeacherIdentity.TestClient.csproj @@ -5,8 +5,8 @@ - - + + diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/Register.cs b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/Register.cs index cf71dec16..8eae18ee5 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/Register.cs +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/Register.cs @@ -620,7 +620,7 @@ public async Task NewUser_WithInstitutionEmail_CanRegister(bool useInstitutionEm var invalidEmailSuffix = "invalid.sch.uk"; await _hostFixture.TestData.EnsureEstablishmentDomain(invalidEmailSuffix); - var institutionEmail = $"james@{invalidEmailSuffix}"; + var institutionEmail = $"{Faker.Internet.Email().Split('@')[0]}@{invalidEmailSuffix}"; var personalEmail = Faker.Internet.Email(); var expectedEmail = useInstitutionEmail ? institutionEmail : personalEmail; diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TeacherIdentity.AuthServer.EndToEndTests.csproj b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TeacherIdentity.AuthServer.EndToEndTests.csproj index 14db59918..2db85f298 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TeacherIdentity.AuthServer.EndToEndTests.csproj +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TeacherIdentity.AuthServer.EndToEndTests.csproj @@ -9,16 +9,12 @@ - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TrnTokenSignInJourney.cs b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TrnTokenSignInJourney.cs index 0355d1e67..ba19e180b 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TrnTokenSignInJourney.cs +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.EndToEndTests/TrnTokenSignInJourney.cs @@ -775,7 +775,7 @@ public async Task NewTeacherUser_WithTrnTokenChangesToInstitutionEmail_CreatesUs var invalidEmailSuffix = "invalid.sch.uk"; await _hostFixture.TestData.EnsureEstablishmentDomain(invalidEmailSuffix); - var newInstitutionEmail = $"james@{invalidEmailSuffix}"; + var newInstitutionEmail = $"{Faker.Internet.Email().Split('@')[0]}@{invalidEmailSuffix}"; var newPersonalEmail = Faker.Internet.Email(); var newExpectedEmail = useInstitutionEmail ? newInstitutionEmail : newPersonalEmail; diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.SmokeTests/TeacherIdentity.AuthServer.SmokeTests.csproj b/dotnet-authserver/tests/TeacherIdentity.AuthServer.SmokeTests/TeacherIdentity.AuthServer.SmokeTests.csproj index a8d79e220..616758419 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.SmokeTests/TeacherIdentity.AuthServer.SmokeTests.csproj +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.SmokeTests/TeacherIdentity.AuthServer.SmokeTests.csproj @@ -12,10 +12,10 @@ - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.TestCommon/TeacherIdentity.AuthServer.TestCommon.csproj b/dotnet-authserver/tests/TeacherIdentity.AuthServer.TestCommon/TeacherIdentity.AuthServer.TestCommon.csproj index 3dff4c3cb..c189f0ddc 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.TestCommon/TeacherIdentity.AuthServer.TestCommon.csproj +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.TestCommon/TeacherIdentity.AuthServer.TestCommon.csproj @@ -7,7 +7,7 @@ - + diff --git a/dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TeacherIdentity.AuthServer.Tests.csproj b/dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TeacherIdentity.AuthServer.Tests.csproj index 7a082b868..33742d9f2 100644 --- a/dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TeacherIdentity.AuthServer.Tests.csproj +++ b/dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TeacherIdentity.AuthServer.Tests.csproj @@ -9,17 +9,13 @@ - - - + + + - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all