Skip to content

Restore legacy tests #12197

Restore legacy tests

Restore legacy tests #12197

Triggered via push October 10, 2023 04:37
Status Failure
Total duration 4m 56s
Artifacts
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
Upload
0s
Upload
Trigger self-host build
0s
Trigger self-host build
Check for failures
11s
Check for failures
Fit to window
Zoom out
Zoom in

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_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_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?'