[java-idp-integration-tests] branch master updated: IDP-465 - Test for upgrade without condition trigger

Tom Zeller tzeller at dragonacea.biz
Mon Sep 24 10:39:38 EDT 2018


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=c6e207105a1988a95a1ef030bcb22bedaf52c21a

The following commit(s) were added to refs/heads/master by this push:
       new  c6e2071   IDP-465 - Test for upgrade without condition trigger
c6e2071 is described below

commit c6e207105a1988a95a1ef030bcb22bedaf52c21a
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Sep 24 09:38:31 2018 -0500

    IDP-465 - Test for upgrade without condition trigger
    
    https://issues.shibboleth.net/jira/browse/IDP-465
---
 .../saml2/SAML2AttributeQueryIntegrationTest.java  | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/src/test/java/net/shibboleth/idp/test/saml2/SAML2AttributeQueryIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/SAML2AttributeQueryIntegrationTest.java
index 7beedd9..8d49949 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/SAML2AttributeQueryIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/SAML2AttributeQueryIntegrationTest.java
@@ -784,4 +784,32 @@ public class SAML2AttributeQueryIntegrationTest extends AbstractSAML2Integration
 
         validateResponse();
     }
+
+    @Test(dataProvider = "sauceOnDemandBrowserDataProvider")
+    public void testConsentNoCondition(@Nullable final BrowserData browserData) throws Exception {
+
+        // remove condition from configuration, simulate an upgrade
+        final Path pathToConsentInterceptConfigXML = Paths.get("conf", "intercept", "consent-intercept-config.xml");
+        final String oldText =
+                "<bean id=\"shibboleth.consent.AttributeQuery.Condition\" parent=\"shibboleth.Conditions.FALSE\" />";
+        replaceIdPHomeFile(pathToConsentInterceptConfigXML, oldText, "");
+
+        enableConsentStorageService();
+
+        commonSetup(browserData);
+
+        setClientTLSCertificate(trustedSpCert);
+
+        setClientTLSPrivateKey(trustedSpKey);
+
+        setClientSigningCertificate(trustedSpCert);
+
+        setClientSigningPrivateKey(trustedSpKey);
+
+        // attribute query, should have attributes
+
+        submitAttributeQueryForm();
+
+        validateResponse();
+    }
 }

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


More information about the commits mailing list