Update Various Deps

This commit is contained in:
Qstick
2021-02-20 01:40:31 -05:00
parent 030ef6dce6
commit a921935c74
21 changed files with 43 additions and 48 deletions
@@ -51,7 +51,11 @@ namespace NzbDrone.Integration.Test.Client
throw response.ErrorException;
}
AssertDisableCache(response.Headers);
// cache control header gets reordered on net core
((string)response.Headers.Single(c => c.Name == "Cache-Control").Value).Split(',').Select(x => x.Trim())
.Should().BeEquivalentTo("no-store, must-revalidate, no-cache, max-age=0".Split(',').Select(x => x.Trim()));
response.Headers.Single(c => c.Name == "Pragma").Value.Should().Be("no-cache");
response.Headers.Single(c => c.Name == "Expires").Value.Should().Be("0");
response.ErrorMessage.Should().BeNullOrWhiteSpace();
@@ -67,15 +71,6 @@ namespace NzbDrone.Integration.Test.Client
return Json.Deserialize<T>(content);
}
private static void AssertDisableCache(IList<Parameter> headers)
{
// cache control header gets reordered on net core
((string)headers.Single(c => c.Name == "Cache-Control").Value).Split(',').Select(x => x.Trim())
.Should().BeEquivalentTo("no-store, must-revalidate, no-cache, max-age=0".Split(',').Select(x => x.Trim()));
headers.Single(c => c.Name == "Pragma").Value.Should().Be("no-cache");
headers.Single(c => c.Name == "Expires").Value.Should().Be("0");
}
}
public class ClientBase<TResource> : ClientBase