aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-20 14:58:43 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:37:55 +0530
commit4b04eaa325a972ec38a7d317a60faff1664c8d39 (patch)
treea14ff8fe984a499e15661ced75895fa060cc49d1 /framework/src/main/resources
parent8782d93af5c1a65dfe1f07aabe6afa69d6f3e155 (diff)
Add default_value for output attributes
Special enteries are $s{uuit} and $s{env:EVN-VAR} Issue-Id: CLI-66 Change-Id: I6c16d8815f4934b7759adee3a41372303cef9a65 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/resources')
-rw-r--r--framework/src/main/resources/default_input_parameters.yaml8
-rw-r--r--framework/src/main/resources/onap.properties6
2 files changed, 7 insertions, 7 deletions
diff --git a/framework/src/main/resources/default_input_parameters.yaml b/framework/src/main/resources/default_input_parameters.yaml
index cc56ee2c..c65f4d8d 100644
--- a/framework/src/main/resources/default_input_parameters.yaml
+++ b/framework/src/main/resources/default_input_parameters.yaml
@@ -5,14 +5,14 @@ parameters:
description: Onap user name
short_option: u
long_option: onap-username
- default_value: ${ONAP_USERNAME}
+ default_value: $s{env:ONAP_USERNAME}
is_optional: false
- name: onap-password
type: string
description: Onap user password
short_option: p
long_option: onap-password
- default_value: ${ONAP_PASSWORD}
+ default_value: $s{env:ONAP_PASSWORD}
is_secured: true
is_optional: false
- name: host-url
@@ -21,7 +21,7 @@ parameters:
short_option: m
long_option: host-url
is_optional: false
- default_value: ${HOST_URL}
+ default_value: $s{env:HOST_URL}
- name: help
type: string
description: print help message
@@ -57,7 +57,7 @@ parameters:
description: whether to print title or not
short_option: t
long_option: no-title
- default_value: true
+ default_value: false
- name: no-auth
type: bool
description: whether to authenticate user or not
diff --git a/framework/src/main/resources/onap.properties b/framework/src/main/resources/onap.properties
index 786f2d29..a963b386 100644
--- a/framework/src/main/resources/onap.properties
+++ b/framework/src/main/resources/onap.properties
@@ -38,11 +38,11 @@ cli.schema.service_params_mandatory_list=name,version
cli.schema.input_params_list=name,description,type,short_option,long_option, is_optional,default_value,is_secured
cli.schema.input_params_mandatory_list=name,description,type
-cli.schema.result_params_list=name,description,scope,type,is_secured
-cli.schema.result_params_mandatory_list=name, description, type
+cli.schema.result_params_list=name,description,scope,type,is_secured, default_value
+cli.schema.result_params_mandatory_list=name, description, type, scope
cli.schema.http_sections=request,success_codes,result_map,sample_response
-cli.schema.http_mandatory_sections=equest, success_codes
+cli.schema.http_mandatory_sections=request, success_codes
cli.schema.http_request_params=uri,method,body,headers,queries,multipart_entity_name
cli.schema.http_request_mandatory_params=uri,method