[java-idp-integration-tests] 02/02: More logging of IdP version determined from distribution name

Tom Zeller tzeller at dragonacea.biz
Wed Jan 29 13:31:54 EST 2020


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-idp-integration-tests.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=8a6013ae84351139fb030a77bfaa98fee8b11930

commit 8a6013ae84351139fb030a77bfaa98fee8b11930
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed Jan 29 12:31:22 2020 -0600

    More logging of IdP version determined from distribution name
---
 .../java/net/shibboleth/idp/test/BaseIntegrationTest.java  | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index 770bce0..8df6742 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -380,7 +380,10 @@ public abstract class BaseIntegrationTest
         final Matcher matcher = pattern.matcher(pathToDistIdPHome.getFileName().toString());
         if (matcher.find()) {
             idpVersion = matcher.group(1);
-            log.debug("Testing IdP version '{}'", idpVersion);
+        }
+        log.debug("Testing IdP version '{}'", idpVersion);
+        if (idpVersion == null || idpVersion.isBlank()) {
+            log.error("Unable to determine version of IdP");
         }
 
         // Path to per-test idp.home
@@ -1018,6 +1021,15 @@ public abstract class BaseIntegrationTest
         final Charset charset = StandardCharsets.UTF_8;
 
         String content = new String(Files.readAllBytes(pathToFile), charset);
+        
+        
+        Matcher m = Pattern.compile(regex).matcher(content);
+        if (m.find()) {
+            System.out.println("Matcher found " + m.group(0));
+        } else {
+            System.out.println("Matcher did not find");
+        }
+        
         content = content.replaceAll(regex, replacement);
         Files.write(pathToFile, content.getBytes(charset));
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list