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

template fix added

parent e9893c5f
No related branches found
No related tags found
3 merge requests!199Merge "3.3.1 dev" into "release 3" master,!193Merge 2.7.1 dev into Master, for TST010ed271 publication,!118SOL002 VNF Performance Management - Implementation of deltas between v2.7.1 and v2.6.1
......@@ -288,7 +288,7 @@ Send Post Request Create new VNF Performance Monitoring Job
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
${template}= Get File jsons/CreatePmJobRequest.json
${body}= Format String ${template} objectInstanceIds=${objectInstanceIds} callbackuri=${callback_uri}
${body}= Format String ${template} objectInstanceIds=${objectInstanceIds} callback_uri=${callback_uri}
POST ${apiRoot}/${apiName}/${apiVersion}/pm_jobs ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
......
*** Settings ***
Library String
Resource environment/variables.txt
Resource environment/subscriptions.txt
Resource environment/individualSubscription.txt
......@@ -104,7 +105,8 @@ Send Post Request for VNF Performance Subscription
Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Set headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": ${AUTHORIZATION}"}
${body_request}= Get File jsons/subscriptions.json
${template}= Get File jsons/subscriptions.json
${body_request}= Format String ${template} callback_uri=${callback_uri} subscribe=${subscribe}
POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body_request}
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -135,7 +137,8 @@ Send Post Request for Duplicated VNF Performance Subscription
Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Set headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
${body_request}= Get File jsons/subscriptions.json
${template}= Get File jsons/subscriptions.json
${body_request}= Format String ${template} callback_uri=${callback_uri} subscribe=${subscribe}
POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body_request}
${output}= Output response
Set Suite Variable ${response} ${output}
......
......@@ -25,4 +25,6 @@ ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.
${response} http-response
${objectInstanceIds} 1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
\ No newline at end of file
${objectInstanceIds} 1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${subscribe} /subscribe
\ No newline at end of file
{
"callbackUri": "http://127.0.0.1/subscribe",
"filter": {
{{
"callbackUri": "{callback_uri}{subscribe}",
"filter": {{
"notificationTypes": ["ThresholdCrossedNotification"]
}
}
\ No newline at end of file
}}
}}
\ 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