From 66940b07fdb99f20b320e0d972d995a0ec6d4255 Mon Sep 17 00:00:00 2001 From: d036670 Date: Tue, 27 Aug 2024 13:26:49 +0200 Subject: [PATCH] Fix error in integration tests --- .../identity/uaa/integration/feature/CreateAccountIT.java | 2 +- .../identity/uaa/integration/feature/ResetPasswordIT.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/CreateAccountIT.java b/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/CreateAccountIT.java index 4e63c95dfd7..cc2e8bd63a9 100644 --- a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/CreateAccountIT.java +++ b/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/CreateAccountIT.java @@ -183,7 +183,7 @@ private String startCreateUserFlow(String secret) { public void testEmailDomainRegisteredWithIDPDoesNotAllowAccountCreation() throws Exception { String adminToken = IntegrationTestUtils.getClientCredentialsToken(baseUrl, "admin", "adminsecret"); IdentityProvider 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")); diff --git a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/ResetPasswordIT.java b/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/ResetPasswordIT.java index 12fbd547d5a..39e14bdf627 100644 --- a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/ResetPasswordIT.java +++ b/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/ResetPasswordIT.java @@ -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