[java-shib-attribute] branch main updated: And more test fixes.
Scott Cantor
cantor.2 at osu.edu
Wed Sep 4 20:38:08 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-attribute.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-attribute.git;a=commit;h=e13d90fb37969190e9fa62f65ea024a3ad337771
The following commit(s) were added to refs/heads/main by this push:
new e13d90fb3 And more test fixes.
e13d90fb3 is described below
commit e13d90fb37969190e9fa62f65ea024a3ad337771
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 4 16:38:05 2024 -0400
And more test fixes.
---
.../resolver/spring/ad/impl/SimpleAttributeParserTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/impl/SimpleAttributeParserTest.java b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/impl/SimpleAttributeParserTest.java
index 47d721401..f00592fec 100644
--- a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/impl/SimpleAttributeParserTest.java
+++ b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/impl/SimpleAttributeParserTest.java
@@ -34,6 +34,7 @@ import net.shibboleth.idp.attribute.resolver.ResolverAttributeDefinitionDependen
import net.shibboleth.idp.attribute.resolver.ResolverDataConnectorDependency;
import net.shibboleth.idp.attribute.resolver.ad.impl.SimpleAttributeDefinition;
import net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext;
+import net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext;
import net.shibboleth.idp.attribute.resolver.logic.ResolutionLabelPredicate;
import net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser;
import net.shibboleth.idp.attribute.resolver.spring.testing.BaseAttributeDefinitionParserTest;
@@ -127,6 +128,8 @@ public class SimpleAttributeParserTest extends BaseAttributeDefinitionParserTest
assert pre != null;
final ProfileRequestContext prc = new ProfileRequestContext();
final AttributeResolutionContext resContext = prc.ensureSubcontext(AttributeResolutionContext.class);
+ resContext.ensureSubcontext(AttributeResolverWorkContext.class);
+
resContext.setResolutionLabel("p1");
assertTrue(pre.test(prc));
resContext.setResolutionLabel("p2 p3");
@@ -155,6 +158,8 @@ public class SimpleAttributeParserTest extends BaseAttributeDefinitionParserTest
assert pre != null;
final ProfileRequestContext prc = new ProfileRequestContext();
final AttributeResolutionContext resContext = prc.ensureSubcontext(AttributeResolutionContext.class);
+ resContext.ensureSubcontext(AttributeResolverWorkContext.class);
+
resContext.setResolutionLabel("p1");
assertFalse(pre.test(prc));
resContext.setResolutionLabel("p2 p3");
@@ -183,6 +188,7 @@ public class SimpleAttributeParserTest extends BaseAttributeDefinitionParserTest
assert pre != null;
final ProfileRequestContext prc = new ProfileRequestContext();
final AttributeResolutionContext resContext = prc.ensureSubcontext(AttributeResolutionContext.class);
+ resContext.ensureSubcontext(AttributeResolverWorkContext.class);
resContext.setResolutionLabel("p1");
assertTrue(pre.test(prc));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list