Change the URLs used to test blocking rest calls

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov 2025-04-09 16:05:07 +02:00
commit 13c4474b3e
3 changed files with 9 additions and 9 deletions

View file

@ -396,7 +396,7 @@ public class WebFluxSseIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();
@ -436,7 +436,7 @@ public class WebFluxSseIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();
@ -453,7 +453,7 @@ public class WebFluxSseIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();

View file

@ -388,7 +388,7 @@ public class WebMvcSseIntegrationTests {
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.get()https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.retrieve()
.body(String.class);
@ -424,7 +424,7 @@ public class WebMvcSseIntegrationTests {
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
// perform a blocking call to a remote service
String response = RestClient.create()
String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.retrieve()
@ -441,7 +441,7 @@ public class WebMvcSseIntegrationTests {
AtomicReference<List<Tool>> rootsRef = new AtomicReference<>();
var mcpClient = clientBuilder.toolsChangeConsumer(toolsUpdate -> {
// perform a blocking call to a remote service
String response = RestClient.create()
String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.retrieve()

View file

@ -374,7 +374,7 @@ public class HttpServletSseServerTransportProviderIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();
@ -411,7 +411,7 @@ public class HttpServletSseServerTransportProviderIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();
@ -428,7 +428,7 @@ public class HttpServletSseServerTransportProviderIntegrationTests {
// perform a blocking call to a remote service
String response = RestClient.create()
.get()
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
.retrieve()
.body(String.class);
assertThat(response).isNotBlank();