From 625cc87fc112891fc5945d2f2f0669f3bf75f089 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Thu, 29 Oct 2020 14:03:41 +0100 Subject: Add rules parameter for selected rules validation This commit will add extra, optional parameter for csar-validation command. New parameter is named "rules", and it allows to specify rules that will be validated. Using this parameter allows to use refrepo/marketplace to validate selected rules and at the same time guarantee that response format will be exactly the same as for validating all rules, this is in contrast for validating one rule using csar-validate-, that returns json significantly different then csar-validate. Signed-off-by: Bartosz Gardziejewski Change-Id: I6eb228d360354c0e249032d013e6a23d1f2713ff Issue-ID: VNFSDK-700 --- .../src/main/resources/open-cli-schema/vtp-validate-csar.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'csarvalidation/src/main/resources/open-cli-schema/vtp-validate-csar.yaml') diff --git a/csarvalidation/src/main/resources/open-cli-schema/vtp-validate-csar.yaml b/csarvalidation/src/main/resources/open-cli-schema/vtp-validate-csar.yaml index cefdb2b..b77dfa2 100644 --- a/csarvalidation/src/main/resources/open-cli-schema/vtp-validate-csar.yaml +++ b/csarvalidation/src/main/resources/open-cli-schema/vtp-validate-csar.yaml @@ -38,6 +38,13 @@ parameters: type: bool is_optional: true default_value: false + - name: rules + description: Rule that should be validate, if left empty all rules will be validated + long_option: rules + short_option: r + type: binary + is_optional: true + default_value: "" results: direction: portrait @@ -67,4 +74,4 @@ results: - name: results description: All test cases results scope: short - type: json \ No newline at end of file + type: json -- cgit 1.2.3-korg