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 scrypt modified password #244

Conversation

pingu2k4
Copy link
Contributor

@pingu2k4 pingu2k4 commented Oct 8, 2024

Changes

  • Implemented create user with scrypt modified password

Issue

#191

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 8, 2024
@pingu2k4 pingu2k4 linked an issue Oct 8, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Oct 8, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
PinguApps.Appwrite.Client 100% 100% 109
PinguApps.Appwrite.Server 100% 100% 59
PinguApps.Appwrite.Shared 100% 100% 507
Summary 100% (1498 / 1498) 100% (164 / 164) 675

Copy link

github-actions bot commented Oct 8, 2024

Test Results

1 457 tests  +3   1 457 ✅ +3   8s ⏱️ ±0s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit 3f10caa. ± Comparison against base commit 09f4beb.

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 = "67054c1c002cac72c7d0" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = null, Length = -1, UserId = "67054c1c002ca887ba51" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 86400, Length = 100, UserId = "67054c1c002caf09f52b" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 900, Length = 6, UserId = "67054c1c002c9bb84026" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "", Name = null, Password = null, Phone = null, UserId = "67054c1c002cf45ffec6" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "not an email", Name = null, Password = null, Phone = null, UserId = "67054c1c002cf291b1ab" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "", Password = null, Phone = null, UserId = "67054c1c002cf4632fa2" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"···, Password = null, Phone = null, UserId = "67054c1c002cf4441214" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = null, Password = "", Phone = null, UserId = "67054c1c002cfef669d5" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = null, Password = null, Phone = "", UserId = "67054c1c002cf9ec66c4" })
…
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithScryptModifiedPassword_ShouldHandleException_WhenApiCallFails
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithScryptModifiedPassword_ShouldReturnErrorResponse_WhenExceptionOccurs
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserWithScryptModifiedPassword_ShouldReturnSuccess_WhenApiCallSucceeds
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = -1, Length = null, UserId = "67056514002192ab4df5" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = null, Length = -1, UserId = "6705651400219d276fba" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 86400, Length = 100, UserId = "6705651400219d2b222f" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 900, Length = 6, UserId = "67056514002172efeff8" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "", Name = null, Password = null, Phone = null, UserId = "670565140021dafb34de" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = "not an email", Name = null, Password = null, Phone = null, UserId = "670565140021dd5c2d5c" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateUserRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateUserRequest { Email = null, Name = "", Password = null, Phone = null, UserId = "670565140021e8cecee0" })
…

@pingu2k4 pingu2k4 merged commit 5391924 into dev Oct 8, 2024
3 checks passed
@pingu2k4 pingu2k4 deleted the 191-feat-implement-users-create-user-with-scrypt-modified-password branch October 8, 2024 17:00
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 Scrypt Modified Password
1 participant