Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 6a7c7ba

Browse files
authored
Update container functional test (#3251)
1 parent db7ea4b commit 6a7c7ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ApiService/FunctionalTests/TestContainer.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
namespace FunctionalTests {
77
[Trait("Category", "Live")]
88
public class TestContainer {
9-
109
private readonly ITestOutputHelper _output;
11-
ContainerApi _containerApi;
12-
DownloadApi _downloadApi;
10+
private readonly ContainerApi _containerApi;
11+
private readonly DownloadApi _downloadApi;
12+
1313
public TestContainer(ITestOutputHelper output) {
1414
_output = output;
1515
_containerApi = new ContainerApi(ApiClient.Endpoint, ApiClient.Request, output);
@@ -19,20 +19,20 @@ public TestContainer(ITestOutputHelper output) {
1919
[Fact]
2020
public async Task DownloadNonExistentContainer() {
2121
var r1 = await _downloadApi.Get();
22-
r1.IsOk!.Should().BeFalse();
22+
r1.IsOk.Should().BeFalse();
2323
r1.ErrorV!.Item2!.ShouldBeProvided("container").Should().BeTrue();
2424

2525
var r2 = await _downloadApi.Get(container: Guid.NewGuid().ToString());
26-
r2.IsOk!.Should().BeFalse();
26+
r2.IsOk.Should().BeFalse();
2727
r2.ErrorV!.Item2!.ShouldBeProvided("filename").Should().BeTrue();
2828

2929
var r3 = await _downloadApi.Get(filename: Guid.NewGuid().ToString());
30-
r3.IsOk!.Should().BeFalse();
30+
r3.IsOk.Should().BeFalse();
3131
r3.ErrorV!.Item2!.ShouldBeProvided("container").Should().BeTrue();
3232

3333
var r4 = await _downloadApi.Get(container: Guid.NewGuid().ToString(), filename: Guid.NewGuid().ToString());
34-
r4.IsOk!.Should().BeFalse();
35-
r4.ErrorV!.Item1.Should().Be(System.Net.HttpStatusCode.InternalServerError);
34+
r4.IsOk.Should().BeFalse();
35+
r4.ErrorV!.Item1.Should().Be(System.Net.HttpStatusCode.NotFound);
3636
}
3737

3838
[Fact]

0 commit comments

Comments
 (0)