diff options
author | 2021-04-20 11:59:06 -0400 | |
---|---|---|
committer | 2021-04-20 11:59:06 -0400 | |
commit | a90eecf70419ec4acba6f5a8425300eef7f45290 (patch) | |
tree | c9e2a68e7a84f45c0130737c0c6b8430fd2e755f /ms/sliboot/src/test | |
parent | 49dd1b8c88cba58ef87a048688a98508d60fcca8 (diff) |
Use CadiFilter instead of shiro
Microservices should use CadiFilter rather than shiro to integrate
with AAF
Change-Id: I95b9a844b7ac868f864134de7345013001357352
Issue-ID: SDNC-1523
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/sliboot/src/test')
-rw-r--r-- | ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java b/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java deleted file mode 100644 index 570953e4..00000000 --- a/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.onap.ccsdk.apps.ms.sliboot; - -import org.apache.shiro.realm.Realm; -import org.apache.shiro.realm.text.PropertiesRealm; -import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition; -import org.junit.Before; -import org.junit.Test; - -import java.util.Map; - -import static org.junit.Assert.*; - -public class AppTest { - - SlibootApp app; - - @Before - public void setUp() throws Exception { - app = new SlibootApp(); - System.setProperty("serviceLogicProperties", "src/test/resources/svclogic.properties"); - } - - @Test - public void realm() { - Realm realm = app.realm(); - assertTrue(realm instanceof PropertiesRealm); - - - } - - @Test - public void shiroFilterChainDefinition() { - ShiroFilterChainDefinition chainDefinition = app.shiroFilterChainDefinition(); - Map<String, String> chainMap = chainDefinition.getFilterChainMap(); - assertEquals("anon", chainMap.get("/**")); - - - } -}
\ No newline at end of file |