From 5a6b17d3866b8a525ac0315e3e3cb179e5426d46 Mon Sep 17 00:00:00 2001 From: Michele Carignani Date: Fri, 22 Jan 2021 23:13:25 +0100 Subject: [PATCH] fix generation of json payloads for subscription creation and update --- SRV/RNIS/RnisSubscriptions_BV.robot | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/SRV/RNIS/RnisSubscriptions_BV.robot b/SRV/RNIS/RnisSubscriptions_BV.robot index f351d34..043685d 100644 --- a/SRV/RNIS/RnisSubscriptions_BV.robot +++ b/SRV/RNIS/RnisSubscriptions_BV.robot @@ -8,7 +8,7 @@ Resource ../../pics.txt Resource ../../GenericKeywords.robot Resource resources/RadioNetworkInformationAPI.robot Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false - +Library String *** Test Cases *** @@ -79,7 +79,10 @@ Post RNIS subscription request Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} - ${body} Get File jsons/CellChangeSubscriptionRequest.json + ${body}= Get File jsons/CellChangeSubscriptionRequest.json + ${body}= Replace String ${body} \${HREF} ${HREF} + ${body}= Replace String ${body} \${LINKS_SELF} ${LINKS_SELF} + Log ${body} Post ${apiRoot}/rni/${apiVersion}/subscriptions ${body} ${output}= Output response Set Suite Variable ${response} ${output} @@ -94,7 +97,7 @@ Get Individual RNIS Subscription Get ${apiRoot}/rni/${apiVersion}/subscriptions/${SUBSCRIPTION_ID} ${output}= Output response Set Suite Variable ${response} ${output} - + Update Individual RNIS Subscription Should Be True ${PIC_RNIS_SPECIFIC_SUBSCRIPTION} == 1 @@ -102,10 +105,13 @@ Update Individual RNIS Subscription Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} ${body} Get File jsons/UpdateCellChangeSubscriptionRequest.json + ${body}= Replace String ${body} \${HREF} ${HREF} + ${body}= Replace String ${body} \${LINKS_SELF} ${LINKS_SELF} + Log ${body} Put ${apiRoot}/rni/${apiVersion}/subscriptions/${SUBSCRIPTION_ID} ${body} ${output}= Output response Set Suite Variable ${response} ${output} - + Delete Individual RNIS Subscription Should Be True ${PIC_RNIS_SPECIFIC_SUBSCRIPTION} == 1 -- GitLab