aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-09 19:30:39 +0800
committercrupest <crupest@outlook.com>2022-04-09 19:30:39 +0800
commit86160e4a5697615452a7e06dc78f8be4c8b2515f (patch)
treec679b7750a1b341af991a82023edd00038b5d152 /BackEnd/Timeline.Tests
parent0aa43ef4c6724f672453676a0c688cd80097dad7 (diff)
downloadtimeline-86160e4a5697615452a7e06dc78f8be4c8b2515f.tar.gz
timeline-86160e4a5697615452a7e06dc78f8be4c8b2515f.tar.bz2
timeline-86160e4a5697615452a7e06dc78f8be4c8b2515f.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests')
-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();