From 3b9809b900eba4428f036a14f2c0772fb627de94 Mon Sep 17 00:00:00 2001 From: xstefank Date: Tue, 26 Nov 2024 14:02:34 +0100 Subject: [PATCH] Fix tests in REST client quickstart for the native SSL guide --- .../rest/client/ExtensionsResourceTest.java | 18 +++++++++--------- .../src/test/resources/extensions.json | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/rest-client-quickstart/src/test/java/org/acme/rest/client/ExtensionsResourceTest.java b/rest-client-quickstart/src/test/java/org/acme/rest/client/ExtensionsResourceTest.java index e1be248d90..74a60bbbcb 100644 --- a/rest-client-quickstart/src/test/java/org/acme/rest/client/ExtensionsResourceTest.java +++ b/rest-client-quickstart/src/test/java/org/acme/rest/client/ExtensionsResourceTest.java @@ -18,12 +18,12 @@ public class ExtensionsResourceTest { @Test public void testExtensionsIdEndpoint() { given() - .when().get("/extension/id/io.quarkus:quarkus-rest-client-reactive") + .when().get("/extension/id/io.quarkus:quarkus-rest-client") .then() .statusCode(200) .body("$.size()", is(1), - "[0].id", is("io.quarkus:quarkus-rest-client-reactive"), - "[0].name", is("REST Client Reactive"), + "[0].id", is("io.quarkus:quarkus-rest-client"), + "[0].name", is("REST Client"), "[0].keywords.size()", greaterThan(1), "[0].keywords", hasItem("rest-client")); } @@ -31,12 +31,12 @@ public void testExtensionsIdEndpoint() { @Test public void testExtensionIdAsyncEndpoint() { given() - .when().get("/extension/id-async/io.quarkus:quarkus-rest-client-reactive") + .when().get("/extension/id-async/io.quarkus:quarkus-rest-client") .then() .statusCode(200) .body("$.size()", is(1), - "[0].id", is("io.quarkus:quarkus-rest-client-reactive"), - "[0].name", is("REST Client Reactive"), + "[0].id", is("io.quarkus:quarkus-rest-client"), + "[0].name", is("REST Client"), "[0].keywords.size()", greaterThan(1), "[0].keywords", hasItem("rest-client")); } @@ -44,12 +44,12 @@ public void testExtensionIdAsyncEndpoint() { @Test public void testExtensionIdMutinyEndpoint() { given() - .when().get("/extension/id-uni/io.quarkus:quarkus-rest-client-reactive") + .when().get("/extension/id-uni/io.quarkus:quarkus-rest-client") .then() .statusCode(200) .body("$.size()", is(1), - "[0].id", is("io.quarkus:quarkus-rest-client-reactive"), - "[0].name", is("REST Client Reactive"), + "[0].id", is("io.quarkus:quarkus-rest-client"), + "[0].name", is("REST Client"), "[0].keywords.size()", greaterThan(1), "[0].keywords", hasItem("rest-client")); } diff --git a/rest-client-quickstart/src/test/resources/extensions.json b/rest-client-quickstart/src/test/resources/extensions.json index d547706423..add9aaffa5 100644 --- a/rest-client-quickstart/src/test/resources/extensions.json +++ b/rest-client-quickstart/src/test/resources/extensions.json @@ -1,10 +1,10 @@ [ { - "id": "io.quarkus:quarkus-rest-client-reactive", + "id": "io.quarkus:quarkus-rest-client", "keywords": [ "call", "microprofile-rest-client", - "quarkus-rest-client-reactive", + "quarkus-rest-client", "reactively", "rest", "rest-client", @@ -12,8 +12,8 @@ "services", "web-client" ], - "name": "REST Client Reactive", - "shortName": "REST Client Reactive" + "name": "REST Client", + "shortName": "REST Client" }, { "id": "io.quarkus:quarkus-resteasy",