Skip to content

[deps] Bitwarden.Server.Sdk.UnitTests: Update Microsoft.NET.Test.Sdk … #197

[deps] Bitwarden.Server.Sdk.UnitTests: Update Microsoft.NET.Test.Sdk …

[deps] Bitwarden.Server.Sdk.UnitTests: Update Microsoft.NET.Test.Sdk … #197

GitHub Actions / Test Results succeeded Dec 23, 2024 in 0s

45 passed, 0 failed and 2 skipped

Tests passed successfully

Report Passed Failed Skipped Time
extensions/Bitwarden.Core/tests/TestResults/test-results.trx 3✅ 6s
extensions/Bitwarden.Extensions.Configuration/tests/TestResults/test-results.trx 2⚪ 6s
extensions/Bitwarden.Extensions.Hosting/tests/TestResults/test-results.trx 4✅ 4s
extensions/Bitwarden.Server.Sdk/tests/Bitwarden.Server.Sdk.UnitTests/TestResults/test-results.trx 38✅ 4s

✅ extensions/Bitwarden.Core/tests/TestResults/test-results.trx

3 tests were completed in 6s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Bitwarden.Core.Tests.AccessTokenTests 1✅ 22ms
Bitwarden.Extensions.Configuration.Tests.AccessTokenTests 1✅ 14ms
Bitwarden.Extensions.Configuration.Tests.EncryptedStringTests 1✅ 13ms

✅ Bitwarden.Core.Tests.AccessTokenTests

✅ Test

✅ Bitwarden.Extensions.Configuration.Tests.AccessTokenTests

✅ StretchKey_Works

✅ Bitwarden.Extensions.Configuration.Tests.EncryptedStringTests

✅ Decrypt_Works

✅ extensions/Bitwarden.Extensions.Configuration/tests/TestResults/test-results.trx

2 tests were completed in 6s with 0 passed, 0 failed and 2 skipped.

Test suite Passed Failed Skipped Time
Bitwarden.Extensions.Configuration.Tests.SecretsManagerConfigurationProviderTests 2⚪ 2ms

✅ Bitwarden.Extensions.Configuration.Tests.SecretsManagerConfigurationProviderTests

⚪ Load_Reload_Works
⚪ Load_Simple_Works

✅ extensions/Bitwarden.Extensions.Hosting/tests/TestResults/test-results.trx

4 tests were completed in 4s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Bitwarden.Extensions.Hosting.Tests.SelfHostedAttributeTests 4✅ 432ms

✅ Bitwarden.Extensions.Hosting.Tests.SelfHostedAttributeTests

✅ NotSelfHosted_Success_When_NotSelfHosted
✅ NotSelfHosted_Throws_When_SelfHosted
✅ SelfHosted_Success_When_SelfHosted
✅ SelfHosted_Throws_When_NotSelfHosted

✅ extensions/Bitwarden.Server.Sdk/tests/Bitwarden.Server.Sdk.UnitTests/TestResults/test-results.trx

38 tests were completed in 4s with 38 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Bitwarden.Server.Sdk.Features.FeatureApplicationBuilderExtensionsTests 1✅ 818ms
Bitwarden.Server.Sdk.UnitTests.Features.FeatureCheckMiddlewareTests 11✅ 2s
Bitwarden.Server.Sdk.UnitTests.Features.FeatureEndpointConventionBuilderExtensionsTests 3✅ 131ms
Bitwarden.Server.Sdk.UnitTests.Features.FeatureServiceCollectionExtensionsTests 4✅ 306ms
Bitwarden.Server.Sdk.UnitTests.Features.LaunchDarklyFeatureServiceTests 11✅ 943ms
Bitwarden.Server.Sdk.UnitTests.Utilities.VersionInfoTests 8✅ 89ms

✅ Bitwarden.Server.Sdk.Features.FeatureApplicationBuilderExtensionsTests

✅ UseFeatureFlagChecks_RegistersMiddleware

✅ Bitwarden.Server.Sdk.UnitTests.Features.FeatureCheckMiddlewareTests

✅ FailedCheck_ReturnsProblemDetails
✅ HasMetadata_AllMustBeTrue(metadata: [], expectedStatusCode: 200)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = configured-false, Flag = configured-false], expectedStatusCode: 404)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = configured-false], expectedStatusCode: 404)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = configured-true, Flag = configured-false], expectedStatusCode: 404)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = configured-true, Flag = configured-true], expectedStatusCode: 200)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = configured-true], expectedStatusCode: 200)
✅ HasMetadata_AllMustBeTrue(metadata: [Flag = not-configured], expectedStatusCode: 404)
✅ NoCheck_CallsEndpoint
✅ NoEndpointInvokesPipeline
✅ SuccessfulCheck_CallsEndpoint

✅ Bitwarden.Server.Sdk.UnitTests.Features.FeatureEndpointConventionBuilderExtensionsTests

✅ RequireFeature_ChainedCall
✅ RequireFeature_WithCallback
✅ RequireFeature_WithFeatureKey

✅ Bitwarden.Server.Sdk.UnitTests.Features.FeatureServiceCollectionExtensionsTests

✅ AddFeatureFlagValues_MultipleTimes_AddMoreAndOverwritesExisting
✅ AddFeatureFlagValues_Works
✅ AddKnownFeatureFlags_MultipleTimes_AddsAll
✅ AddKnownFeatureFlags_Works

✅ Bitwarden.Server.Sdk.UnitTests.Features.LaunchDarklyFeatureServiceTests

✅ GetAll
✅ GetAll_OnlyReturnsKnownFlags
✅ GetIntVariation_PassesAlongDetails(defaultValue: -1)
✅ GetIntVariation_PassesAlongDetails(defaultValue: 0)
✅ GetIntVariation_PassesAlongDetails(defaultValue: 2147483647)
✅ GetStringVariation_PassesAlongDetails(defaultValue: "")
✅ GetStringVariation_PassesAlongDetails(defaultValue: "test")
✅ GetStringVariation_PassesAlongDetails(defaultValue: null)
✅ IsEnabled_MultipleCalls_BuildsContextOnce
✅ IsEnabled_PassesAlongDetails(defaultValue: False)
✅ IsEnabled_PassesAlongDetails(defaultValue: True)

✅ Bitwarden.Server.Sdk.UnitTests.Utilities.VersionInfoTests

✅ TryParse_Fails(input: "")
✅ TryParse_Fails(input: "1.0.0+")
✅ TryParse_Fails(input: "1.0.0+af18")
✅ TryParse_Fails(input: "1.0.0+XXXXXXX")
✅ TryParse_Fails(input: null)
✅ TryParse_Works(input: "1.0.0", version: "1.0.0", gitHash: null)
✅ TryParse_Works(input: "1.0.0+af18b", version: "1.0.0", gitHash: "af18b")
✅ TryParse_Works(input: "1.0.0+af18b2952b5ddf910bd2f729a7c89a04b8d67084", version: "1.0.0", gitHash: "af18b2952b5ddf910bd2f729a7c89a04b8d67084")