summaryrefslogtreecommitdiffstats
path: root/robot/resources/demo_preload.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-19 17:40:26 -0400
committerDR695H <dr695h@att.com>2019-06-19 17:40:26 -0400
commitdaec16c9140e962235523a357b465c70c166a88f (patch)
treed31e294937780d1672953c285eee834a92292201 /robot/resources/demo_preload.robot
parent9d810d0f842705d1ff29684b489deb4188096879 (diff)
only use the file version of json template
Issue-ID: TEST-158 Change-Id: Ib172145fe3e5d77bd688505b145ca1709422366a Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/demo_preload.robot')
-rw-r--r--robot/resources/demo_preload.robot3
1 files changed, 1 insertions, 2 deletions
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index e00e36be..410e2262 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -98,10 +98,9 @@ Create Customer For VNF Demo
Create Service If Not Exists vCPE
Create Service If Not Exists vIMS
Create Service If Not Exists gNB
- ${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=vFWCL service2=vLB service3=vCPE service4=vIMS service5=gNB service6=vFW
- ${data}= Fill JSON Template ${data_template} ${arguments}
+ ${data}= Fill JSON Template File ${ADD_DEMO_CUSTOMER_BODY} ${arguments}
${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)$