Skip to content

Add global.json

Add global.json #176

GitHub Actions / Test Results succeeded Dec 19, 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✅ 8s
extensions/Bitwarden.Extensions.Configuration/tests/TestResults/test-results.trx 2⚪ 7s
extensions/Bitwarden.Extensions.Hosting/tests/TestResults/test-results.trx 42✅ 5s

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

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

Test suite Passed Failed Skipped Time
Bitwarden.Core.Tests.AccessTokenTests 1✅ 15ms
Bitwarden.Extensions.Configuration.Tests.AccessTokenTests 1✅ 8ms
Bitwarden.Extensions.Configuration.Tests.EncryptedStringTests 1✅ 11ms

✅ 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 7s 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

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

Test suite Passed Failed Skipped Time
Bitwarden.Extensions.Hosting.Tests.Features.FeatureApplicationBuilderExtensionsTests 1✅ 383ms
Bitwarden.Extensions.Hosting.Tests.Features.FeatureCheckMiddlewareTests 11✅ 1s
Bitwarden.Extensions.Hosting.Tests.Features.FeatureEndpointConventionBuilderExtensionsTests 3✅ 173ms
Bitwarden.Extensions.Hosting.Tests.Features.FeatureServiceCollectionExtensionsTests 4✅ 327ms
Bitwarden.Extensions.Hosting.Tests.Features.LaunchDarklyFeatureServiceTests 11✅ 678ms
Bitwarden.Extensions.Hosting.Tests.SelfHostedAttributeTests 4✅ 733ms
Bitwarden.Extensions.Hosting.Tests.Utilities.VersionInfoTests 8✅ 28ms

✅ Bitwarden.Extensions.Hosting.Tests.Features.FeatureApplicationBuilderExtensionsTests

✅ UseFeatureFlagChecks_RegistersMiddleware

✅ Bitwarden.Extensions.Hosting.Tests.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.Extensions.Hosting.Tests.Features.FeatureEndpointConventionBuilderExtensionsTests

✅ RequireFeature_ChainedCall
✅ RequireFeature_WithCallback
✅ RequireFeature_WithFeatureKey

✅ Bitwarden.Extensions.Hosting.Tests.Features.FeatureServiceCollectionExtensionsTests

✅ AddFeatureFlagValues_MultipleTimes_AddMoreAndOverwritesExisting
✅ AddFeatureFlagValues_Works
✅ AddKnownFeatureFlags_MultipleTimes_AddsAll
✅ AddKnownFeatureFlags_Works

✅ Bitwarden.Extensions.Hosting.Tests.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.Extensions.Hosting.Tests.SelfHostedAttributeTests

✅ NotSelfHosted_Success_When_NotSelfHosted
✅ NotSelfHosted_Throws_When_SelfHosted
✅ SelfHosted_Success_When_SelfHosted
✅ SelfHosted_Throws_When_NotSelfHosted

✅ Bitwarden.Extensions.Hosting.Tests.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")