diff options
author | 2019-09-30 23:39:44 +0000 | |
---|---|---|
committer | 2019-10-01 17:42:35 +0000 | |
commit | a52f00e9d0af1181d3e9c87508789fb4ced022f5 (patch) | |
tree | dfb05a7683f0cecf86783d0623dbcf1b85ade70d /products/onap-elalto/features/multicloud | |
parent | 1d4b83754009114523cae90c759daffa9188eb3e (diff) |
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 <itohan.ukponmwan@intel.com>
Issue-ID: CLI-229
Change-Id: I9ec94d6dd390d2b5bf059c2f8a82c67b65fbeb34
Diffstat (limited to 'products/onap-elalto/features/multicloud')
3 files changed, 26 insertions, 1 deletions
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 |