1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test
Jared Snider d2808b2615
Auth/PM-1658 - Dynamic Org Invite Link to accelerate users through org invite accept process (#3378)
* PM-1658 - Create User_ReadByEmails stored proc

* PM-1658 - Update UserRepository.cs with dapper and EF implementations of GetManyByEmailsAsync using new stored proc

* PM-1658 - OrganizationService.cs - Proved out that the new GetManyByEmailsAsync along with a hash set will allow me to generate a a dict mapping org user ids to a bool representing if they have an org user account or not.

* PM-1658 - OrganizationService.cs - re-implement all send invites logic as part of rebase

* PM-1658 - Add new User_ReadByEmails stored proc to SQL project

* PM-1658 - HandlebarsMailService.cs - (1) Remove unnecessary SendOrganizationInviteEmailAsync method as we can simply use the bulk method for one or more emails (2) Refactor BulkSendOrganizationInviteEmailAsync parameters into new OrganizationInvitesInfo class

* PM-1658 - OrganizationService.cs - rebase commit 2

* PM-1658 - rebase commit 3 - org service + IMailService conflicts resolved

* PM-1658 - Update HandlebarsMailService.cs and OrganizationUserInvitedViewModel.cs to include new query params required client side for accelerating the user through the org invite accept process.

* dotnet format

* PM-1658 - rebase commit 4 -  Fix broken OrganizationServiceTests.cs

* PM-1658 TODO cleanup

* PM-1658 - Remove noop for deleted method.

* rebase commit 5 - fix NoopMailService merge conflicts

* PM-1658 - Fix SQL formatting with proper indentations

* PM-1658 - Rename BulkSendOrganizationInviteEmailAsync to SendOrganizationInviteEmailsAsync per PR feedback

* PM-1658 - Per PR Feedback, refactor OrganizationUserInvitedViewModel creation to use new static factory function for better encapsulation of the creation process.

* PM-1658 - Rename OrganizationInvitesInfo.Invites to OrgUserTokenPairs b/c that just makes sense.

* PM-1658 - Per PR feedback, simplify query params sent down to client. Always include whether the user exists but only include the org sso identifier if it is meant to be used (b/c sso is enabled and sso required policy is on)

* dotnet format

* PM-1658 - OrganizationServiceTests.cs - Fix mysteriously failing tests - several tests were falling into logic which created n org users using the organizationUserRepository.CreateAsync instead of the organizationUserRepository.CreateManyAsync method.  This meant that I had to add a new mock helper to ensure that those created org users had valid and distinct guids to avoid aggregate exceptions due to my added dict in the latter parts of the invite process.

* PM-1658 - Resolve errors from mistakes made during rebase merge conflict resolutions

* PM-1658 - OrganizationServiceTests.cs - fix new test with mock to make guids unique.

* dotnet format

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2023-12-18 11:16:17 -05:00
..
Api.IntegrationTest Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Api.Test [PM-4168] update keys for WebAuthnLoginCredential (#3506) 2023-12-15 13:38:34 -08:00
Billing.Test Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Common Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Core.Test Auth/PM-1658 - Dynamic Org Invite Link to accelerate users through org invite accept process (#3378) 2023-12-18 11:16:17 -05:00
Icons.Test Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Identity.IntegrationTest Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Identity.Test [PM-4619] Rewrite UserService methods as commands (#3432) 2023-12-14 09:35:52 +01:00
Infrastructure.EFIntegration.Test Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Infrastructure.IntegrationTest Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
IntegrationTestCommon Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
bitwarden.tests.sln Add identity tests to test solution (#3342) 2023-10-13 14:15:11 +02:00
coverage.ps1 Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
coverage.sh Fix bug in TaxInfo (#1682) 2021-11-01 12:13:31 -04:00