From a52f00e9d0af1181d3e9c87508789fb4ced022f5 Mon Sep 17 00:00:00 2001 From: Itohan Date: Mon, 30 Sep 2019 23:39:44 +0000 Subject: Minor bug fixes in CLI - Added USER_ID header for SDC - Changed multicloud url - Added samples for commands - Fixed Bug in service-create command Signed-off-by: Itohan Ukponmwan Issue-ID: CLI-229 Change-Id: I9ec94d6dd390d2b5bf059c2f8a82c67b65fbeb34 --- .../multicloud-register-cloud-schema-moco.json | 15 +++++++++++++++ .../multicloud-register-cloud-schema-sample.yaml | 9 +++++++++ .../open-cli-schema/multicloud-register-cloud-schema.yaml | 3 ++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json create mode 100644 products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml (limited to 'products/onap-elalto/features/multicloud') diff --git a/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json new file mode 100644 index 00000000..0b048b98 --- /dev/null +++ b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-04/registry", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 202, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml new file mode 100644 index 00000000..0e4f7032 --- /dev/null +++ b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: multicloud-register-cloud +version: onap-elalto +samples: + sample1: + name: multicloud-register-cloud + input: -y CloudOwner -x ONAP-POD-01-Rail-04 -m http://10.12.5.110:30280 + moco: multicloud-register-cloud-schema-moco.json + output: \ No newline at end of file diff --git a/products/onap-elalto/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml index eba73df5..f59ac30a 100644 --- a/products/onap-elalto/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml +++ b/products/onap-elalto/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml @@ -35,12 +35,13 @@ parameters: long_option: cloud-owner is_optional: false + http: service: auth: none mode: direct request: - uri: /api/multicloud/v0/${cloud-owner}_${cloud-region}/registry + uri: /api/multicloud-titaniumcloud/v1/${cloud-owner}/${cloud-region}/registry method: POST success_codes: - 202 -- cgit 1.2.3-korg