Skip to content

Commit

Permalink
Fix error in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Aug 27, 2024
1 parent 24acc45 commit 66940b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private String startCreateUserFlow(String secret) {
public void testEmailDomainRegisteredWithIDPDoesNotAllowAccountCreation() throws Exception {
String adminToken = IntegrationTestUtils.getClientCredentialsToken(baseUrl, "admin", "adminsecret");
IdentityProvider<OIDCIdentityProviderDefinition> oidcProvider = new IdentityProvider().setName("oidc_provider").setActive(true).setType(OriginKeys.OIDC10).setOriginKey(OriginKeys.OIDC10).setConfig(new OIDCIdentityProviderDefinition());
oidcProvider.getConfig().setAuthUrl(new URL("http://example.com"));
oidcProvider.getConfig().setAuthUrl(new URL("https://example.com"));
oidcProvider.getConfig().setShowLinkText(false);
oidcProvider.getConfig().setTokenUrl(new URL("http://localhost:8080/uaa/idp_login"));
oidcProvider.getConfig().setTokenKeyUrl(new URL("http://localhost:8080/uaa/idp_login"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void testNotAutoLoginAfterResetPassword() {
webDriver.findElement(By.name("password")).sendKeys("new_password");
webDriver.findElement(By.xpath("//input[@value='Sign in']")).click();

assertThat(webDriver.getCurrentUrl(), startsWith("http://example.redirect.com/?code="));
assertThat(webDriver.getCurrentUrl(), startsWith("https://example.redirect.com/?code="));
}

@Test
Expand Down

0 comments on commit 66940b0

Please sign in to comment.