Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bff yarp proxy improvements #1734

Merged
merged 3 commits into from
Feb 4, 2025

Merge branch 'main' into bff-yarp-proxy

7856de1
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Bff yarp proxy improvements #1734

Merge branch 'main' into bff-yarp-proxy
7856de1
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report - Duende.Bff.Blazor.Client.UnitTests succeeded Feb 4, 2025 in 0s

26 passed, 0 failed and 0 skipped

Tests passed successfully

✅ bff/test/Duende.Bff.Blazor.Client.UnitTests/TestResults/Tests.trx

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

Test suite Passed Failed Skipped Time
Duende.Bff.Blazor.Client.UnitTests.AntiforgeryHandlerTests 1✅ 140ms
Duende.Bff.Blazor.Client.UnitTests.BffClientAuthenticationStateProviderTests 4✅ 207ms
Duende.Bff.Blazor.Client.UnitTests.GetUserServiceTests 4✅ 103ms
Duende.Bff.Blazor.Client.UnitTests.ServiceCollectionExtensionsTests 17✅ 169ms

✅ Duende.Bff.Blazor.Client.UnitTests.AntiforgeryHandlerTests

✅ Adds_expected_header

✅ Duende.Bff.Blazor.Client.UnitTests.BffClientAuthenticationStateProviderTests

✅ after_configured_delay_UserService_is_called_again_and_state_notification_is_called
✅ timer_stops_when_user_logs_out
✅ when_UserService_gives_anonymous_user_GetAuthState_returns_anonymous
✅ when_UserService_returns_persisted_user_GetAuthState_returns_that_user

✅ Duende.Bff.Blazor.Client.UnitTests.GetUserServiceTests

✅ FetchUser_maps_claims_into_ClaimsPrincipal
✅ FetchUser_returns_anonymous_when_http_request_fails
✅ GetUser_fetches_user_if_no_persisted_user
✅ GetUser_returns_persisted_user_if_refresh_not_required

✅ Duende.Bff.Blazor.Client.UnitTests.ServiceCollectionExtensionsTests

✅ AddBffBlazorClient_can_set_options_with_callback
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/custom/route/to/apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", configuredRemotePath: null, expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", configuredRemotePath: "remote-apis", expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", configuredRemotePath: null, expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: "/custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: null, expectedBaseAddress: "https://example.com/with/base/path/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path/", configuredRemotePath: "/custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path/", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ When_base_address_option_is_default_AddBffBlazorClient_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_configures_HttpClient_base_address_from_host_env_and_config_callback_is_respected
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_for_typed_clients_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_for_typed_clients_configures_HttpClient_base_address_from_host_env_and_config_callback_is_respected
✅ When_base_address_option_is_set_AddBffBlazorClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", expectedBaseAddress: "https://example.com/")
✅ When_base_address_option_is_set_AddBffBlazorClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", expectedBaseAddress: "https://example.com/")