Skip to content

Commit

Permalink
Fix tests in REST client quickstart for the native SSL guide
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefank committed Nov 26, 2024
1 parent ef35e3a commit 3b9809b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@ 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"));
}

@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"));
}

@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"));
}
Expand Down
8 changes: 4 additions & 4 deletions rest-client-quickstart/src/test/resources/extensions.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[
{
"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",
"resteasy-reactive",
"services",
"web-client"
],
"name": "REST Client Reactive",
"shortName": "REST Client Reactive"
"name": "REST Client",
"shortName": "REST Client"
},
{
"id": "io.quarkus:quarkus-resteasy",
Expand Down

0 comments on commit 3b9809b

Please sign in to comment.