1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-20 02:31:30 +01:00
bitwarden-server/test/Core.Test/Services
Matt Gibson 785e788cb6
Support large organization sync (#1311)
* Increase organization max seat size from 30k to 2b (#1274)

* Increase organization max seat size from 30k to 2b

* PR review. Do not modify unless state matches expected

* Organization sync simultaneous event reporting (#1275)

* Split up azure messages according to max size

* Allow simultaneous login of organization user events

* Early resolve small event lists

* Clarify logic

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>

* Improve readability

This comes at the cost of multiple serializations, but the
 improvement in wire-time should more than make up for this
 on message where serialization time matters

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>

* Queue emails (#1286)

* Extract common Azure queue methods

* Do not use internal entity framework namespace

* Prefer IEnumerable to IList unless needed

All of these implementations were just using `Count == 1`,
which is easily replicated. This will be used when abstracting Azure queues

* Add model for azure queue message

* Abstract Azure queue for reuse

* Creat service to enqueue mail messages for later processing

Azure queue mail service uses Azure queues.
Blocking just blocks until all the work is done -- This is
how emailing works today

* Provide mail queue service to DI

* Queue organization invite emails for later processing

All emails can later be added to this queue

* Create Admin hosted service to process enqueued mail messages

* Prefer constructors to static generators

* Mass delete organization users (#1287)

* Add delete many to Organization Users

* Correct formatting

* Remove erroneous migration

* Clarify parameter name

* Formatting fixes

* Simplify bump account revision sproc

* Formatting fixes

* Match file names to objects

* Indicate if large import is expected

* Early pull all existing users we were planning on inviting (#1290)

* Early pull all existing users we were planning on inviting

* Improve sproc name

* Batch upsert org users (#1289)

* Add UpsertMany sprocs to OrganizationUser

* Add method to create TVPs from any object.

Uses DbOrder attribute to generate.
Sproc will fail unless TVP column order matches that of the db type

* Combine migrations

* Correct formatting

* Include sql objects in sql project

* Keep consisten parameter names

* Batch deletes for performance

* Correct formatting

* consolidate migrations

* Use batch methods in OrganizationImport

* Declare @BatchSize

* Transaction names limited to 32 chars

Drop sproc before creating it if it exists

* Update import tests

* Allow for more users in org upgrades

* Fix formatting

* Improve class hierarchy structure

* Use name tuple types

* Fix formatting

* Front load all reflection

* Format constructor

* Simplify ToTvp as class-specific extension

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2021-05-17 09:43:02 -05: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 Properly qualify namespace (#1328) 2021-05-13 18:06:16 -04:00
DeviceServiceTests.cs Properly qualify namespace (#1328) 2021-05-13 18:06:16 -04:00
EventServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
GroupServiceTests.cs Write GroupService unit tests (#1267) 2021-05-11 21:36:23 -05:00
HandlebarsMailServiceTests.cs Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
InMemoryApplicationCacheServiceTests.cs Add basic Core.Services test files (#526) 2019-07-05 20:35:54 -07:00
InMemoryServiceBusApplicationCacheServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06: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 Support large organization sync (#1311) 2021-05-17 09:43:02 -05: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 Hide email address in Sends (#1234) 2021-03-29 07:56:56 +10:00
StripePaymentServiceTests.cs Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
UserServiceTests.cs Remove U2F APIs again (#1319) 2021-05-12 19:48:00 +02:00