[java-idp-integration-tests] 01/02: Update logging of SAML messages.
Tom Zeller
tzeller at dragonacea.biz
Mon Oct 17 15:55:57 EDT 2016
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=9f02a769aae81dd59590d9b7f6e4abecbb2d0bfe
commit 9f02a769aae81dd59590d9b7f6e4abecbb2d0bfe
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Oct 17 14:52:13 2016 -0500
Update logging of SAML messages.
---
.../net/shibboleth/idp/test/BaseIntegrationTest.java | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index dbeff6d..5186d81 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -1053,15 +1053,18 @@ public abstract class BaseIntegrationTest
/**
* Log unencrypted SAML.
+ *
+ * @throws IOException
*/
- public void logUnencryptedSAML() {
+ public void logUnencryptedSAML() throws IOException {
final Path pathToLogbackXML = Paths.get("conf", "logback.xml");
- final String toUncomment = "<logger name=\"org.opensaml.saml.saml2.encryption.Encrypter\" level=\"DEBUG\" />";
- try {
- uncommentFile(pathToIdPHome.resolve(pathToLogbackXML), toUncomment);
- } catch (IOException e) {
- Assert.fail("Unable to log unencrypted SAML", e);
- }
+ final String oldMessagesText = "<variable name=\"idp.loglevel.messages\" value=\"INFO\" />";
+ final String newMessagesText = "<variable name=\"idp.loglevel.messages\" value=\"DEBUG\" />";
+ replaceIdPHomeFile(pathToLogbackXML, oldMessagesText, newMessagesText);
+
+ final String oldEncryptionText = "<variable name=\"idp.loglevel.encryption\" value=\"INFO\" />";
+ final String newEncryptionText = "<variable name=\"idp.loglevel.encryption\" value=\"DEBUG\" />";
+ replaceIdPHomeFile(pathToLogbackXML, oldEncryptionText, newEncryptionText);
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list