summaryrefslogtreecommitdiffstats
path: root/framework/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/test')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/ad/OnapServiceTest.java3
-rw-r--r--framework/src/test/resources/onap-test-schema.yaml2
-rw-r--r--framework/src/test/resources/sample-test-invalid-exclude-noauth.yaml2
-rw-r--r--framework/src/test/resources/sample-test-invalid-include-noauth.yaml2
-rw-r--r--framework/src/test/resources/sample-test-schema.yaml2
5 files changed, 5 insertions, 6 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());
diff --git a/framework/src/test/resources/onap-test-schema.yaml b/framework/src/test/resources/onap-test-schema.yaml
index df260502..aa656064 100644
--- a/framework/src/test/resources/onap-test-schema.yaml
+++ b/framework/src/test/resources/onap-test-schema.yaml
@@ -4,7 +4,7 @@ description: Onap sample command to test the command features
service:
name: sample
version: v1
- no-auth: true
+ auth: none
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-invalid-exclude-noauth.yaml b/framework/src/test/resources/sample-test-invalid-exclude-noauth.yaml
index bad12e60..1de471c8 100644
--- a/framework/src/test/resources/sample-test-invalid-exclude-noauth.yaml
+++ b/framework/src/test/resources/sample-test-invalid-exclude-noauth.yaml
@@ -1,6 +1,4 @@
onap_cmd_schema_version: 1.0
-service:
- no-auth: false
default_parameters:
exclude:
- onap-username \ No newline at end of file
diff --git a/framework/src/test/resources/sample-test-invalid-include-noauth.yaml b/framework/src/test/resources/sample-test-invalid-include-noauth.yaml
index c4384ca0..b80ac57f 100644
--- a/framework/src/test/resources/sample-test-invalid-include-noauth.yaml
+++ b/framework/src/test/resources/sample-test-invalid-include-noauth.yaml
@@ -1,6 +1,6 @@
onap_cmd_schema_version: 1.0
service:
- no-auth: true
+ auth: none
default_parameters:
include:
- onap-username \ No newline at end of file
diff --git a/framework/src/test/resources/sample-test-schema.yaml b/framework/src/test/resources/sample-test-schema.yaml
index a480147d..dbb5cbed 100644
--- a/framework/src/test/resources/sample-test-schema.yaml
+++ b/framework/src/test/resources/sample-test-schema.yaml
@@ -4,7 +4,7 @@ description: Onap sample command to test the command features
service:
name: sample
version: v1
- no-auth: true
+ auth: none
parameters:
- name: bool-param
type: bool