This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push:
new dd552a6d9c Fixing OIDCC4UIITCase and SAML2SP4UIITCase with LDAP auth
dd552a6d9c is described below
commit dd552a6d9c6acad3819de65cd2bdfc747221fccb
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Nov 27 11:57:17 2023 +0100
Fixing OIDCC4UIITCase and SAML2SP4UIITCase with LDAP auth
---
.../test/java/org/apache/syncope/fit/AbstractITCase.java | 13 ++++++++++++-
pom.xml | 4 ++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/AbstractITCase.java
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/AbstractITCase.java
index 188d516894..f5b4fdf08b 100644
--- a/fit/wa-reference/src/test/java/org/apache/syncope/fit/AbstractITCase.java
+++ b/fit/wa-reference/src/test/java/org/apache/syncope/fit/AbstractITCase.java
@@ -66,6 +66,10 @@ public abstract class AbstractITCase {
protected static final String ADMIN_PWD = "password";
+ private static final String ANONYMOUS_USER = "anonymous";
+
+ private static final String ANONYMOUS_KEY = "anonymousKey";
+
protected static final String CORE_ADDRESS =
"https://localhost:9443/syncope/rest";
protected static final String CONSOLE_ADDRESS =
"https://localhost:9443/syncope-console/";
@@ -129,12 +133,19 @@ public abstract class AbstractITCase {
throw new IllegalStateException();
}
metadata = WebClient.create(
- WA_ADDRESS + "/actuator/registeredServices",
"anonymous", "anonymousKey", null).
+ WA_ADDRESS + "/actuator/registeredServices",
ANONYMOUS_USER, ANONYMOUS_KEY, null).
get().readEntity(String.class);
if (metadata.contains("localhost:8080/syncope-wa")) {
WA_CONFIG_SERVICE.pushToWA(WAConfigService.PushSubject.conf, List.of());
throw new IllegalStateException();
}
+ metadata = WebClient.create(
+ WA_ADDRESS + "/actuator/authenticationHandlers",
ANONYMOUS_USER, ANONYMOUS_KEY, null).
+ get().readEntity(String.class);
+ if (!metadata.contains("DefaultLDAPAuthModule")) {
+
WA_CONFIG_SERVICE.pushToWA(WAConfigService.PushSubject.conf, List.of());
+ throw new IllegalStateException();
+ }
samlIdPEntityService.get(SAML2IdPEntityService.DEFAULT_OWNER);
refreshed = true;
diff --git a/pom.xml b/pom.xml
index 23739e858b..db1351edb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1689,7 +1689,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>3.1.2</version>
+ <version>3.2.2</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<encoding>utf-8</encoding>
@@ -1699,7 +1699,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
- <version>3.1.2</version>
+ <version>3.2.2</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<runOrder>alphabetical</runOrder>