Skip to content

Commit 13c4474

Browse files
committed
Change the URLs used to test blocking rest calls
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 8fc72ae commit 13c4474

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxSseIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void testToolCallSuccess(String clientType) {
396396
// perform a blocking call to a remote service
397397
String response = RestClient.create()
398398
.get()
399-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
399+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
400400
.retrieve()
401401
.body(String.class);
402402
assertThat(response).isNotBlank();
@@ -436,7 +436,7 @@ void testToolListChangeHandlingSuccess(String clientType) {
436436
// perform a blocking call to a remote service
437437
String response = RestClient.create()
438438
.get()
439-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
439+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
440440
.retrieve()
441441
.body(String.class);
442442
assertThat(response).isNotBlank();
@@ -453,7 +453,7 @@ void testToolListChangeHandlingSuccess(String clientType) {
453453
// perform a blocking call to a remote service
454454
String response = RestClient.create()
455455
.get()
456-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
456+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
457457
.retrieve()
458458
.body(String.class);
459459
assertThat(response).isNotBlank();

mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void testToolCallSuccess() {
388388
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
389389
// perform a blocking call to a remote service
390390
String response = RestClient.create()
391-
.get()
391+
.get()https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
392392
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
393393
.retrieve()
394394
.body(String.class);
@@ -424,7 +424,7 @@ void testToolListChangeHandlingSuccess() {
424424
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
425425
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
426426
// perform a blocking call to a remote service
427-
String response = RestClient.create()
427+
String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
428428
.get()
429429
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
430430
.retrieve()
@@ -441,7 +441,7 @@ void testToolListChangeHandlingSuccess() {
441441
AtomicReference<List<Tool>> rootsRef = new AtomicReference<>();
442442
var mcpClient = clientBuilder.toolsChangeConsumer(toolsUpdate -> {
443443
// perform a blocking call to a remote service
444-
String response = RestClient.create()
444+
String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md
445445
.get()
446446
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
447447
.retrieve()

mcp/src/test/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProviderIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void testToolCallSuccess() {
374374
// perform a blocking call to a remote service
375375
String response = RestClient.create()
376376
.get()
377-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
377+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
378378
.retrieve()
379379
.body(String.class);
380380
assertThat(response).isNotBlank();
@@ -411,7 +411,7 @@ void testToolListChangeHandlingSuccess() {
411411
// perform a blocking call to a remote service
412412
String response = RestClient.create()
413413
.get()
414-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
414+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
415415
.retrieve()
416416
.body(String.class);
417417
assertThat(response).isNotBlank();
@@ -428,7 +428,7 @@ void testToolListChangeHandlingSuccess() {
428428
// perform a blocking call to a remote service
429429
String response = RestClient.create()
430430
.get()
431-
.uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md")
431+
.uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md")
432432
.retrieve()
433433
.body(String.class);
434434
assertThat(response).isNotBlank();

0 commit comments

Comments
 (0)