1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00
bitwarden-server/test
Rui Tomé c126fee296
[PM-11405] Account Management: Prevent a verified user from changing their email address (#4875)
* Add check for managed user before purging account

* Rename IOrganizationRepository.GetByClaimedUserDomainAsync to GetByVerifiedUserEmailDomainAsync and refactor to return a list. Remove ManagedByOrganizationId from ProfileResponseMode. Add ManagesActiveUser to ProfileOrganizationResponseModel

* Rename the property ManagesActiveUser to UserIsManagedByOrganization

* Remove whole class #nullable enable and add it to specific places

* [PM-11405] Account Deprovisioning: Prevent a verified user from changing their email address

* Remove unnecessary .ToList()

* Refactor IUserService methods GetOrganizationsManagingUserAsync and IsManagedByAnyOrganizationAsync to not return nullable objects. Update ProfileOrganizationResponseModel.UserIsManagedByOrganization to not be nullable

* Update error message when unable to purge vault for managed account

* Update error message when unable to change email for managed account

* Update expected error messages on unit tests

* Add TestFeatureService to Api.IntegrationTest.Helpers and use it on ApiApplicationFactory to be able to enable specific features for each test

* Add CreateVerifiedDomainAsync method to OrganizationTestHelpers

* Add tests to AccountsControllerTest to prevent changing email for managed accounts

* Remove setting the feature flag value in ApiApplicationFactory and set it on AccountsControllerTest

* Remove TestFeatureService class from Api.IntegrationTest.Helpers
2024-10-28 16:12:13 +00:00
..
Admin.Test [PM-13447] Add Multi Org Enterprise providers to Admin Console (#4920) 2024-10-23 12:10:50 -04:00
Api.IntegrationTest [PM-11405] Account Management: Prevent a verified user from changing their email address (#4875) 2024-10-28 16:12:13 +00:00
Api.Test [PM-11405] Account Management: Prevent a verified user from changing their email address (#4875) 2024-10-28 16:12:13 +00:00
Billing.Test [deps] Billing: Update FluentAssertions to 6.12.1 (#4817) 2024-09-30 09:41:33 +02:00
Common Shard notification hub (#4450) 2024-10-22 12:20:57 -04:00
Core.Test Remove feature flag (#4931) 2024-10-25 10:17:28 +10: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-6666] Two factor Validator refactor (#4894) 2024-10-24 10:41:25 -07:00
Identity.Test [PM-6666] Two factor Validator refactor (#4894) 2024-10-24 10:41:25 -07:00
Infrastructure.Dapper.Test [deps] Billing: Update xunit-dotnet monorepo (#4827) 2024-09-30 09:44:13 +02:00
Infrastructure.EFIntegration.Test [AC-1722] Deprecate "Edit/Delete Assigned Collections" custom permissions (#4604) 2024-09-02 11:04:55 +01:00
Infrastructure.IntegrationTest Split Organization.LimitCollectionCreationDeletion into two separate business rules (#4730) 2024-10-18 11:00:01 -04:00
IntegrationTestCommon Auth/PM-12613 - Registration with Email Verification - Provider Invite Flow (#4917) 2024-10-23 18:06:24 -04: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