diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2020-01-23 14:37:30 +0100 |
---|---|---|
committer | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2020-01-23 14:37:30 +0100 |
commit | 044f47d64a1d9f958d1cd80be9b1fae44bbaf314 (patch) | |
tree | ea8895494638845ef8d891ba6422a03e7098b76b /robot/resources/so/add_service_recipe.robot | |
parent | 9b723a87afa7081cb4f03e2c5c45f4848486d365 (diff) |
Add teardown to pnf_registrate test cases
Issue-ID: INT-1407
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: I65836640e554237d3ac5adfcfa1d9d0f502329d4
Diffstat (limited to 'robot/resources/so/add_service_recipe.robot')
-rw-r--r-- | robot/resources/so/add_service_recipe.robot | 9 |
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 |