Skip to content
Snippets Groups Projects
Commit 7d24d2cb authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

templating added

parent da1ef090
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
{
"callbackUri": "http://127.0.0.1/subscribe"
}
\ No newline at end of file
{{
"callbackUri": "{callback_uri}{callback_endpoint}"
}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment