diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:18:08 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:18:08 +0530 |
commit | 2843fc199f3a18b735b8f43773ae4ed3448a9bf7 (patch) | |
tree | 4400e5f7c34948462c8a1209ba7163e09d32660c /plugins/sdc/src/test | |
parent | d9a02d3c870e72755ad14bb717daa9ec236480ba (diff) |
Add service model in SDC
CLI-57
Change-Id: I1c3107f2d0f6be26339548d1feaca0d4f7f153f6
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/test')
2 files changed, 756 insertions, 0 deletions
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 | + +----------+--------------------------------------+ |