From 044f47d64a1d9f958d1cd80be9b1fae44bbaf314 Mon Sep 17 00:00:00 2001 From: Krzysztof Kuzmicki Date: Thu, 23 Jan 2020 14:37:30 +0100 Subject: Add teardown to pnf_registrate test cases Issue-ID: INT-1407 Signed-off-by: Krzysztof Kuzmicki Change-Id: I65836640e554237d3ac5adfcfa1d9d0f502329d4 --- robot/resources/so/add_service_recipe.robot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'robot/resources/so') diff --git a/robot/resources/so/add_service_recipe.robot b/robot/resources/so/add_service_recipe.robot index 6d7fa035..a5dca694 100644 --- a/robot/resources/so/add_service_recipe.robot +++ b/robot/resources/so/add_service_recipe.robot @@ -26,7 +26,7 @@ Add Service Recipe ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD} ${get_resp}= SO.Run Post Request ${GLOBAL_SO_CATDB_ENDPOINT} ${SERVICE_RECIPE_PATH} ${data} auth=${auth} Should Be Equal As Strings ${get_resp.status_code} 201 - [Return] ${get_resp.status_code} ${get_resp.json()} + [Return] ${id} Get Service Recipe [Documentation] Gets service recipe/s in SO @@ -50,3 +50,10 @@ Get First Free Service Recipe Id ${biggest_id}= Get From List ${ids} -1 Log Biggest id is ${biggest_id} first free is ${biggest_id+1} [Return] ${biggest_id+1} + +Delete Service Recipe + [Documentation] Deletes service recipe/s in SO + [Arguments] ${service_id} + ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD} + ${get_resp}= SO.Run Delete Request ${GLOBAL_SO_CATDB_ENDPOINT} ${SERVICE_RECIPE_PATH}/${service_id} auth=${auth} + Should Be Equal As Strings ${get_resp.status_code} 201 \ No newline at end of file -- cgit 1.2.3-korg