diff options
author | crupest <crupest@outlook.com> | 2022-04-17 23:31:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-17 23:31:15 +0800 |
commit | ad2829be08116cdb596990c1152e1dfc4f0ffe47 (patch) | |
tree | e7f2f5dd2fd72889148d323492de7ab9d5cfce8d /BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | |
parent | 84cb99d087f62dca89fa682feae6738b3350fed4 (diff) | |
download | timeline-ad2829be08116cdb596990c1152e1dfc4f0ffe47.tar.gz timeline-ad2829be08116cdb596990c1152e1dfc4f0ffe47.tar.bz2 timeline-ad2829be08116cdb596990c1152e1dfc4f0ffe47.zip |
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs index 01390baf..62932010 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs @@ -1,4 +1,4 @@ -using FluentAssertions;
+using FluentAssertions;
using System.Collections.Generic;
using System.Threading.Tasks;
using Timeline.Models.Http;
@@ -96,12 +96,6 @@ namespace Timeline.Tests.IntegratedTests }
{
- var token = userClient.DefaultRequestHeaders.Authorization!.Parameter!;
- // Token should expire.
- await userClient.TestPostAssertErrorAsync("token/verify", new HttpVerifyOrRevokeTokenRequest() { Token = token });
- }
-
- {
// Check password.
(await CreateClientWithCredential("newuser", "newpw")).Dispose();
}
@@ -294,7 +288,6 @@ namespace Timeline.Tests.IntegratedTests {
using var client = await CreateClientAsUser();
await client.TestPostAsync(changePasswordUrl, new HttpChangePasswordRequest { OldPassword = "user1pw", NewPassword = "newpw" });
- await client.TestPatchAssertUnauthorizedAsync("users/user1", new HttpUserPatchRequest { });
(await CreateClientWithCredential("user1", "newpw")).Dispose();
}
|