[java-identity-provider] 01/02: IDP-1414 Further deprecation
Rod Widdowson
rdw at steadingsoftware.com
Sat Apr 6 05:19:29 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=cdc2325fcaaa68043c73e6d336ec09c705b18bec
commit cdc2325fcaaa68043c73e6d336ec09c705b18bec
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Apr 6 10:08:46 2019 +0100
IDP-1414 Further deprecation
Add explicit scripted tests on resolutionContext prior to tightening
up depecation warning (and backporting to V3.4.4)
---
.../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 7ac00dc..03ccf46 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
@@ -498,9 +498,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