mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
PM-18890 fix failing unit tests
This commit is contained in:
parent
836c0c5693
commit
7d6c279b37
@ -287,7 +287,7 @@ public class ImportCiphersControllerTests
|
|||||||
Arg.Any<IEnumerable<Collection>>(),
|
Arg.Any<IEnumerable<Collection>>(),
|
||||||
Arg.Is<IEnumerable<IAuthorizationRequirement>>(reqs =>
|
Arg.Is<IEnumerable<IAuthorizationRequirement>>(reqs =>
|
||||||
reqs.Contains(BulkCollectionOperations.Create)))
|
reqs.Contains(BulkCollectionOperations.Create)))
|
||||||
.Returns(AuthorizationResult.Success());
|
.Returns(AuthorizationResult.Failed());
|
||||||
|
|
||||||
sutProvider.GetDependency<ICollectionRepository>()
|
sutProvider.GetDependency<ICollectionRepository>()
|
||||||
.GetManyByOrganizationIdAsync(orgIdGuid)
|
.GetManyByOrganizationIdAsync(orgIdGuid)
|
||||||
@ -339,7 +339,7 @@ public class ImportCiphersControllerTests
|
|||||||
Arg.Any<IEnumerable<Collection>>(),
|
Arg.Any<IEnumerable<Collection>>(),
|
||||||
Arg.Is<IEnumerable<IAuthorizationRequirement>>(reqs =>
|
Arg.Is<IEnumerable<IAuthorizationRequirement>>(reqs =>
|
||||||
reqs.Contains(BulkCollectionOperations.ImportCiphers)))
|
reqs.Contains(BulkCollectionOperations.ImportCiphers)))
|
||||||
.Returns(AuthorizationResult.Success());
|
.Returns(AuthorizationResult.Failed());
|
||||||
|
|
||||||
// BulkCollectionOperations.Create permission setup
|
// BulkCollectionOperations.Create permission setup
|
||||||
sutProvider.GetDependency<IAuthorizationService>()
|
sutProvider.GetDependency<IAuthorizationService>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user