[java-identity-provider] 02/03: IDP-1414 Further deprecation
Rod Widdowson
rdw at steadingsoftware.com
Sat Apr 6 05:37:05 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch maint-3.4
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=1655eae2559c9a632df5ce6f4be81ba9fe82e6c7
commit 1655eae2559c9a632df5ce6f4be81ba9fe82e6c7
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Apr 6 10:08:46 2019 +0100
IDP-1414 Further deprecation
https://issues.shibboleth.net/jira/browse/IDP-1414
Add explicit scripted tests on resolutionContext
---
.../idp/attribute/resolver/ad/impl/ScriptedAttributeTest.java | 5 ++++-
.../shibboleth/idp/attribute/resolver/impl/ad/jdk8/context.script | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/idp-attribute-resolver-impl/src/test/java/net/shibboleth/idp/attribute/resolver/ad/impl/ScriptedAttributeTest.java b/idp-attribute-resolver-impl/src/test/java/net/shibboleth/idp/attribute/resolver/ad/impl/ScriptedAttributeTest.java
index 03ef4e9..1e081a2 100644
--- a/idp-attribute-resolver-impl/src/test/java/net/shibboleth/idp/attribute/resolver/ad/impl/ScriptedAttributeTest.java
+++ b/idp-attribute-resolver-impl/src/test/java/net/shibboleth/idp/attribute/resolver/ad/impl/ScriptedAttributeTest.java
@@ -533,9 +533,12 @@ public class ScriptedAttributeTest extends XMLObjectBaseTestCase {
final IdPAttribute attribute = context.getResolvedIdPAttributes().get(TEST_ATTRIBUTE_NAME);
final Collection<IdPAttributeValue<?>> values = attribute.getValues();
- Assert.assertEquals(values.size(), 2, "looking for context");
+ Assert.assertEquals(values.size(), 5, "looking for context");
Assert.assertTrue(values.contains(new StringAttributeValue("AttributeResolutionContext")));
Assert.assertTrue(values.contains(new StringAttributeValue("ProfileRequestContext")));
+ Assert.assertTrue(values.contains(new StringAttributeValue(TestSources.PRINCIPAL_ID)));
+ Assert.assertTrue(values.contains(new StringAttributeValue(TestSources.IDP_ENTITY_ID)));
+ Assert.assertTrue(values.contains(new StringAttributeValue(TestSources.SP_ENTITY_ID)));
}
protected IdPAttribute runExample(final String exampleScript, final String exampleData, final String attributeName)
diff --git a/idp-attribute-resolver-impl/src/test/resources/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/context.script b/idp-attribute-resolver-impl/src/test/resources/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/context.script
index 04d440e..007bc32 100644
--- a/idp-attribute-resolver-impl/src/test/resources/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/context.script
+++ b/idp-attribute-resolver-impl/src/test/resources/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/context.script
@@ -2,3 +2,6 @@ child = profileContext.getSubcontext("net.shibboleth.idp.attribute.resolver.cont
Scripted.addValue(child.getClass().getSimpleName());
Scripted.addValue(profileContext.getClass().getSimpleName());
+Scripted.addValue(resolutionContext.getPrincipal());
+Scripted.addValue(resolutionContext.getAttributeIssuerID());
+Scripted.addValue(resolutionContext.getAttributeRecipientID());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list