summaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/so
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-09-16 13:21:47 -0400
committerBrian Freeman <bf1936@att.com>2019-09-17 14:40:35 +0000
commitcccad65a0c963240df76dde1944c9e7da25cc4da (patch)
tree344f1423b8676e5a95aa221c7bfa323d24400f19 /robot/assets/templates/so
parent6d269fdcbcf374a273f7ac0b68559951ea336654 (diff)
add needed import and move cds to common folder
Issue-ID: TEST-214 Change-Id: I7356bd28230adbdd7e56f6488000da71719469d8 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/assets/templates/so')
-rw-r--r--robot/assets/templates/so/cds_request.jinja34
-rw-r--r--robot/assets/templates/so/cds_service_template.jinja38
2 files changed, 40 insertions, 32 deletions
diff --git a/robot/assets/templates/so/cds_request.jinja b/robot/assets/templates/so/cds_request.jinja
index b39767ff..625df95b 100644
--- a/robot/assets/templates/so/cds_request.jinja
+++ b/robot/assets/templates/so/cds_request.jinja
@@ -4,26 +4,36 @@
"globalSubscriberId" : "{{subscriber_id}}"
},
"requestInfo" : {
- "suppressRollback" : true,
+ "suppressRollback" : false,
"productFamilyId" : "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
- "requestorId" : "ym9479",
+ "requestorId" : "robot-ete",
"instanceName" : "{{service_instance_name}}",
"source" : "VID"
},
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}",
+ "tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}",
+ "cloudOwner":"{{cloud_owner}}"
+ },
"requestParameters" : {
"subscriptionServiceType" : "{{subscription_service_type}}",
"userParams" : [
{
+ "Homing_Solution":"{{homing_solution}}"
+ },
+ {
"service" : {
"instanceParams" : [],
"instanceName" : "{{service_instance_name}}",
"resources" : {
"vnfs" : {{vnfs}
},
- "modelInfo" : {
- "modelType" : "service",
- "modelName" : "{{service_model_name}}",
- "modelVersionId" : "{{service_model_UUID}}"
+ "modelInfo":{
+ "modelVersion":"1.0",
+ "modelVersionId":"{{service_model_uuid}}",
+ "modelInvariantId":"{{service_model_invariantuuid}}",
+ "modelName":"{{service_model_name}}",
+ "modelType":"service"
}
}
}
@@ -31,16 +41,16 @@
"aLaCarte" : false
},
"project" : {
- "projectName" : "some project name"
+ "projectName" : "Project-Demonstration"
},
"owningEntity" : {
- "owningEntityName" : "PACKET CORE",
- "owningEntityId" : "038d99af-0427-42c2-9d15-971b99b9b489"
+ "owningEntityId":"{{owning_entity_id}}",
+ "owningEntityName":"{{owning_entity}}"
},
"modelInfo" : {
- "modelVersion" : "10.0",
- "modelVersionId" : "{{service_model_UUID}}",
- "modelInvariantId" : "{{service_model_invariantUUID}}",
+ "modelVersion":"1.0",
+ "modelVersionId" : "{{service_model_uuid}}",
+ "modelInvariantId" : "{{service_model_invariantuuid}}",
"modelName" : "{{service_model_name}}",
"modelType" : "service"
}
diff --git a/robot/assets/templates/so/cds_service_template.jinja b/robot/assets/templates/so/cds_service_template.jinja
index de2a36f1..9b6e1cc2 100644
--- a/robot/assets/templates/so/cds_service_template.jinja
+++ b/robot/assets/templates/so/cds_service_template.jinja
@@ -1,32 +1,30 @@
{
"requestDetails":{
"subscriberInfo":{
- "globalSubscriberId":"{{customer}}"
+ "globalSubscriberId":"{{subscriber_id}}"
},
"requestInfo":{
"suppressRollback":false,
"productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
- "requestorId":"adt",
- "instanceName":"{{cds_instance_name}}",
+ "requestorId":"robot-ete",
+ "instanceName":"{{service_instance_name}}",
"source":"VID"
},
"cloudConfiguration":{
"lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}",
"tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}",
- "cloudOwner":"{{cloudOwner}}"
+ "cloudOwner":"{{cloud_owner}}"
},
"requestParameters":{
- "subscriptionServiceType":"{{subscriptionServiceType}}",
+ "subscriptionServiceType":"{{subscription_service_type}}",
"userParams":[
{
- "Homing_Solution":"none"
+ "Homing_Solution":"{{homing_solution}}"
},
{
"service":{
- "instanceParams":[
-
- ],
- "instanceName":"{{cds_instance_name}}",
+ "instanceParams" : [],
+ "instanceName":"{{service_instance_name}}",
"resources":{
"vnfs":[
{
@@ -134,11 +132,11 @@
]
},
"modelInfo":{
- "modelVersion":"1.0",
- "modelVersionId":"{{service_uuid}}",
- "modelInvariantId":"{{service_invariantUUID}}",
- "modelName":"{{cds_service_model}}",
- "modelType":"service"
+ "modelVersion":"1.0",
+ "modelVersionId":"{{service_model_uuid}}",
+ "modelInvariantId":"{{service_model_invariantuuid}}",
+ "modelName":"{{service_model_name}}",
+ "modelType":"service"
}
}
}
@@ -149,14 +147,14 @@
"projectName":"Project-Demonstration"
},
"owningEntity":{
- "owningEntityId":"67f2e84c-734d-4e90-a1e4-d2ffa2e75849",
- "owningEntityName":"OE-Demonstration"
+ "owningEntityId":"{{owning_entity_id}}",
+ "owningEntityName":"{{owning_entity}}"
},
"modelInfo":{
"modelVersion":"1.0",
- "modelVersionId":"{{service_uuid}}",
- "modelInvariantId":"{{service_invariantUUID}}",
- "modelName":"{{cds_service_model}}",
+ "modelVersionId":"{{service_model_uuid}}",
+ "modelInvariantId":"{{service_model_invariantuuid}}",
+ "modelName":"{{service_model_name}}",
"modelType":"service"
}
}