1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00
bitwarden-server/test
Rui Tomé f2180aa7b7
[PM-10311] Account Management: Create helper methods for checking against verified domains (#4636)
* Add HasVerifiedDomainsAsync method to IOrganizationDomainService

* Add GetManagedUserIdsByOrganizationIdAsync method to IOrganizationUserRepository and the corresponding queries

* Fix case on the sproc OrganizationUser_ReadManagedIdsByOrganizationId parameter

* Update the EF query to use the Email from the User table

* dotnet format

* Fix IOrganizationDomainService.HasVerifiedDomainsAsync by checking that domains have been Verified and add unit tests

* Rename IOrganizationUserRepository.GetManagedUserIdsByOrganizationAsync

* Fix domain queries

* Add OrganizationUserRepository integration tests

* Add summary to IOrganizationDomainService.HasVerifiedDomainsAsync

* chore: Rename IOrganizationUserRepository.GetManagedUserIdsByOrganizationAsync to GetManyIdsManagedByOrganizationIdAsync

* Add IsManagedByAnyOrganizationAsync method to IUserRepository

* Add integration tests for UserRepository.IsManagedByAnyOrganizationAsync

* Refactor to IUserService.IsManagedByAnyOrganizationAsync and IOrganizationService.GetUsersOrganizationManagementStatusAsync

* chore: Refactor IsManagedByAnyOrganizationAsync method in UserService

* Refactor IOrganizationService.GetUsersOrganizationManagementStatusAsync to return IDictionary<Guid, bool>

* Extract IOrganizationService.GetUsersOrganizationManagementStatusAsync into a query

* Update comments in OrganizationDomainService to use proper capitalization

* Move OrganizationDomainService to AdminConsole ownership and update namespace

* feat: Add support for organization domains in enterprise plans

* feat: Add HasOrganizationDomains property to OrganizationAbility class

* refactor: Update GetOrganizationUsersManagementStatusQuery to use IApplicationCacheService

* Remove HasOrganizationDomains and use UseSso to check if Organization can have Verified Domains

* Refactor UserService.IsManagedByAnyOrganizationAsync to simply check the UseSso flag

* Add TODO comment for replacing 'UseSso' organization ability on user verified domain checks

* Bump date on migration script

* Add indexes to OrganizationDomain table

* Bump script migration date; Remove WITH ONLINE = ON from data migration.
2024-09-11 11:29:57 +01:00
..
Admin.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
Api.IntegrationTest [PM-11667] Remove all code related to the outdated custom permissions 'Edit/Delete Assigned Collections' (#4736) 2024-09-10 15:06:13 +01:00
Api.Test [PM-11667] Remove all code related to the outdated custom permissions 'Edit/Delete Assigned Collections' (#4736) 2024-09-10 15:06:13 +01:00
Billing.Test Upgrade Stripe.net to 45.7.0 (#4744) 2024-09-06 13:30:39 -04:00
Common [AC-1722] Deprecate "Edit/Delete Assigned Collections" custom permissions (#4604) 2024-09-02 11:04:55 +01:00
Core.Test [PM-10311] Account Management: Create helper methods for checking against verified domains (#4636) 2024-09-11 11:29:57 +01:00
Events.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
EventsProcessor.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
Icons.Test Fix Broken Icon Unit Test (#4151) 2024-06-03 09:58:53 -04:00
Identity.IntegrationTest [PM-6664] base request validator - Two Factor flows integration tests (#4643) 2024-09-06 08:05:25 -07:00
Identity.Test [PM-6664] Base Request Validator Unit Tests and Resource Owner integration Tests (#4582) 2024-09-05 11:17:15 -07:00
Infrastructure.Dapper.Test Create DataTableBuilder (#4608) 2024-09-05 20:44:45 -04:00
Infrastructure.EFIntegration.Test [AC-1722] Deprecate "Edit/Delete Assigned Collections" custom permissions (#4604) 2024-09-02 11:04:55 +01:00
Infrastructure.IntegrationTest [PM-10311] Account Management: Create helper methods for checking against verified domains (#4636) 2024-09-11 11:29:57 +01:00
IntegrationTestCommon [PM-6664] base request validator - Two Factor flows integration tests (#4643) 2024-09-06 08:05:25 -07:00
Notifications.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
Bitwarden.Tests.proj Devcontainer Improvements (#4466) 2024-07-08 10:48:02 -04:00