|
|
@ -20,7 +20,6 @@ import java.net.URI; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.JsonNode; |
|
|
|
import com.fasterxml.jackson.databind.JsonNode; |
|
|
|
import org.junit.jupiter.api.Disabled; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringBootConfiguration; |
|
|
|
import org.springframework.boot.SpringBootConfiguration; |
|
|
@ -48,7 +47,6 @@ public class RequestHeaderToRequestUriGatewayFilterFactoryIntegrationTests exten |
|
|
|
int port; |
|
|
|
int port; |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
@Disabled |
|
|
|
|
|
|
|
public void changeUriWorkWithProperties() { |
|
|
|
public void changeUriWorkWithProperties() { |
|
|
|
testClient.get().uri("/").header("Host", "www.changeuri.org") |
|
|
|
testClient.get().uri("/").header("Host", "www.changeuri.org") |
|
|
|
.header("X-CF-Forwarded-Url", "http://localhost:" + port + "/actuator/health").exchange() |
|
|
|
.header("X-CF-Forwarded-Url", "http://localhost:" + port + "/actuator/health").exchange() |
|
|
@ -56,7 +54,6 @@ public class RequestHeaderToRequestUriGatewayFilterFactoryIntegrationTests exten |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
@Disabled |
|
|
|
|
|
|
|
public void changeUriWorkWithDsl() { |
|
|
|
public void changeUriWorkWithDsl() { |
|
|
|
testClient.get().uri("/").header("Host", "www.changeuri.org") |
|
|
|
testClient.get().uri("/").header("Host", "www.changeuri.org") |
|
|
|
.header("X-Next-Url", "http://localhost:" + port + "/actuator/health").exchange() |
|
|
|
.header("X-Next-Url", "http://localhost:" + port + "/actuator/health").exchange() |
|
|
|