[java-idp-integration-tests] branch main updated: Fix modifying openid-configuration.json

Tom Zeller tzeller at dragonacea.biz
Thu Oct 31 17:55:37 UTC 2024


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

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

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

The following commit(s) were added to refs/heads/main by this push:
     new 2494d04  Fix modifying openid-configuration.json
2494d04 is described below

commit 2494d048c141818e1035a0ab45df814f384edad9
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Oct 31 12:54:17 2024 -0500

    Fix modifying openid-configuration.json
    
    Replace end of file rather than specific text to support OP 4.2.0 as
    well as earlier versions.
---
 .../idp/integration/tests/oidc/OPConformanceTest.java         | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/test/java/net/shibboleth/idp/integration/tests/oidc/OPConformanceTest.java b/src/test/java/net/shibboleth/idp/integration/tests/oidc/OPConformanceTest.java
index 735c3bf..6352847 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/oidc/OPConformanceTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/oidc/OPConformanceTest.java
@@ -122,15 +122,14 @@ public class OPConformanceTest extends BaseOPTest {
      *             if an error occurs
      */
     protected void addACRValuesToOpenidConfiguration() throws IOException {
-        
+
         final Path pathToOpenIDConfiguration = Paths.get("static", "openid-configuration.json");
 
-        final String oldText = "\"frontchannel_logout_session_supported\":true\n";
-        
-        final String newText = "\"frontchannel_logout_session_supported\":true,\n" + 
-                               "   \"acr_values_supported\":[\"password\"]\n";
+        final String endJson = "\\n}\\s*\\z";
+
+        final String newText = "   \"acr_values_supported\":[\"password\"]\n";
 
-        replaceIdPHomeFile(pathToOpenIDConfiguration, oldText, newText);
+        replaceIdPHomeFile(pathToOpenIDConfiguration, endJson, ",\n" + newText + "}");
     }
 
     /**

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


More information about the commits mailing list