diff options
Diffstat (limited to 'plugins/sdc/src/main')
3 files changed, 25 insertions, 4 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-list-schema-1.1.yaml index e43ff9c8..8ad3656e 100644 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-list-schema-1.1.yaml +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-list-schema-1.1.yaml @@ -35,7 +35,14 @@ results: description: description type: string scope: long - + - name: vsp-uuid + description: VSP uuid + type: string + scope: long + - name: vsp-version + description: VSP version + type: string + scope: long http: request: uri: /sdc2/rest/v1/followed @@ -49,4 +56,5 @@ http: name: $b{resources.[*].name} status: $b{resources.[*].lifecycleState} description: $b{resources.[*].description} - + vsp-uuid: $b{resources.[*].csarUUID} + vsp-version: $b{resources.[*].csarVersion} diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml index a4092d41..a138363f 100644 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml @@ -19,6 +19,14 @@ parameters: results: direction: landscape attributes: + - name: vsp-uuid + description: VSP uuid + type: string + scope: short + - name: vsp-version + description: VSP version + type: string + scope: short - name: module-uuid description: UUID type: string @@ -47,3 +55,5 @@ http: module-name: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].name} module-version: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].version} module-invariant-uuid: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].invariantUUID} + vsp-uuid: $b{$.csarUUID} + vsp-version: $b{$.csarVersion}
\ No newline at end of file diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema-1.1.yaml index 8f7d239d..a9aa8100 100644 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema-1.1.yaml +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema-1.1.yaml @@ -35,6 +35,10 @@ results: description: license aggreement scope: long type: string + - name: license-version + description: license version + scope: long + type: string http: request: uri: /onboarding-api/v1.0/vendor-software-products @@ -48,5 +52,4 @@ http: version: $b{results.[*].version.id} status: $b{results.[*].status} license-id: $b{results.[*].licensingData.licenseAgreement} - sample_response: - body: '{"results":[{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"},{"name":"test-vsp","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"2DEB6CB4B082415BB7A697C9CD1273BA","version":"1.0","viewableVersions":["1.0"],"finalVersions":["1.0"],"status":"Final"}],"listCount":2}' + license-version: $b{results.[*].licensingVersion.id} |