Fix VID catagory_parameter init
Issue-ID: VID-214
Change-Id: I14bfdb787d1eecc33414df276b2894eb21f2cbbc
Signed-off-by: Brian Freeman <bf1936@att.com>
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index 761d467..db346be 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -26,20 +26,24 @@
Load Customer And Models
[Documentation] Use openECOMP to Orchestrate a service.
[Arguments] ${customer_name}
- Load OwningEntity "lineOfBusiness" ${customer_name}
- Load OwningEntity "platform" ${customer_name}
- Load OwningEntity "project" ${customer_name}
- Load OwningEntity "owningEntity" ${customer_name}
+ Load OwningEntity lineOfBusiness LOB-${customer_name}
+ Load OwningEntity platform Platform-${customer_name}
+ Load OwningEntity project Project-${customer_name}
+ Load OwningEntity owningEntity OE-${customer_name}
Load Customer ${customer_name}
Load Models ${customer_name}
Load OwningEntity
[Documentation] Use openECOMP to Orchestrate a service.
[Arguments] ${parameter} ${name}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${data_path} = ${VID_ENDPOINT}${VID_ENV}/maintenance/category_parameter/${parameter}
- ${vid_data} = '{"options":["${name}"]}'
- ${resp}= Post Request vid ${data_path} data=${vid_data} headers=${headers}
+ ${data_path}= Set Variable /maintenance/category_parameter/${parameter}
+ ${vid_data}= Set Variable {"options":["${name}"]}
+ ${auth}= Create List ${GLOBAL_VID_USERNAME} ${GLOBAL_VID_PASSWORD}
+ Log Creating session ${data_path}
+ ${session}= Create Session vid ${VID_ENDPOINT}${VID_ENV} auth=${auth}
+ ${uuid}= Generate UUID
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json USER_ID=${GLOBAL_VID_USERNAME} X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
+ ${resp}= Post Request vid ${data_path} data=${vid_data} headers=${headers}
Load Customer
[Documentation] Use openECOMP to Orchestrate a service.