1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-03 18:57:35 +01:00
bitwarden-server/test/Core.Test/Services
Thomas Rittson 66629b2f1c
Refactor policy checks (#1536)
* Move policy checking logic inside PolicyService

* Refactor to use currentContext.ManagePolicies

* Make orgUser status check more semantic

* Fix single org user checks

* Use CoreHelper implementation to deserialize json

* Refactor policy checks to use db query

* Use new db query for enforcing 2FA Policy

* Add Policy_ReadByTypeApplicableToUser

* Stub out EF implementations

* Refactor: use PolicyRepository only

* Refactor tests

* Copy SQL queries to proj and update sqlproj file

* Refactor importCiphersAsync to use new method

* Add EF implementations and tests

* Refactor SQL to remove unnecessary operations
2021-09-28 06:54:28 +10:00
..
AmazonSesMailDeliveryServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
AmazonSqsBlockIpServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
AzureAttachmentStorageServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
AzureQueueBlockIpServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
AzureQueueEventWriteServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
AzureQueuePushNotificationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
CipherServiceTests.cs Add cipher response to restore (#1072) 2021-01-08 08:52:42 -06:00
CollectionServiceTests.cs Postgres & MySql Support For Self-Hosted Installations (#1386) 2021-07-08 16:35:48 +00:00
DeviceServiceTests.cs Properly qualify namespace (#1328) 2021-05-13 18:06:16 -04:00
EventServiceTests.cs [Provider] Add support for events (#1447) 2021-07-15 16:37:27 +02:00
GroupServiceTests.cs Postgres & MySql Support For Self-Hosted Installations (#1386) 2021-07-08 16:35:48 +00:00
HandlebarsMailServiceTests.cs Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
InMemoryApplicationCacheServiceTests.cs [Provider] Setup provider (#1378) 2021-06-30 09:35:26 +02:00
InMemoryServiceBusApplicationCacheServiceTests.cs [Provider] Setup provider (#1378) 2021-06-30 09:35:26 +02:00
LicensingServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
LocalAttachmentStorageServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
MailKitSmtpMailDeliveryServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
MultiServicePushNotificationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
NotificationHubPushNotificationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
NotificationHubPushRegistrationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
NotificationsApiPushNotificationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
OrganizationServiceTests.cs Organization autoscaling (#1585) 2021-09-23 05:36:08 -05:00
PolicyServiceTests.cs Postgres & MySql Support For Self-Hosted Installations (#1386) 2021-07-08 16:35:48 +00:00
RelayPushNotificationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
RelayPushRegistrationServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
RepositoryEventWriteServiceTests.cs Add basic Core.Services test files (#526) 2019-07-05 20:35:54 -07:00
SendServiceTests.cs Refactor policy checks (#1536) 2021-09-28 06:54:28 +10:00
SsoConfigServiceTests.cs Policy Service Tests (#1344) 2021-06-11 10:33:32 -05:00
StripePaymentServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
UserServiceTests.cs Resolve error when deleting an account connected to a provider (#1580) 2021-09-15 20:34:06 +02:00