aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/mappings/sdc
diff options
context:
space:
mode:
authoraleemraja <ar00500721@techmahindra.com>2020-07-16 21:46:19 +0530
committeraleemraja <ar00500721@techmahindra.com>2020-07-16 21:49:43 +0530
commit4dbd4fc629c4c3e8c491ed7fdd904e2ecfa4c0e0 (patch)
tree0d1c9385051b0699ab98497e0aaa744156fe6fd4 /src/test/resources/mappings/sdc
parent24e99d433cfde855e3e4ce06b6f7fb00f47dad52 (diff)
Preparing the request payload for calling SO macro flow.
- Added JUnit Test cases and Kararte test for service catalog. - Added test case for Execution Task for Macro Flow. - Modified RequestDetails and RequestInfo to match with SO Macro request payload. - Added k8s configuration in application.properties. Issue-ID: EXTAPI-368 Signed-off-by: aleemraja <ar00500721@techmahindra.com> Change-Id: Ibbbbbd2d7021c16ea6291cc899e310ae26200833 Signed-off-by: aleemraja <ar00500721@techmahindra.com>
Diffstat (limited to 'src/test/resources/mappings/sdc')
-rw-r--r--src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f.json117
-rw-r--r--src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f_tosca.json10
2 files changed, 127 insertions, 0 deletions
diff --git a/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f.json b/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f.json
new file mode 100644
index 0000000..2480421
--- /dev/null
+++ b/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f.json
@@ -0,0 +1,117 @@
+{
+ "request": {
+ "method": "GET",
+ "url": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/metadata"
+ },
+ "response": {
+ "status": 200,
+ "jsonBody": {
+ "uuid": "82c9fbb4-656c-4973-8c7f-172b22b5fa8f",
+ "invariantUUID": "3d3aa59d-d0b4-4663-b4bb-dc16f518acea",
+ "name": "VLB_Service",
+ "version": "1.0",
+ "toscaModelURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/toscaModel",
+ "category": "Network Service",
+ "lifecycleState": "CERTIFIED",
+ "lastUpdaterUserId": "jm0007",
+ "distributionStatus": "DISTRIBUTED",
+ "lastUpdaterFullName": "Joni Mitchell",
+ "resources": [
+ {
+ "resourceInstanceName": "vLB_VSP 0",
+ "resourceName": "vLB_VSP",
+ "resourceInvariantUUID": "368371e6-1d2f-4f4a-b992-a9053c7c2f1e",
+ "resourceVersion": "1.0",
+ "resoucreType": "VF",
+ "resourceUUID": "35d7887d-3c35-4fb4-aed1-d15b4d9f4ccc",
+ "artifacts": [
+ {
+ "artifactName": "vf-license-model.xml",
+ "artifactType": "VF_LICENSE",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/ecb35123-2160-4a1f-8e10-0f9ae0233024",
+ "artifactDescription": "VF license file",
+ "artifactChecksum": "ZTdhOGFmMTUzNGFiNjlhYTUzOTgxMmM4NzQ3OGJlOGI=",
+ "artifactUUID": "ecb35123-2160-4a1f-8e10-0f9ae0233024",
+ "artifactVersion": "1",
+ "artifactLabel": "vflicense",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "vlb_vsp0_modules.json",
+ "artifactType": "VF_MODULES_METADATA",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/21e0c3e3-ab55-4fc0-9e73-78a1815510d8",
+ "artifactDescription": "Auto-generated VF Modules information artifact",
+ "artifactChecksum": "NWU2NDNjNWVmMjM2YWRjNjc5NTNlNjZhMTQ3Mjk4MmY=",
+ "artifactUUID": "21e0c3e3-ab55-4fc0-9e73-78a1815510d8",
+ "artifactVersion": "1",
+ "artifactLabel": "vfModulesMetadata",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "dnsscaling.yaml",
+ "artifactType": "HEAT",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/f82b2ecb-d1ff-49a9-84c9-123968e1cd94",
+ "artifactDescription": "created from csar",
+ "artifactTimeout": 60,
+ "artifactChecksum": "NWU2MWY2NzFjOWM3NDRhMDU2ZjlhMDFiNWRiOWI4Mzc=",
+ "artifactUUID": "f82b2ecb-d1ff-49a9-84c9-123968e1cd94",
+ "artifactVersion": "2",
+ "artifactLabel": "heat1",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "base_vlb.yaml",
+ "artifactType": "HEAT",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/d06da981-1f0c-4868-bd35-caefa60dd062",
+ "artifactDescription": "created from csar",
+ "artifactTimeout": 60,
+ "artifactChecksum": "MzY5NWZkZDJiNWJmMzY0ODdiOWY1ZDZjNWQ3MDVjM2E=",
+ "artifactUUID": "d06da981-1f0c-4868-bd35-caefa60dd062",
+ "artifactVersion": "2",
+ "artifactLabel": "heat2",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "base_vlb.env",
+ "artifactType": "HEAT_ENV",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/970c7177-cf5d-41ba-a2f8-594ec760f825",
+ "artifactDescription": "Auto-generated HEAT Environment deployment artifact",
+ "artifactChecksum": "MDE1NGNlMGM2ZmI3YTZkMmQ0MGM4YmVmNzg5YWQ1MGQ=",
+ "artifactUUID": "970c7177-cf5d-41ba-a2f8-594ec760f825",
+ "artifactVersion": "2",
+ "generatedFromUUID": "5bcc6eb1-5d95-403b-a796-31777480b1c5.heat2",
+ "artifactLabel": "heat2env",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "vendor-license-model.xml",
+ "artifactType": "VENDOR_LICENSE",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/9f0320dd-16ab-4ff3-972e-f9faabaa7d54",
+ "artifactDescription": " Vendor license file",
+ "artifactChecksum": "MjY3N2M0YmRmZmRiMzNiMWU1NGRlNjU5YTYwZWFmOWI=",
+ "artifactUUID": "9f0320dd-16ab-4ff3-972e-f9faabaa7d54",
+ "artifactVersion": "1",
+ "artifactLabel": "vendorlicense",
+ "artifactGroupType": "DEPLOYMENT"
+ },
+ {
+ "artifactName": "dnsscaling.env",
+ "artifactType": "HEAT_ENV",
+ "artifactURL": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/resourceInstances/vlb_vsp0/artifacts/778c22db-5ac8-4bd3-a294-24e1d1c1fd43",
+ "artifactDescription": "Auto-generated HEAT Environment deployment artifact",
+ "artifactChecksum": "MzEwMjI4YTNiNDU0MTFmZDkwODFhZGNjYzE0MTI1ZTc=",
+ "artifactUUID": "778c22db-5ac8-4bd3-a294-24e1d1c1fd43",
+ "artifactVersion": "2",
+ "generatedFromUUID": "5bcc6eb1-5d95-403b-a796-31777480b1c5.heat1",
+ "artifactLabel": "heat1env",
+ "artifactGroupType": "DEPLOYMENT"
+ }
+ ]
+ }
+ ]
+ },
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ }
+} \ No newline at end of file
diff --git a/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f_tosca.json b/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f_tosca.json
new file mode 100644
index 0000000..e9b3391
--- /dev/null
+++ b/src/test/resources/mappings/sdc/sdc_get_82c9fbb4-656c-4973-8c7f-172b22b5fa8f_tosca.json
@@ -0,0 +1,10 @@
+{
+ "request": {
+ "method": "GET",
+ "url": "/sdc/v1/catalog/services/82c9fbb4-656c-4973-8c7f-172b22b5fa8f/toscaModel"
+ },
+ "response": {
+ "status": 200,
+ "bodyFileName": "toscafile/service-VlbService-csar.csar"
+ }
+} \ No newline at end of file