aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-10-26 06:21:03 -0400
committerJerry Flood <jf9860@att.com>2017-10-26 06:21:18 -0400
commit7762dd08e9c6c3d8b7fa689ddc913b3ebd5847c9 (patch)
treeb60a23bb3154a0b9776f6aa9be1ec5fbb0527f35 /robot/resources
parent269bc1a62658d869731ea434de49e585c64a301a (diff)
Create services before creating customer
Issue: TEST-66 Change-Id: Ie4128b0df59db7c4283d4480795ef8e0df5d6525 Signed-off-by: Jerry Flood <jf9860@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/demo_preload.robot8
-rw-r--r--robot/resources/test_templates/vnf_orchestration_test_template.robot2
2 files changed, 5 insertions, 5 deletions
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index 6c7d0547..69048950 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -53,6 +53,10 @@ Distribute Model
Create Customer For VNF Demo
[Documentation] Create demo customer for the demo
[Arguments] ${customer_name} ${customer_id} ${customer_type} ${clouder_owner} ${cloud_region_id} ${tenant_id}
+ Create Service If Not Exists vFW
+ Create Service If Not Exists vLB
+ Create Service If Not Exists vCPE
+ Create Service If Not Exists vIMS
${data_template}= OperatingSystem.Get File ${ADD_DEMO_CUSTOMER_BODY}
${arguments}= Create Dictionary subscriber_name=${customer_name} global_customer_id=${customer_id} subscriber_type=${customer_type} cloud_owner=${clouder_owner} cloud_region_id=${cloud_region_id} tenant_id=${tenant_id}
Set To Dictionary ${arguments} service1=vFW service2=vLB service3=vCPE service4=vIMS
@@ -60,10 +64,6 @@ Create Customer For VNF Demo
${put_resp}= Run A&AI Put Request ${INDEX PATH}${ROOT_CUSTOMER_PATH}${customer_id} ${data}
${status_string}= Convert To String ${put_resp.status_code}
Should Match Regexp ${status_string} ^(200|201|412)$
- Create Service If Not Exists vFW
- Create Service If Not Exists vLB
- Create Service If Not Exists vCPE
- Create Service If Not Exists vIMS
Preload User Model
[Documentation] Preload the demo data for the passed VNF with the passed module name
diff --git a/robot/resources/test_templates/vnf_orchestration_test_template.robot b/robot/resources/test_templates/vnf_orchestration_test_template.robot
index d6bb1e9e..7289fbd7 100644
--- a/robot/resources/test_templates/vnf_orchestration_test_template.robot
+++ b/robot/resources/test_templates/vnf_orchestration_test_template.robot
@@ -78,9 +78,9 @@ Create Customer For VNF
... Create Tenant if not exists, Create Customer, Create Service and related relationships
[Arguments] ${customer_name} ${customer_id} ${customer_type} ${service_type} ${cloud_owner}
${cloud_region_id}= Get Openstack Region
+ Create Service If Not Exists ${service_type}
${resp}= Create Customer ${customer_name} ${customer_id} ${customer_type} ${service_type} ${cloud_owner} ${cloud_region_id} ${TENANT_ID}
Should Be Equal As Strings ${resp} 201
- Create Service If Not Exists ${service_type}
Setup Orchestrate VNF
[Documentation] Called before each test case to ensure tenant and region data