Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented create user with md5 password #237

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

pingu2k4
Copy link
Contributor

@pingu2k4 pingu2k4 commented Oct 7, 2024

Changes

  • implemented create user with md5 password

Issue

#188

Checklist before requesting a review

The PR will only be considered when all items within the checklist are marked as complete. Feel free to submit an incomplete draft PR, and add additional commits until you are able to satisfy each item within the checklist.

  • I have performed a self-review of my code
  • I have submitted at most one additional endpoint implementation
  • I have either submitted no additional endpoint implementation, or my implementation covers both client and server SDK's, unless either are marked in the README with a ❌
  • I have added applicable tests for my code
  • I have updated the README with updated status as a result of this PR

@pingu2k4 pingu2k4 self-assigned this Oct 7, 2024
@pingu2k4 pingu2k4 linked an issue Oct 7, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Oct 7, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
PinguApps.Appwrite.Client 100% 100% 109
PinguApps.Appwrite.Server 100% 100% 56
PinguApps.Appwrite.Shared 100% 100% 507
Summary 100% (1483 / 1483) 100% (164 / 164) 672

Copy link

github-actions bot commented Oct 7, 2024

Test Results

1 448 tests  +3   1 448 ✅ +3   7s ⏱️ ±0s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit 0be4051. ± Comparison against base commit 268d380.

This pull request removes 158 and adds 161 tests. Note that renamed tests count towards both.
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = -1, Length = null, UserId = "67035018000daa4ce915" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = null, Length = -1, UserId = "67035018000da70a80b0" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 86400, Length = 100, UserId = "67035018000dafec0b1a" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 900, Length = 6, UserId = "67035018000d95edb932" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "", Name = null, Password = null, Phone = null, UserId = "67035018000df7922853" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "not an email", Name = null, Password = null, Phone = null, UserId = "67035018000df3c71d48" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "", Password = null, Phone = null, UserId = "67035018000df2edd088" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"···, Password = null, Phone = null, UserId = "67035018000dfef5d11d" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = null, Password = "", Phone = null, UserId = "67035018000df08a24e4" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = null, Password = null, Phone = "", UserId = "67035018000dfcaeff7c" })
…
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithMd5Password_ShouldHandleException_WhenApiCallFails
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithMd5Password_ShouldReturnErrorResponse_WhenExceptionOccurs
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithMd5Password_ShouldReturnSuccess_WhenApiCallSucceeds
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = -1, Length = null, UserId = "6703520f00239c279fa1" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = null, Length = -1, UserId = "6703520f002390b00448" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 86400, Length = 100, UserId = "6703520f00239c0683e2" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 900, Length = 6, UserId = "6703520f00238b353267" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "", Name = null, Password = null, Phone = null, UserId = "6703520f0023ed9e606c" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "not an email", Name = null, Password = null, Phone = null, UserId = "6703520f0023e18f64fd" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "", Password = null, Phone = null, UserId = "6703520f0023e1557ad8" })
…

@pingu2k4 pingu2k4 merged commit e6902d4 into dev Oct 7, 2024
3 checks passed
@pingu2k4 pingu2k4 deleted the 188-create-user-with-md5-password branch October 7, 2024 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Implement Users - Create User with MD5 Password
1 participant