diff options
Diffstat (limited to 'plugins/sdc/src')
3 files changed, 825 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-create-schema-1.1.yaml new file mode 100644 index 00000000..17811ee4 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-create-schema-1.1.yaml @@ -0,0 +1,69 @@ +open_cli_schema_version: 1.0 +name: service-model-create +description: Create Service model in SDC +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: name + description: Onap Service Name + type: string + short_option: x + long_option: name + is_optional: false + - name: description + description: Description for Service + type: string + short_option: y + long_option: description + is_optional: true + - name: project-code + description: Project code + type: string + long_option: project-code + short_option: z + is_optional: true + - name: category + description: Service category + type: string + short_option: b + long_option: category + is_optional: true + default_value: network l1-3 + - name: category-display-name + description: Service category display name + type: string + short_option: c + long_option: category-display-name + is_optional: true + default_value: Network L1-3 + - name: icon-id + description: Service Icon id + type: string + short_option: e + long_option: icon-id + default_value: defaulticon + is_optional: true + +results: + direction: portrait + attributes: + - name: ID + description: Service ID + scope: short + type: string +http: + request: + uri: /sdc2/rest/v1/catalog/services + method: POST + body: '{"componentType": "SERVICE", "properties": [], "requirements": {}, "toscaArtifacts": {}, "tags": ["CLI", "${name}"], "artifacts": {}, "description": "${description}", "serviceApiArtifacts": {}, "capabilities": {}, "name": "${name}", "componentInstancesProperties": {}, "componentInstancesAttributes": {}, "contactId": "${onap-username}", "groups": [], "projectCode": "${project-code}", "deploymentArtifacts": {}, "attributes": [], "componentInstances": [], "categories": [{"normalizedName": "${category}", "name": "${category-display-name}", "uniqueId": "serviceNewCategory.${category}", "icons": ["${icon-id}"]}], "icon": "${icon-id}"}' + success_codes: + - 200 + - 201 + result_map: + ID: $b{$.uniqueId} + diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-moco.json new file mode 100644 index 00000000..5521a446 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-moco.json @@ -0,0 +1,742 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/services", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-7b5e7c47-d5fe-4551-9b3f-51125a6b1543", + "Content-Type" : "application/json" + }, + "json" : { + "componentType" : "SERVICE", + "properties" : [ ], + "requirements" : { }, + "toscaArtifacts" : { }, + "tags" : [ "CLI", "kanag-cli-VLB" ], + "artifacts" : { }, + "description" : "VLB created from CLI", + "serviceApiArtifacts" : { }, + "capabilities" : { }, + "name" : "kanag-cli-VLB", + "componentInstancesProperties" : { }, + "componentInstancesAttributes" : { }, + "contactId" : "cs0008", + "groups" : [ ], + "projectCode" : "kanag-123456", + "deploymentArtifacts" : { }, + "attributes" : [ ], + "componentInstances" : [ ], + "categories" : [ { + "normalizedName" : "network l1-3", + "name" : "Network L1-3", + "uniqueId" : "serviceNewCategory.network l1-3", + "icons" : [ "defaulticon" ] + } ], + "icon" : "defaulticon" + } + }, + "response" : { + "status" : 201, + "json" : { + "artifacts" : { + "servicequestionnaire" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicequestionnaire", + "artifactLabel" : "servicequestionnaire", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Questionnaire", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "dimensioninginfo" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.dimensioninginfo", + "artifactLabel" : "dimensioninginfo", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Dimensioning Info", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "controlloopfunctions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.controlloopfunctions", + "artifactLabel" : "controlloopfunctions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Control Loop Functions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "affinityrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.affinityrules", + "artifactLabel" : "affinityrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Affinity Rules", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "operationalpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.operationalpolicies", + "artifactLabel" : "operationalpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Operational Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "certificationtestresults" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.certificationtestresults", + "artifactLabel" : "certificationtestresults", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "TD Certification Test Results", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "deploymentvotingrecord" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.deploymentvotingrecord", + "artifactLabel" : "deploymentvotingrecord", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Deployment Voting Record", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "serviceartifactplan" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.serviceartifactplan", + "artifactLabel" : "serviceartifactplan", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Artifact Plan", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicespecificpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicespecificpolicies", + "artifactLabel" : "servicespecificpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service-specific Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicesecuritytemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicesecuritytemplate", + "artifactLabel" : "servicesecuritytemplate", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Security Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "engineeringrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.engineeringrules", + "artifactLabel" : "engineeringrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Engineering Rules (ERD)", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "distributioninstructions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.distributioninstructions", + "artifactLabel" : "distributioninstructions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Distribution Instructions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "summaryofimpactstoecompelements" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.summaryofimpactstoecompelements", + "artifactLabel" : "summaryofimpactstoecompelements", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Summary of impacts to ECOMP elements,OSSs, BSSs", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "deploymentArtifacts" : { }, + "toscaArtifacts" : { + "assettoscacsar" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "description" : "TOSCA definition package of the asset", + "artifactName" : "service-KanagCliVlb-csar.csar", + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.assettoscacsar", + "artifactLabel" : "assettoscacsar", + "artifactVersion" : "0", + "artifactType" : "TOSCA_CSAR", + "artifactGroupType" : "TOSCA", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Tosca Model", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "assettoscatemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "description" : "TOSCA representation of the asset", + "artifactName" : "service-KanagCliVlb-template.yml", + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.assettoscatemplate", + "artifactLabel" : "assettoscatemplate", + "artifactVersion" : "0", + "artifactType" : "TOSCA_TEMPLATE", + "artifactGroupType" : "TOSCA", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Tosca Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "categories" : [ { + "name" : "Network L1-3", + "normalizedName" : "network l1-3", + "uniqueId" : "serviceNewCategory.network l1-3", + "icons" : [ "defaulticon" ] + } ], + "componentInstancesRelations" : [ ], + "derivedFromGenericType" : "org.openecomp.resource.abstract.nodes.service", + "derivedFromGenericVersion" : "2.0", + "toscaType" : "topology_template", + "serviceApiArtifacts" : { + "configuration" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.configuration", + "artifactLabel" : "configuration", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Configuration", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "testing" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.testing", + "artifactLabel" : "testing", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Testing", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "logging" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.logging", + "artifactLabel" : "logging", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Logging", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "monitoring" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.monitoring", + "artifactLabel" : "monitoring", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Monitoring", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "reporting" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.reporting", + "artifactLabel" : "reporting", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Reporting", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "instantiation" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.instantiation", + "artifactLabel" : "instantiation", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Instantiation", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "distributionStatus" : "DISTRIBUTION_NOT_APPROVED", + "projectCode" : "kanag-123456", + "ecompGeneratedNaming" : true, + "namingPolicy" : "", + "serviceType" : "", + "serviceRole" : "", + "icon" : "defaulticon", + "creationDate" : 1509606274213, + "version" : "0.1", + "description" : "VLB created from CLI", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584", + "normalizedName" : "kanagclivlb", + "invariantUUID" : "c4425f23-fc9a-4cbf-a3b7-12e69054806b", + "lastUpdateDate" : 1509606274213, + "componentType" : "SERVICE", + "lifecycleState" : "NOT_CERTIFIED_CHECKOUT", + "uuid" : "660c524c-176b-43b1-a85b-1ef18011ca85", + "systemName" : "KanagCliVlb", + "lastUpdaterUserId" : "cs0008", + "highestVersion" : true, + "creatorFullName" : "Carlos Santana", + "allArtifacts" : { + "controlloopfunctions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.controlloopfunctions", + "artifactLabel" : "controlloopfunctions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Control Loop Functions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "operationalpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.operationalpolicies", + "artifactLabel" : "operationalpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Operational Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "certificationtestresults" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.certificationtestresults", + "artifactLabel" : "certificationtestresults", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "TD Certification Test Results", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "deploymentvotingrecord" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.deploymentvotingrecord", + "artifactLabel" : "deploymentvotingrecord", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Deployment Voting Record", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicequestionnaire" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicequestionnaire", + "artifactLabel" : "servicequestionnaire", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Questionnaire", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "dimensioninginfo" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.dimensioninginfo", + "artifactLabel" : "dimensioninginfo", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Dimensioning Info", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "affinityrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.affinityrules", + "artifactLabel" : "affinityrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Affinity Rules", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "serviceartifactplan" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.serviceartifactplan", + "artifactLabel" : "serviceartifactplan", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Artifact Plan", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicespecificpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicespecificpolicies", + "artifactLabel" : "servicespecificpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service-specific Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicesecuritytemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicesecuritytemplate", + "artifactLabel" : "servicesecuritytemplate", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Security Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "engineeringrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.engineeringrules", + "artifactLabel" : "engineeringrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Engineering Rules (ERD)", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "distributioninstructions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.distributioninstructions", + "artifactLabel" : "distributioninstructions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Distribution Instructions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "summaryofimpactstoecompelements" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.summaryofimpactstoecompelements", + "artifactLabel" : "summaryofimpactstoecompelements", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Summary of impacts to ECOMP elements,OSSs, BSSs", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "creatorUserId" : "cs0008", + "contactId" : "cs0008", + "conformanceLevel" : "4.0", + "lastUpdaterFullName" : "Carlos Santana", + "name" : "kanag-cli-VLB" + } + } +} ]
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-sample.yaml new file mode 100644 index 00000000..1ee2a152 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/service-model/service-model-create-schema-1.1-sample.yaml @@ -0,0 +1,14 @@ +onap_cli_sample_version: 1.0 +name: service-model-create +version: onap-1.1 +samples: + sample1: + name: service-model-create + input: --name kanag-cli-VLB --description VLB created from CLI --project-code kanag-123456 + moco: service-model-create-schema-1.1-moco.json + ouput: | + +----------+--------------------------------------+ + |property |value | + +----------+--------------------------------------+ + |ID |7b427dbf-685b-4ba9-8838-a9b3b3c8e584 | + +----------+--------------------------------------+ |