Restore legacy tests #12197
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
build.yml
on: push
Matrix: Build MsSqlMigratorUtility
Matrix: Build artifacts
Matrix: Build Docker images
Check for failures
11s
Annotations
10 errors and 21 warnings
Lint
Process completed with exit code 2.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► CanCreateAsync_Success(userType: Admin, createNewCollection: False, limitCollectionCreateDelete: True, sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler { },...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► CanDeleteAsync_Success(userType: Admin, deleteAnyCollection: False, limitCollectionCreateDelete: True, manageCollections: False, sutProvider: SutProvider`1 { Sut = Collectio...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► CanManageCollectionAccessAsync_MissingManageCollectionPermission_Failure(sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler { }, SutType = typeof(Bit.Api.Vaul...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► CanManageCollectionAccessAsync_Success(userType: Admin, editAnyCollection: False, manageCollections: False, sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► HandleRequirementAsync_MissingOrg_Failure(sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler { }, SutType = typeof(Bit.Api.Vault.AuthorizationHandlers.Collect...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► HandleRequirementAsync_MissingUserId_Failure(sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler { }, SutType = typeof(Bit.Api.Vault.AuthorizationHandlers.Coll...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
Error:
Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Bit.Api.Test.Vault.AuthorizationHandlers.CollectionAuthorizationHandlerTests ► HandleRequirementAsync_TargetCollectionsMultipleOrgs_Failure(sutProvider: SutProvider`1 { Sut = CollectionAuthorizationHandler { }, SutType = typeof(Bit.Api.Vault.Authorizat...:
src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs#L37
Failed test found in:
test/Api.Test/TestResults/oss-test-results.trx
Error:
Assert.Throws() Failure
Expected: typeof(Bit.Core.Exceptions.BadRequestException)
Actual: typeof(Bit.Core.Exceptions.FeatureUnavailableException): Flexible collections is OFF when it should be ON.
---- Bit.Core.Exceptions.FeatureUnavailableException : Flexible collections is OFF when it should be ON.
|
Testing
Failed test were found and 'fail-on-error' option is set to true
|
Testing
Process completed with exit code 1.
|
Lint:
test/Common/AutoFixture/SutProviderExtensions.cs#L2
Using directive is unnecessary.
|
Testing:
src/Core/Auth/Services/Implementations/AuthRequestService.cs#L126
Dereference of a possibly null reference.
|
Testing:
src/Core/Auth/Services/Implementations/AuthRequestService.cs#L139
Possible null reference argument for parameter 'user' in 'Task<AuthRequest> AuthRequestService.CreateAuthRequestAsync(AuthRequestCreateRequestModel model, User user, Guid? organizationId)'.
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L68
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L67
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Vault/Repositories/Queries/CipherReadCanEditByIdUserIdQuery.cs#L63
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Vault/Repositories/Queries/CipherReadCanEditByIdUserIdQuery.cs#L63
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L101
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L100
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/CollectionCipherRepository.cs#L197
The result of the expression is always 'false' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/Queries/CollectionCipherReadByUserIdQuery.cs#L46
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Core/Auth/Services/Implementations/AuthRequestService.cs#L126
Dereference of a possibly null reference.
|
Testing:
src/Core/Auth/Services/Implementations/AuthRequestService.cs#L139
Possible null reference argument for parameter 'user' in 'Task<AuthRequest> AuthRequestService.CreateAuthRequestAsync(AuthRequestCreateRequestModel model, User user, Guid? organizationId)'.
|
Testing:
src/Infrastructure.EntityFramework/Vault/Repositories/Queries/CipherReadCanEditByIdUserIdQuery.cs#L63
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Vault/Repositories/Queries/CipherReadCanEditByIdUserIdQuery.cs#L63
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L68
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L67
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L101
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/DatabaseContextExtensions.cs#L100
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/CollectionCipherRepository.cs#L197
The result of the expression is always 'false' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|
Testing:
src/Infrastructure.EntityFramework/Repositories/Queries/UserCollectionDetailsQuery.cs#L46
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
|