aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/so
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2020-03-06 14:06:48 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2020-04-01 06:55:30 +0000
commit888614e469ca672ddac67cdc2b57ce48497da441 (patch)
tree9db2188d058097967f2b96795f70cc583e94139f /robot/resources/so
parent9f863418055651d4b6fa9772e1f9a94c3efe8c6c (diff)
Extend PnF registrate test cases for GR API
Issue-ID: INT-1477 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: If7ade6850bd59799d5445cebe27db5c948522e06
Diffstat (limited to 'robot/resources/so')
-rw-r--r--robot/resources/so/create_service_instance.robot24
1 files changed, 24 insertions, 0 deletions
diff --git a/robot/resources/so/create_service_instance.robot b/robot/resources/so/create_service_instance.robot
new file mode 100644
index 00000000..44e526b6
--- /dev/null
+++ b/robot/resources/so/create_service_instance.robot
@@ -0,0 +1,24 @@
+*** Settings ***
+Documentation Creates a macro service recipe in SO Catalog DB
+
+Library OperatingSystem
+Library Collections
+Library ONAPLibrary.SO WITH NAME SO
+Library ONAPLibrary.Templating WITH NAME Templating
+Resource ../global_properties.robot
+
+*** Variables ***
+${CREATE_SERVICE_PATH} /onap/so/infra/serviceInstantiation/v7/serviceInstances
+
+${SYSTEM USER} robot-ete
+${CREATE_PNF_SERVICE_GR_API} so/create_pnf_service_building_block.jinja
+
+*** Keywords ***
+Create PNF Service Using GR Api
+ [Documentation] Creates a PNF service using GR Api
+ [Arguments] ${arguments}
+ Templating.Create Environment so ${GLOBAL_TEMPLATE_FOLDER}
+ ${data}= Templating.Apply Template so ${CREATE_PNF_SERVICE_GR_API} ${arguments}
+ ${auth}= Create List ${GLOBAL_SO_USERNAME} ${GLOBAL_SO_PASSWORD}
+ ${request_id} ${service_instance_id} SO.Run Create Request ${GLOBAL_SO_ENDPOINT} ${CREATE_SERVICE_PATH} ${data} auth=${auth}
+ [Return] ${request_id} ${service_instance_id} \ No newline at end of file