Skip to content

Commit

Permalink
Merge pull request #234 from OndrejKotek/HAL-1993
Browse files Browse the repository at this point in the history
[HAL-1993] Use SASL authentication in tests for domain
  • Loading branch information
hpehl authored Nov 8, 2024
2 parents 6d6dd6f + 32fa839 commit 1c3c6bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
public class WildFlyContainer extends GenericContainer<WildFlyContainer> {

private static final int PORT = 9990;
private static final String MANAGEMENT_USER = "admin";
private static final String MANAGEMENT_PASSWORD = "admin";
private static final Logger logger = LoggerFactory.getLogger(WildFlyContainer.class);
private static WildFlyContainer instance = null;

Expand Down Expand Up @@ -144,7 +146,8 @@ public OnlineManagementClient managementClient() {
if (standalone) {
options = OnlineOptions.standalone().hostAndPort(getHost(), getMappedPort(PORT)).build();
} else {
options = OnlineOptions.domain().forHost(defaultHost).build().hostAndPort(getHost(), getMappedPort(PORT)).build();
options = OnlineOptions.domain().forHost(defaultHost).build().hostAndPort(getHost(), getMappedPort(PORT))
.auth(MANAGEMENT_USER, MANAGEMENT_PASSWORD).build();
}
return ManagementClient.onlineLazy(options);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void refresh() {

public void selectServer(String server) {
WebElement element = root.findElement(By.cssSelector("[data-server=" + hostServerId(server) + "]"));
Graphene.waitGui().until().element(element).is().visible();
element.click();
}

Expand Down

0 comments on commit 1c3c6bb

Please sign in to comment.