暂存提交

This commit is contained in:
2026-07-31 16:53:07 +08:00
parent 45358ef40f
commit 704cb15ccf
98 changed files with 1944 additions and 134 deletions
@@ -1,5 +1,6 @@
package com.baiyue.gateway.config;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.oauth2.jwt.Jwt;
@@ -9,6 +10,7 @@ import reactor.test.StepVerifier;
import java.time.Instant;
@DisplayName("网关应用域授权功能")
class AppScopeAuthorizationManagerTest {
@Test
void acceptsMatchingApplicationScope() {
@@ -1,5 +1,6 @@
package com.baiyue.gateway.config;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
@@ -17,6 +18,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
"baiyue.cors.allowed-origins=http://localhost:5173"
})
@AutoConfigureWebTestClient
@DisplayName("网关跨域配置功能")
class GatewayCorsConfigurationTest {
private static final String PROFILE_URL =
"http://localhost/api/merchant/v1/iam/tenant/profile";