diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-11-12 13:55:25 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-11-12 13:56:57 -0600 |
commit | 355cda9893529070169e4814158924d1d14094f8 (patch) | |
tree | 6c62624f26589df7786100adeb8d93ee8b70e101 /shiro/src/test/java/org | |
parent | e41dea2b2b8189511a636eb9d500fb328914ae14 (diff) |
Add instantiation Log Message
Issue-ID: AAF-618
Change-Id: I7b9630056ee3aa8246ef0a90ac01d53a6853f79d
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'shiro/src/test/java/org')
-rw-r--r-- | shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java index f915538..386f529 100644 --- a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java +++ b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java @@ -27,7 +27,9 @@ import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.Permission; import org.apache.shiro.subject.PrincipalCollection; +import org.junit.Test; import org.onap.aaf.cadi.aaf.AAFPermission; +import org.onap.aaf.cadi.config.Config; import org.onap.aaf.cadi.shiro.AAFRealm; import org.onap.aaf.cadi.shiro.AAFShiroPermission; @@ -45,7 +47,8 @@ public class JU_AAFRealm { TestAAFRealm ar = new TestAAFRealm(); //UsernamePasswordToken upt = new UsernamePasswordToken("demo@people.osaaf.org", "demo123456!"); - UsernamePasswordToken upt = new UsernamePasswordToken("AAI", "AAI"); + /// UsernamePasswordToken upt = new UsernamePasswordToken("AAI", "AAI"); + UsernamePasswordToken upt = new UsernamePasswordToken("admin","Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"); AuthenticationInfo ani = ar.authn(upt); @@ -62,7 +65,6 @@ public class JU_AAFRealm { } } */ - private void testAPerm(boolean expect, AuthorizationInfo azi, String ns, String type, String instance, String action) { AAFShiroPermission testPerm = new AAFShiroPermission(new AAFPermission(ns,type,instance,action,new ArrayList<String>())); |