From e45e668a4f6bdeca4ddc4071c4f37822792d65ed Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 31 Jul 2017 00:45:06 +0530 Subject: Fix invalid help parameters Introduce new section "default_parameter" to add "include" and "exclude" parameter from defalut parameter list. Following is a example for the parameter section to use it: xyz.yaml: ... default_parameters: include: - parameter1 - parameter2 ... exclude: - parameter3 - parameter4 ... parameters: - parameter5 .... .... Issue-Id: CLI-20 Change-Id: I99fd91a130739f2007fdd85a23c76d4e1b30c542 Signed-off-by: subhash kumar singh --- .../resources/sample-test-invalid-default-parameter.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 framework/src/test/resources/sample-test-invalid-default-parameter.yaml (limited to 'framework/src/test/resources/sample-test-invalid-default-parameter.yaml') diff --git a/framework/src/test/resources/sample-test-invalid-default-parameter.yaml b/framework/src/test/resources/sample-test-invalid-default-parameter.yaml new file mode 100644 index 00000000..ae20145a --- /dev/null +++ b/framework/src/test/resources/sample-test-invalid-default-parameter.yaml @@ -0,0 +1,12 @@ +onap_cmd_schema_version: 1.0 +default_parameters: + exclude: + - invalid-param +parameters: + - name: invalid-param + type: bool + description: Onap boolean param, by default its always false. + short_option: b + long_option: bool + is_optional: true + default_value: false \ No newline at end of file -- cgit 1.2.3-korg