diff options
author | 2020-08-26 20:30:48 +0530 | |
---|---|---|
committer | 2020-08-26 20:34:02 +0530 | |
commit | 93fabeb929bb1b422d7473e23935f47fead4f4d8 (patch) | |
tree | f81cd4b669efda82154362c95beaba4b977fbd5f /src/test/resources/mappings | |
parent | b337097739ba195b5d7a8cbb71c2f0e7f0e74d30 (diff) |
Implementation for TMF 633 API - POST /serviceSpecification
Issue-ID: EXTAPI-488
Signed-off-by: nikhil mohan <nikmohan81@gmail.com>
Change-Id: I382e3b2bfbde656508bcfb0c86e748f21a7790d2
Diffstat (limited to 'src/test/resources/mappings')
-rw-r--r-- | src/test/resources/mappings/sdc/sdc_post_spec.json | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/src/test/resources/mappings/sdc/sdc_post_spec.json b/src/test/resources/mappings/sdc/sdc_post_spec.json new file mode 100644 index 0000000..41e724f --- /dev/null +++ b/src/test/resources/mappings/sdc/sdc_post_spec.json @@ -0,0 +1,106 @@ +{ + "request": { + "method": "POST", + "url": "/sdc/v1/catalog/services", + "headers": { + "USER_ID": { + "contains": "cs0008" + } + }, + "bodyPatterns": [ + { + "contains": "\"name\":\"partner-service\"" + } + ] + }, + "response": { + "status": 201, + "jsonBody": { + "uuid": "1e3feeb0-8e36-46c6-862c-236d9c626439", + "href": "/serviceSpecification/1e3feeb0-8e36-46c6-862c-236d9c626439", + "name": "partner-service", + "description": "service", + "@type": "ServiceSpecification", + "@schemaLocation": null, + "@baseType": "Service", + "toscaModelURL": "/", + "toscaResourceName": "string", + "category": "Partner Domain Service", + "subcategory": "string", + "version": "1.0", + "lifecycleState": "NOT_CERTIFIED_CHECKOUT", + "targetServiceSchema": { + "@type": "string", + "@schemaLocation": "/" + }, + "artifacts": [ + { + "artifactUUID": "1eadef", + "artifactName": "info-artifact", + "artifactDescription": "informational", + "artifactLabel": "notes", + "artifactGroupType": "info", + "artifactTimeout": "500", + "artifactChecksum": "adef23", + "artifactVersion": "1.0", + "generatedFromUUID": "a12e", + "artifactURL": "/artifact/info/1eadef", + "artifactType": "text" + } + ], + "lastUpdaterUserId": "cs0008", + "lastUpdaterFullName": "Carlos Santana", + "resources": [ + { + "resourceUUID": "281abc4d", + "resourceVersion": "1.0", + "resourceName": "vfirewall", + "resourceInstanceName": "vfirewallinst", + "resourceInvariantUUID": "123ebdf", + "resoucreType": "VNF" + } + ], + "properties": [ + { + "type": "boolean", + "required": true, + "definition": false, + "description": "is bundled or not", + "name": "isBundle", + "value": "true", + "defaultValue": true + }, + { + "type": "string", + "required": true, + "definition": false, + "description": "ipaddress", + "name": "ipaddress", + "value": "10.244.34.1", + "defaultValue": true + }, + { + "type": "string", + "required": true, + "definition": false, + "description": "Firewall characteristic", + "name": "firewall", + "value": "NA", + "defaultValue": true + }, + { + "type": "integer", + "required": true, + "definition": false, + "description": "Number of Ports", + "name": "NumberofPorts", + "value": "10", + "defaultValue": true + } + ] + }, + "headers": { + "Content-Type": "application/json" + } + } +}
\ No newline at end of file |