From 282fd4e073334f03f4222516fd6963265901811a Mon Sep 17 00:00:00 2001 From: Slendy Date: Fri, 14 Jul 2023 16:41:15 -0500 Subject: [PATCH] Bump dependencies and fix digest unit tests --- .config/dotnet-tools.json | 2 +- .../ProjectLighthouse.Servers.Website.csproj | 2 +- .../ProjectLighthouse.Tests.GameApiTests.csproj | 8 ++++---- .../Unit/Middlewares/DigestMiddlewareTests.cs | 12 ++++++------ .../ProjectLighthouse.Tests.WebsiteTests.csproj | 8 ++++---- .../ProjectLighthouse.Tests.csproj | 10 +++++----- ProjectLighthouse/ProjectLighthouse.csproj | 6 +++--- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 7b3f3867..a087fd08 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "dotnet-ef": { - "version": "7.0.8", + "version": "7.0.9", "commands": [ "dotnet-ef" ] diff --git a/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj b/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj index 24fa5277..2de86e4e 100644 --- a/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj +++ b/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj @@ -34,7 +34,7 @@ - + diff --git a/ProjectLighthouse.Tests.GameApiTests/ProjectLighthouse.Tests.GameApiTests.csproj b/ProjectLighthouse.Tests.GameApiTests/ProjectLighthouse.Tests.GameApiTests.csproj index 083d4f07..65d44e81 100644 --- a/ProjectLighthouse.Tests.GameApiTests/ProjectLighthouse.Tests.GameApiTests.csproj +++ b/ProjectLighthouse.Tests.GameApiTests/ProjectLighthouse.Tests.GameApiTests.csproj @@ -9,14 +9,14 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/ProjectLighthouse.Tests.GameApiTests/Unit/Middlewares/DigestMiddlewareTests.cs b/ProjectLighthouse.Tests.GameApiTests/Unit/Middlewares/DigestMiddlewareTests.cs index c8c18249..977a7f45 100644 --- a/ProjectLighthouse.Tests.GameApiTests/Unit/Middlewares/DigestMiddlewareTests.cs +++ b/ProjectLighthouse.Tests.GameApiTests/Unit/Middlewares/DigestMiddlewareTests.cs @@ -39,8 +39,8 @@ public class DigestMiddlewareTests const int expectedCode = 200; Assert.Equal(expectedCode, context.Response.StatusCode); - Assert.Empty(context.Response.Headers["X-Digest-A"]); - Assert.Empty(context.Response.Headers["X-Digest-B"]); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-A", out _)); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-B", out _)); } [Fact] @@ -72,8 +72,8 @@ public class DigestMiddlewareTests const int expectedCode = 403; Assert.Equal(expectedCode, context.Response.StatusCode); - Assert.Empty(context.Response.Headers["X-Digest-A"]); - Assert.Empty(context.Response.Headers["X-Digest-B"]); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-A", out _)); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-B", out _)); } [Fact] @@ -107,8 +107,8 @@ public class DigestMiddlewareTests const int expectedCode = 403; Assert.Equal(expectedCode, context.Response.StatusCode); - Assert.Empty(context.Response.Headers["X-Digest-A"]); - Assert.Empty(context.Response.Headers["X-Digest-B"]); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-A", out _)); + Assert.False(context.Response.Headers.TryGetValue("X-Digest-B", out _)); } [Fact] diff --git a/ProjectLighthouse.Tests.WebsiteTests/ProjectLighthouse.Tests.WebsiteTests.csproj b/ProjectLighthouse.Tests.WebsiteTests/ProjectLighthouse.Tests.WebsiteTests.csproj index 361c0d17..6c8172c9 100644 --- a/ProjectLighthouse.Tests.WebsiteTests/ProjectLighthouse.Tests.WebsiteTests.csproj +++ b/ProjectLighthouse.Tests.WebsiteTests/ProjectLighthouse.Tests.WebsiteTests.csproj @@ -9,16 +9,16 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/ProjectLighthouse.Tests/ProjectLighthouse.Tests.csproj b/ProjectLighthouse.Tests/ProjectLighthouse.Tests.csproj index 4d4a0f90..80de2573 100644 --- a/ProjectLighthouse.Tests/ProjectLighthouse.Tests.csproj +++ b/ProjectLighthouse.Tests/ProjectLighthouse.Tests.csproj @@ -14,14 +14,14 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -30,7 +30,7 @@ all - + diff --git a/ProjectLighthouse/ProjectLighthouse.csproj b/ProjectLighthouse/ProjectLighthouse.csproj index 7dc09679..4b06dc62 100644 --- a/ProjectLighthouse/ProjectLighthouse.csproj +++ b/ProjectLighthouse/ProjectLighthouse.csproj @@ -14,9 +14,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive