mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 07:58:40 +00:00
Bump dependencies and fix digest unit tests
This commit is contained in:
parent
fc4c8d3278
commit
282fd4e073
7 changed files with 24 additions and 24 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue