aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest3.cs9
1 files changed, 9 insertions, 0 deletions
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
@@ -70,6 +70,15 @@ namespace Timeline.Tests.IntegratedTests2
}
[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()
{
using var client = CreateClientAsUser();