diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-08-16 15:58:16 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-08-16 16:07:43 +0530 |
commit | 6e5f1c2fed28eecd2a749bcd6dd2748082de1b42 (patch) | |
tree | 72cfc0226fe382c71932480cb5bb7c4146020e20 /framework/src/test/java/org | |
parent | 5a0dadc2c7439719142db3c7e2200d12face4b45 (diff) |
Add auth mode in service
ONAP is using basic auth already for some services
and AAF is being used as well. so there are more than
one auth type being used across. to support it,
new property call auth is introduced in service section.
also no-auth is now migrated as auth: none
CLI-29
Change-Id: I151a4669151f67884f9875f47c8df396836ae25b
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test/java/org')
-rw-r--r-- | framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java b/framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java index f0ec8c63..9ceba67d 100644 --- a/framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java +++ b/framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java @@ -19,6 +19,7 @@ package org.onap.cli.fw.ad; import static org.junit.Assert.assertTrue; import org.junit.Test; +import org.onap.cli.fw.conf.Constants; public class OnapServiceTest { @@ -28,7 +29,7 @@ public class OnapServiceTest { ser.setName("name"); ser.setVersion("1.0"); ser.setBasePath("basePath"); - ser.setNoAuth(true); + ser.setAuthType(Constants.AUTH_NONE); assertTrue(ser.getName().equals("name") && ser.getVersion().equals("1.0") && ser.getBasePath().equals("basePath") && ser.isNoAuth()); |