aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/test/resources')
-rw-r--r--framework/src/test/resources/onap-test-schema.yaml12
-rw-r--r--framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml11
-rw-r--r--framework/src/test/resources/sample-cmd-test-help.txt11
-rw-r--r--framework/src/test/resources/sample-test-info.yaml6
-rw-r--r--framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml11
-rw-r--r--framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml10
-rw-r--r--framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml9
-rw-r--r--framework/src/test/resources/sample-test-invalid-schema.yaml9
-rw-r--r--framework/src/test/resources/sample-test-schema-auth-required.yaml9
-rw-r--r--framework/src/test/resources/sample-test-schema-http.yaml9
-rw-r--r--framework/src/test/resources/sample-test-schema-no-auth-no-catalog.yaml18
-rw-r--r--framework/src/test/resources/sample-test-schema-no-auth-yes-catalog.yaml18
-rw-r--r--framework/src/test/resources/sample-test-schema-swagger.yaml9
-rw-r--r--framework/src/test/resources/sample-test-schema-yes-auth-no-catalog.yaml18
-rw-r--r--framework/src/test/resources/sample-test-schema-yes-auth-yes-catalog.yaml18
-rw-r--r--framework/src/test/resources/sample-test-schema.yaml10
-rw-r--r--framework/src/test/resources/schema-validate-basic.yaml7
-rw-r--r--framework/src/test/resources/schema-validate-http.yaml13
-rw-r--r--framework/src/test/resources/schema-validate-invalid.yaml8
-rw-r--r--framework/src/test/resources/schema-validate-invalidschematype.yaml6
-rw-r--r--framework/src/test/resources/schema-validate-pass.yaml9
21 files changed, 139 insertions, 92 deletions
diff --git a/framework/src/test/resources/onap-test-schema.yaml b/framework/src/test/resources/onap-test-schema.yaml
index 814a138c..9f1bf0e2 100644
--- a/framework/src/test/resources/onap-test-schema.yaml
+++ b/framework/src/test/resources/onap-test-schema.yaml
@@ -1,11 +1,13 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-verion: cli-1.0
-service:
- name: sample
- version: v1
- auth: none
+
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml b/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
index 21f863b6..b96a498b 100644
--- a/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
+++ b/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
@@ -1,10 +1,13 @@
open_cli_schema_version: 1.0
name: sample-test1
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-cmd-test-help.txt b/framework/src/test/resources/sample-cmd-test-help.txt
index 63b5decc..2523ce9b 100644
--- a/framework/src/test/resources/sample-cmd-test-help.txt
+++ b/framework/src/test/resources/sample-cmd-test-help.txt
@@ -5,7 +5,6 @@ Onap sample command to test the command features
Onap service: sample v1
Options:
-[-u | --host-username] [-p | --host-password] [-m | --host-url]
[-h | --help] [-v | --version] [-d | --debug]
[-f | --format] [-s | --long] [-t | --no-title]
[-a | --no-auth] [-b | --bool] [-x | --secure]
@@ -13,14 +12,6 @@ Options:
[-l | --long-opt] [-r | --url] [-z | --env]
<positional-args>
where,
--u | --host-username Onap user name. It is of type STRING. By
- default, it is read from environment variable
- HOST_USERNAME.
--p | --host-password Onap user password. It is of type STRING. By
- default, it is read from environment variable
- HOST_PASSWORD. Secured.
--m | --host-url Onap MSB url. It is of type URL. By default, it
- is read from environment variable OPEN_MSB_URL.
-h | --help Onap command help message. It is of type STRING.
By default, it is false.
-v | --version Onap command service version. It is of type
@@ -35,8 +26,6 @@ where,
false.
-t | --no-title whether to print title or not. It is of type BOOL.
By default, it is false.
--a | --no-auth whether to authenticate user or not. It is of type
- BOOL. By default, it is false.
-b | --bool Onap boolean param, by default its always false.
It is of type BOOL. It is optional. By default, it
is false.
diff --git a/framework/src/test/resources/sample-test-info.yaml b/framework/src/test/resources/sample-test-info.yaml
index 35e59f8e..58e7268d 100644
--- a/framework/src/test/resources/sample-test-info.yaml
+++ b/framework/src/test/resources/sample-test-info.yaml
@@ -1,9 +1,9 @@
open_cli_schema_version: 1.0
name: sample-test-info
description: Onap sample command to test the command features
-version: cli-1.0
+
info:
- product: cli-1.0
- service: cli
+ product: open-cli
+ service: test
type: cmd
author: Kanagaraj Manickam mkr1481@gmail.com
diff --git a/framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml b/framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml
index 04ec6f2d..bf2ce3f3 100644
--- a/framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml
+++ b/framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml
@@ -1,10 +1,13 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml b/framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml
index c94a2387..239c5360 100644
--- a/framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml
+++ b/framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml
@@ -1,10 +1,12 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml b/framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml
index d97e585a..4c6b27e4 100644
--- a/framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml
+++ b/framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml
@@ -1,10 +1,11 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-invalid-schema.yaml b/framework/src/test/resources/sample-test-invalid-schema.yaml
index fbe87081..05da6ce7 100644
--- a/framework/src/test/resources/sample-test-invalid-schema.yaml
+++ b/framework/src/test/resources/sample-test-invalid-schema.yaml
@@ -1,10 +1,11 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-schema-auth-required.yaml b/framework/src/test/resources/sample-test-schema-auth-required.yaml
index 6250e1f8..e7f5419a 100644
--- a/framework/src/test/resources/sample-test-schema-auth-required.yaml
+++ b/framework/src/test/resources/sample-test-schema-auth-required.yaml
@@ -1,10 +1,11 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/sample-test-schema-http.yaml b/framework/src/test/resources/sample-test-schema-http.yaml
index 9bfa2a53..60b45e80 100644
--- a/framework/src/test/resources/sample-test-schema-http.yaml
+++ b/framework/src/test/resources/sample-test-schema-http.yaml
@@ -1,10 +1,11 @@
open_cli_schema_version: 1.0
name: sample-create-http
description: Register microservice into Onap
-version: cli-1.0
-service:
- name: msb
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: service-name
description: Onap service name
diff --git a/framework/src/test/resources/sample-test-schema-no-auth-no-catalog.yaml b/framework/src/test/resources/sample-test-schema-no-auth-no-catalog.yaml
index 295a2b80..e3e48c59 100644
--- a/framework/src/test/resources/sample-test-schema-no-auth-no-catalog.yaml
+++ b/framework/src/test/resources/sample-test-schema-no-auth-no-catalog.yaml
@@ -4,15 +4,19 @@ name: sample-cmd-no-auth-no-catalog
description: sample
-version: sample-test-1.0
-
-service:
- name: sample
- version: v1
- auth: none
- mode: direct
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
http:
+
+ service:
+ name: sample
+ version: v1
+ auth: none
+ mode: direct
request:
uri: /test
method: GET
diff --git a/framework/src/test/resources/sample-test-schema-no-auth-yes-catalog.yaml b/framework/src/test/resources/sample-test-schema-no-auth-yes-catalog.yaml
index ebe03d86..0cdee7fe 100644
--- a/framework/src/test/resources/sample-test-schema-no-auth-yes-catalog.yaml
+++ b/framework/src/test/resources/sample-test-schema-no-auth-yes-catalog.yaml
@@ -4,15 +4,21 @@ name: sample-cmd-no-auth-no-catalog
description: sample
-version: sample-test-1.0
-service:
- name: sample
- version: v1
- auth: none
- mode: catalog
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
http:
+
+ service:
+ name: sample
+ version: v1
+ auth: none
+ mode: catalog
+
request:
uri: /test
method: GET
diff --git a/framework/src/test/resources/sample-test-schema-swagger.yaml b/framework/src/test/resources/sample-test-schema-swagger.yaml
index 7f486c2f..0c52c71c 100644
--- a/framework/src/test/resources/sample-test-schema-swagger.yaml
+++ b/framework/src/test/resources/sample-test-schema-swagger.yaml
@@ -1,10 +1,11 @@
open_cli_schema_version: 1.0
name: sample-test-swagger
description: Sample swagger command test.
-version: cli-1.0
-service:
- name: sample
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: user
type: string
diff --git a/framework/src/test/resources/sample-test-schema-yes-auth-no-catalog.yaml b/framework/src/test/resources/sample-test-schema-yes-auth-no-catalog.yaml
index fada6f52..0b418462 100644
--- a/framework/src/test/resources/sample-test-schema-yes-auth-no-catalog.yaml
+++ b/framework/src/test/resources/sample-test-schema-yes-auth-no-catalog.yaml
@@ -4,15 +4,19 @@ name: sample-cmd-yes-auth-no-catalog
description: sample
-version: sample-test-1.0
-
-service:
- name: sample
- version: v1
- auth: basic
- mode: direct
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
http:
+
+ service:
+ name: sample
+ version: v1
+ auth: basic
+ mode: direct
request:
uri: /test
method: GET
diff --git a/framework/src/test/resources/sample-test-schema-yes-auth-yes-catalog.yaml b/framework/src/test/resources/sample-test-schema-yes-auth-yes-catalog.yaml
index e8b814a4..ca22e1d1 100644
--- a/framework/src/test/resources/sample-test-schema-yes-auth-yes-catalog.yaml
+++ b/framework/src/test/resources/sample-test-schema-yes-auth-yes-catalog.yaml
@@ -4,15 +4,21 @@ name: sample-cmd-no-auth-no-catalog
description: sample
-version: sample-test-1.0
-service:
- name: sample
- version: v1
- auth: basic
- mode: catalog
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
http:
+
+ service:
+ name: sample
+ version: v1
+ auth: basic
+ mode: catalog
+
request:
uri: /test
method: GET
diff --git a/framework/src/test/resources/sample-test-schema.yaml b/framework/src/test/resources/sample-test-schema.yaml
index 37623dde..e3b415b1 100644
--- a/framework/src/test/resources/sample-test-schema.yaml
+++ b/framework/src/test/resources/sample-test-schema.yaml
@@ -1,11 +1,11 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: cli-1.0
-service:
- name: sample
- version: v1
- auth: none
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: bool-param
type: bool
diff --git a/framework/src/test/resources/schema-validate-basic.yaml b/framework/src/test/resources/schema-validate-basic.yaml
index 7cab57b5..a4219049 100644
--- a/framework/src/test/resources/schema-validate-basic.yaml
+++ b/framework/src/test/resources/schema-validate-basic.yaml
@@ -1,8 +1,11 @@
open_cli_schema_version: 1.0
description: Register microservice into Onap
name: schema-validate
-service:
- name: msb
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: service-name1
description: Onap service name
diff --git a/framework/src/test/resources/schema-validate-http.yaml b/framework/src/test/resources/schema-validate-http.yaml
index 2f56ec44..544de82b 100644
--- a/framework/src/test/resources/schema-validate-http.yaml
+++ b/framework/src/test/resources/schema-validate-http.yaml
@@ -1,8 +1,12 @@
open_cli_schema_version: 1.0
description: Register microservice into Onap
name: schema-validate
-service:
- name: msb
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: service-name1
description: Onap service name
@@ -67,6 +71,11 @@ results:
scope: long
type: url
http:
+ service:
+ name: msb
+ version: v1
+ type: direct
+ auth: none
request:
uri: /services
method: POST1
diff --git a/framework/src/test/resources/schema-validate-invalid.yaml b/framework/src/test/resources/schema-validate-invalid.yaml
index 6a1a2a71..11aaaca0 100644
--- a/framework/src/test/resources/schema-validate-invalid.yaml
+++ b/framework/src/test/resources/schema-validate-invalid.yaml
@@ -1,9 +1,11 @@
open_cli_schema_version: 1.0
name: sdnc-create
description: Register SDNC into Onap
-service:
- name: extsys
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
parameters:
- name: name
description: Onap SDNC name
diff --git a/framework/src/test/resources/schema-validate-invalidschematype.yaml b/framework/src/test/resources/schema-validate-invalidschematype.yaml
index 17f4abe3..25e1cb5e 100644
--- a/framework/src/test/resources/schema-validate-invalidschematype.yaml
+++ b/framework/src/test/resources/schema-validate-invalidschematype.yaml
@@ -1,5 +1,11 @@
open_cli_schema_version: 1.0
description: Register microservice into Onap
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
name: schema-validate
parameters:
- name: service-name1
diff --git a/framework/src/test/resources/schema-validate-pass.yaml b/framework/src/test/resources/schema-validate-pass.yaml
index f5a258c9..73795206 100644
--- a/framework/src/test/resources/schema-validate-pass.yaml
+++ b/framework/src/test/resources/schema-validate-pass.yaml
@@ -1,9 +1,12 @@
open_cli_schema_version: 1.0
name: sdnc-create
description: Register SDNC into Onap
-service:
- name: extsys
- version: v1
+info:
+ product: open-cli
+ service: test
+ type: cmd
+ author: Kanagaraj Manickam mkr1481@gmail.com
+
parameters:
- name: name
description: Onap SDNC name