From 1d7acc7909cec2d8523df0d56eb4c017322e447a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 4 Jan 2025 01:55:36 +0000 Subject: [PATCH] Sync documentation of main branch --- _versions/main/guides/context-propagation.adoc | 2 +- _versions/main/guides/mongodb-dev-services.adoc | 4 ++-- .../guides/security-oidc-code-flow-authentication.adoc | 4 ++-- .../main/guides/security-openid-connect-multitenancy.adoc | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/_versions/main/guides/context-propagation.adoc b/_versions/main/guides/context-propagation.adoc index fdfef1d23ba..a9e4628f965 100644 --- a/_versions/main/guides/context-propagation.adoc +++ b/_versions/main/guides/context-propagation.adoc @@ -135,7 +135,7 @@ them to the client as JSON using xref:rest-json.adoc[Jackson or JSON-B]: // Create a REST client to the Star Wars API WebClient client = WebClient.create(vertx, new WebClientOptions() - .setDefaultHost("swapi.dev") + .setDefaultHost("swapi.net") .setDefaultPort(443) .setSsl(true)); // get the list of Star Wars people, with context capture diff --git a/_versions/main/guides/mongodb-dev-services.adoc b/_versions/main/guides/mongodb-dev-services.adoc index 95aad5adddc..0839ace7eb7 100644 --- a/_versions/main/guides/mongodb-dev-services.adoc +++ b/_versions/main/guides/mongodb-dev-services.adoc @@ -6,8 +6,8 @@ https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc = Dev Services for MongoDB Quarkus supports a feature called Dev Services that allows you to create various datasources without any config. In the case of MongoDB this support extends to the default MongoDB connection. -What that means practically, is that if you have not configured `quarkus.mongodb.connection-string`, Quarkus will automatically start a MongoDB container when running tests or in dev mode, -and automatically configure the connection. +What that means practically, is that if you have not configured `quarkus.mongodb.connection-string` nor `quarkus.mongodb.hosts`, Quarkus will automatically start a MongoDB container when +running tests or in dev mode, and automatically configure the connection. MongoDB Dev Services is based on link:https://www.testcontainers.org/modules/databases/mongodb/[Testcontainers MongoDB module] that will start a single node replicaset. diff --git a/_versions/main/guides/security-oidc-code-flow-authentication.adoc b/_versions/main/guides/security-oidc-code-flow-authentication.adoc index 7f549518600..c4bcee3711a 100644 --- a/_versions/main/guides/security-oidc-code-flow-authentication.adoc +++ b/_versions/main/guides/security-oidc-code-flow-authentication.adoc @@ -1923,12 +1923,12 @@ public class CodeFlowAuthorizationTest { // the test REST endpoint listens on '/code-flow' HtmlPage page = webClient.getPage("http://localhost:8081/code-flow"); - HtmlForm form = page.getFormByName("form"); + HtmlForm form = page.getForms().get(0); // user 'alice' has the 'user' role form.getInputByName("username").type("alice"); form.getInputByName("password").type("alice"); - page = form.getInputByValue("login").click(); + page = form.getButtonByName("login").click(); assertEquals("alice", page.getBody().asNormalizedText()); } diff --git a/_versions/main/guides/security-openid-connect-multitenancy.adoc b/_versions/main/guides/security-openid-connect-multitenancy.adoc index 2130649c0a9..85cef4c3525 100644 --- a/_versions/main/guides/security-openid-connect-multitenancy.adoc +++ b/_versions/main/guides/security-openid-connect-multitenancy.adoc @@ -501,9 +501,9 @@ public class CodeFlowTest { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); - page = loginForm.getInputByName("login").click(); + page = loginForm.getButtonByName("login").click(); - assertTrue(page.asText().contains("tenant")); + assertTrue(page.asNormalizedText().contains("tenant")); } } @@ -519,9 +519,9 @@ public class CodeFlowTest { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); - page = loginForm.getInputByName("login").click(); + page = loginForm.getButtonByName("login").click(); - assertTrue(page.asText().contains("alice@tenant-a.org")); + assertTrue(page.asNormalizedText().contains("alice@tenant-a.org")); } }