From 86160e4a5697615452a7e06dc78f8be4c8b2515f Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 9 Apr 2022 19:30:39 +0800 Subject: ... --- BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'BackEnd/Timeline.Tests') diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs index 5313a7c8..f760bd03 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs @@ -69,6 +69,15 @@ namespace Timeline.Tests.IntegratedTests2 await client.TestSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/1/data/1"); } + [Fact] + public async Task PostDataGetDeleted() + { + using var client = CreateClientAsUser(); + await client.TestSendAsync(HttpMethod.Delete, "v2/timelines/user/hello/posts/1", expectedStatusCode: HttpStatusCode.NoContent); + await client.TestSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/1/data", expectedStatusCode: HttpStatusCode.Gone); + await client.TestSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/1/data/1", expectedStatusCode: HttpStatusCode.Gone); + } + [Fact] public async Task PostDataGetNotExist() { -- cgit v1.2.3