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/sdc/src/main/resources/open-cli-schema/vlm | |
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/sdc/src/main/resources/open-cli-schema/vlm')
8 files changed, 18 insertions, 2 deletions
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml index 5276e521..a0cf3560 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml @@ -63,6 +63,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements method: POST + headers: + USER_ID: ${host-username} body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}' success_codes: - 200 diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml index 9b1ef037..888316f7 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml @@ -55,9 +55,11 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models method: POST + headers: + USER_ID: ${host-username} body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}' success_codes: - 200 result_map: id: $b{$.itemId} - version: $b{$.version.id}
\ No newline at end of file + version: $b{$.version.id} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml index 064af3bb..41129404 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml @@ -46,6 +46,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id} method: DELETE + headers: + USER_ID: ${host-username} body: '{"vendorName": "${vendor-name}", "description": "vendor license model", "iconRef": "icon"}' success_codes: - 200 diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml index 31172627..0fb01dea 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml @@ -76,6 +76,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools method: POST + headers: + USER_ID: ${host-username} body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}' success_codes: - 200 diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml index 04c7ac3a..79d7c511 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml @@ -76,6 +76,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups method: POST + headers: + USER_ID: ${host-username} body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}' success_codes: - 200 diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml index 5f266ac4..9a325403 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml @@ -65,8 +65,10 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups method: POST + headers: + USER_ID: ${host-username} body: '{"name": "${name}", "type": "${type}"}' success_codes: - 200 result_map: - id: $b{$.value}
\ No newline at end of file + id: $b{$.value} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml index 70897538..d67d05b5 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml @@ -39,6 +39,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models method: GET + headers: + USER_ID: ${host-username} success_codes: - 200 result_map: diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml index d03b697b..30d684c8 100644 --- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml @@ -44,6 +44,8 @@ http: request: uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/actions method: PUT + headers: + USER_ID: ${host-username} body: '{"action": "Submit"}' success_codes: - 201 |