diff --git a/refarch-gateway/README.md b/refarch-gateway/README.md index c10e6547..b93ed718 100644 --- a/refarch-gateway/README.md +++ b/refarch-gateway/README.md @@ -41,17 +41,16 @@ Beside the default behaviour there are some special route prefixes which are han ## Configuration -| Var | Description | Example | -|-----------------------------------------------------------|----------------------------------------------------|-------------------------------------------------------------------------| -| `SPRING_PROFILES_ACTIVE` | See profiles | `local,hazelcast-local` | -| `SPRING_CLOUD_GATEWAY_ROUTES__ID` | Id of a route definition. | `backend` | -| `SPRING_CLOUD_GATEWAY_ROUTES__URI` | The uri to route to if this route matches. | `http://backend-service:8080/` | -| `SPRING_CLOUD_GATEWAY_ROUTES__PREDICATES_` | Route predicates i.e. matcher. | `Path=/api/backend-service/**` | -| `SPRING_CLOUD_GATEWAY_ROUTES__FILTERS_` | List of filters applied to the route. | `RewritePath=/api/backend-service/(?.*), /$\{urlsegments}` | -| `ALLOWED_ORIGINS_PUBLIC` (optional) | List of urls allowed as origin for public routes. | `https://*.example.com,http://localhost:*` | -| `ALLOWED_ORIGINS_CLIENTS` (optional) | List of urls allowed as origin for clients routes. | `https://*.example.com,http://localhost:*` | -| `REFARCH_SECURITY_CSRFWHITELISTED_` (optional) | List of routes to disable csrf protection for. | `/example/**` | -| `INFO_APPSWITCHER_URL` (optional) | App switcher url for usage in refarch frontend. | `https://appswitcher.muenchen.de` | +| Var | Description | Example | +|----------------------------------------------------------|----------------------------------------------------|-------------------------------------------------------------------------| +| `SPRING_PROFILES_ACTIVE` | See profiles | `local,hazelcast-local` | +| `SPRING_CLOUD_GATEWAY_ROUTES__ID` | Id of a route definition. | `backend` | +| `SPRING_CLOUD_GATEWAY_ROUTES__URI` | The uri to route to if this route matches. | `http://backend-service:8080/` | +| `SPRING_CLOUD_GATEWAY_ROUTES__PREDICATES_` | Route predicates i.e. matcher. | `Path=/api/backend-service/**` | +| `SPRING_CLOUD_GATEWAY_ROUTES__FILTERS_` | List of filters applied to the route. | `RewritePath=/api/backend-service/(?.*), /$\{urlsegments}` | +| `ALLOWED_ORIGINS_PUBLIC` (optional) | List of urls allowed as origin for public routes. | `https://*.example.com,http://localhost:*` | +| `ALLOWED_ORIGINS_CLIENTS` (optional) | List of urls allowed as origin for clients routes. | `https://*.example.com,http://localhost:*` | +| `REFARCH_SECURITY_CSRFWHITELISTED_` (optional) | List of routes to disable csrf protection for. | `/example/**` | ### Security diff --git a/refarch-gateway/src/test/java/de/muenchen/refarch/gateway/controller/ActuatorInfoEndpointTest.java b/refarch-gateway/src/test/java/de/muenchen/refarch/gateway/controller/ActuatorInfoEndpointTest.java index 0f5db0ba..aafd9360 100644 --- a/refarch-gateway/src/test/java/de/muenchen/refarch/gateway/controller/ActuatorInfoEndpointTest.java +++ b/refarch-gateway/src/test/java/de/muenchen/refarch/gateway/controller/ActuatorInfoEndpointTest.java @@ -23,11 +23,9 @@ class ActuatorInfoEndpointTest { private WebTestClient webTestClient; @Test - void actuatorInfoProvidesAppswitcherUrl() { + void actuatorInfo() { webTestClient.get().uri("/actuator/info").exchange() - .expectStatus().isOk() - .expectBody() - .jsonPath("$.appswitcher.url").isEqualTo("https://test-url-appswitcher.muenchen.de"); + .expectStatus().isOk(); } } diff --git a/refarch-gateway/src/test/resources/application-test.yml b/refarch-gateway/src/test/resources/application-test.yml index dae01432..b3483788 100644 --- a/refarch-gateway/src/test/resources/application-test.yml +++ b/refarch-gateway/src/test/resources/application-test.yml @@ -39,5 +39,3 @@ spring: keycloak: client-id: refarch-gateway client-secret: - -info.appswitcher.url: https://test-url-appswitcher.muenchen.de