diff options
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs index 412f0476..4ecb805c 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs @@ -99,6 +99,17 @@ namespace Timeline.Tests.IntegratedTests2 await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts", expectedStatusCode: HttpStatusCode.Forbidden); await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/1", expectedStatusCode: HttpStatusCode.Forbidden); } + + [Fact] + public async Task ListAndGetNotFound() + { + var client = CreateClientAsUser(); + await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/user/notexist/posts", expectedStatusCode: HttpStatusCode.NotFound); + await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/user/notexist/posts/1", expectedStatusCode: HttpStatusCode.NotFound); + await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/notexist/notexist/posts", expectedStatusCode: HttpStatusCode.NotFound); + await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/notexist/notexist/posts/1", expectedStatusCode: HttpStatusCode.NotFound); + await client.TestJsonSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/4", expectedStatusCode: HttpStatusCode.NotFound); + } } } |