[cpp-opensaml] branch master updated: CPPOST-117 - Fix for failing test
Scott Cantor
cantor.2 at osu.edu
Thu Apr 23 10:33:02 EDT 2020
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=689bb8af45fbf546095acb869b2efc75dea0d7c8
The following commit(s) were added to refs/heads/master by this push:
new 689bb8a CPPOST-117 - Fix for failing test
689bb8a is described below
commit 689bb8af45fbf546095acb869b2efc75dea0d7c8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 23 10:32:27 2020 -0400
CPPOST-117 - Fix for failing test
https://issues.shibboleth.net/jira/browse/CPPOST-117
---
samltest/saml2/profile/SAML2PolicyTest.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/samltest/saml2/profile/SAML2PolicyTest.h b/samltest/saml2/profile/SAML2PolicyTest.h
index b79c38b..ed895f7 100644
--- a/samltest/saml2/profile/SAML2PolicyTest.h
+++ b/samltest/saml2/profile/SAML2PolicyTest.h
@@ -33,9 +33,18 @@ class SAML2PolicyTest : public CxxTest::TestSuite {
public:
void setUp() {
+
+ auto_ptr_XMLCh lit1("PolicyRule");
+ auto_ptr_XMLCh lit2("blockUnsolicited");
+ DOMDocument* rule_config = XMLToolingConfig::getConfig().getParser().newDocument();
+ XercesJanitor<DOMDocument> janitor2(rule_config);
+ rule_config->appendChild(rule_config->createElementNS(nullptr,lit1.get()));
+ rule_config->getDocumentElement()->setAttributeNS(nullptr,lit2.get(),xmlconstants::XML_TRUE);
+
m_rules.push_back(SAMLConfig::getConfig().SecurityPolicyRuleManager.newPlugin(CONDITIONS_POLICY_RULE, nullptr, false));
- m_rules.push_back(SAMLConfig::getConfig().SecurityPolicyRuleManager.newPlugin(BEARER_POLICY_RULE, nullptr, false));
+ m_rules.push_back(SAMLConfig::getConfig().SecurityPolicyRuleManager.newPlugin(BEARER_POLICY_RULE, rule_config->getDocumentElement(), false));
m_policy.reset(new SecurityPolicy());
+ m_policy->setProfile(samlconstants::SAML20_PROFILE_SSO_BROWSER);
m_policy->getRules().assign(m_rules.begin(), m_rules.end());
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list