aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-19 15:38:03 +0800
committercrupest <crupest@outlook.com>2021-01-19 15:38:03 +0800
commit901ed6824ce709c46b2bd21ae932290e453ee34d (patch)
tree135ebf00d29bc1901266c308bd794f592e19e440 /BackEnd/Timeline.Tests
parent23433673f91c1b07c43c4b2280e29db45e8896b5 (diff)
downloadtimeline-901ed6824ce709c46b2bd21ae932290e453ee34d.tar.gz
timeline-901ed6824ce709c46b2bd21ae932290e453ee34d.tar.bz2
timeline-901ed6824ce709c46b2bd21ae932290e453ee34d.zip
feat: Deprecate userop/createuser api and add users post api.
Diffstat (limited to 'BackEnd/Timeline.Tests')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/SearchTest.cs6
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/SearchTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/SearchTest.cs
index f96acfea..4979224f 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/SearchTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/SearchTest.cs
@@ -41,10 +41,10 @@ namespace Timeline.Tests.IntegratedTests
var client = await CreateClientAsAdministrator();
{
- await client.TestPostAsync("userop/createuser", new HttpCreateUserRequest { Username = "hahaha", Password = "p" });
- await client.TestPostAsync("userop/createuser", new HttpCreateUserRequest { Username = "bababa", Password = "p" });
+ await client.TestPostAsync("users", new HttpCreateUserRequest { Username = "hahaha", Password = "p" });
+ await client.TestPostAsync("users", new HttpCreateUserRequest { Username = "bababa", Password = "p" });
await client.TestPatchAsync("users/bababa", new HttpUserPatchRequest { Nickname = "hahaha" });
- await client.TestPostAsync("userop/createuser", new HttpCreateUserRequest { Username = "gagaga", Password = "p" });
+ await client.TestPostAsync("users", new HttpCreateUserRequest { Username = "gagaga", Password = "p" });
}
{
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs
index 56dbf92a..664a0604 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs
@@ -207,7 +207,7 @@ namespace Timeline.Tests.IntegratedTests
await client.TestDeleteAssertForbiddenAsync("users/aaa!a");
}
- private const string createUserUrl = "userop/createuser";
+ private const string createUserUrl = "users";
[Fact]
public async Task Op_CreateUser()