Skip to content

Commit

Permalink
Sync documentation of main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 4, 2025
1 parent a7200d6 commit 1d7acc7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _versions/main/guides/context-propagation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions _versions/main/guides/mongodb-dev-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}
Expand All @@ -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("[email protected]"));
assertTrue(page.asNormalizedText().contains("[email protected]"));
}
}
Expand Down

0 comments on commit 1d7acc7

Please sign in to comment.