This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 59a57d6bc9839fe8161e4bb3b58e0d7d7036a8b6
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 939c90551b..8d12f1d54c 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 136551a2b6..49aa0e0aa9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1584,7 +1584,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>
@@ -1594,7 +1594,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>

Reply via email to