diff options
Diffstat (limited to 'robot/resources/so')
-rwxr-xr-x | robot/resources/so/direct_instantiate.robot | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/robot/resources/so/direct_instantiate.robot b/robot/resources/so/direct_instantiate.robot index 556c5a9e..15f583ad 100755 --- a/robot/resources/so/direct_instantiate.robot +++ b/robot/resources/so/direct_instantiate.robot @@ -6,6 +6,7 @@ Library Collections Library String Library DateTime Library SoUtils +Library RequestsLibrary Library ONAPLibrary.PreloadData WITH NAME PreloadData Library ONAPLibrary.Utilities Library ONAPLibrary.JSON @@ -19,6 +20,7 @@ Resource ../global_properties.robot ${SO_TEMPLATE_PATH} so ${SO_CATALOGDB_PATH} /ecomp/mso/catalog/v2/serviceVnfs?serviceModelName ${SO_APIHANDLER_PATH} /onap/so/infra/serviceInstantiation/v7/serviceInstances +${CDS_BOOTSTRAP_PATH} /api/v1/blueprint-model/bootstrap *** Keywords *** Instantiate Service Direct To SO @@ -64,6 +66,12 @@ CDS Service Instantiate ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD} ${resp}= SO.Run Get Request ${GLOBAL_SO_CATDB_ENDPOINT} ${SO_CATALOGDB_PATH}=${cds_service_model} auth=${auth} Should Be Equal As Strings ${resp.status_code} 200 + ${session}= Create Session cds ${GLOBAL_CCSDK_CDS_SERVER_PROTOCOL}://${GLOBAL_INJECTED_CCSDK_CDS_BLUEPRINT_PROCESSOR_IP_ADDR}:${GLOBAL_CCSDK_CDS_HEALTH_SERVER_PORT} + ${data}= Create Dictionary loadModelType=true loadResourceDictionary=true loadCBA=true + ${headers}= Create Dictionary Content-Type=application/json Authorization=Basic ${GLOBAL_CDS_AUTH} + ${resp}= Post Request cds ${CDS_BOOTSTRAP_PATH} data=${data} headers=${headers} + ${status_string}= Convert To String ${resp.status_code} + Should Match Regexp ${status_string} ^(200|201|202)$ ${time_now}= Get Time @{date_time}= Split String ${time_now} ${time_stamp}= Catenate SEPARATOR=_ @{date_time}[0] @{date_time}[1] |