Commit 7d24d2cb authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

templating added

parent da1ef090
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -217,7 +217,8 @@ Send Post Request for VNF Indicator Subscription
    Log    Trying to create a new subscription
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    ${body}=    Get File    jsons/subscriptions.json
    ${template}=    Get File    jsons/subscriptions.json
    ${body}=        Format String   ${template}     callback_uri=${callback_uri}    callback_endpoint=${callback_endpoint}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    POST    ${apiRoot}/${apiName}/${apiVersion}/subscriptions    ${body}
    ${output}=    Output    response
+3 −3
Original line number Diff line number Diff line
{
	"callbackUri": "http://127.0.0.1/subscribe"
}
 No newline at end of file
{{
	"callbackUri": "{callback_uri}{callback_endpoint}"
}}
 No newline at end of file