summaryrefslogtreecommitdiffstats
path: root/robot/resources/so/add_service_recipe.robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/so/add_service_recipe.robot')
-rw-r--r--robot/resources/so/add_service_recipe.robot9
1 files changed, 8 insertions, 1 deletions
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