summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-04-23 15:51:31 -0500
committerBrian Freeman <bf1936@att.com>2018-04-23 15:52:27 -0500
commit76454aef576409be9cd861ebcd2d2b85d89a1d5e (patch)
tree19908f68bc1c148b7743d79504e52adc3ae1906b /robot/resources
parentb0775856c0e5f14d79dba67c8f2c8ea7c92bb412 (diff)
Fix VID catagory_parameter init
Issue-ID: VID-214 Change-Id: I14bfdb787d1eecc33414df276b2894eb21f2cbbc Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/demo_preload.robot20
1 files changed, 12 insertions, 8 deletions
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index 761d4674..db346be5 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -26,20 +26,24 @@ ${DEMO_PREFIX} demo
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.