1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test
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
..
Api.Test [send.key] Update send.key when account encryption key is rotated (#1417) 2021-07-02 06:27:03 +10:00
Core.Test Refactor policy checks (#1536) 2021-09-28 06:54:28 +10:00
Icons.Test Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
bitwarden.tests.sln Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
coverage.ps1 Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
coverage.sh Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00