Commit fe1f0f44 authored by Elian Kraja's avatar Elian Kraja Committed by Giacomo Bernini
Browse files

Fix issue #193

parent ca8975bb
......@@ -317,7 +317,7 @@ Post Create subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Clear Requests ${callback_endpoint}
......
......@@ -338,7 +338,7 @@ Post Create subscription - DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Clear Requests ${callback_endpoint}
......@@ -358,7 +358,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Clear Requests ${callback_endpoint}
......
......@@ -856,7 +856,7 @@ Post Create subscription - DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Clear Requests ${callback_endpoint}
......@@ -874,7 +874,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Clear Requests ${callback_endpoint}
......
......@@ -106,7 +106,7 @@ Send Post Request for VNF Performance Subscription
Set headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body_request}= Get File jsons/subscriptions.json
POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body_request}
POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body_request} allow_redirects=false
${output}= Output response
Set Suite Variable ${response} ${output}
Run Keyword If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 1
......@@ -137,7 +137,7 @@ Send Post Request for Duplicated VNF Performance Subscription
Set headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body_request}= Get File jsons/subscriptions.json
POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body_request}
POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body_request} allow_redirects=false
${output}= Output response
Set Suite Variable ${response} ${output}
# Integer response status 303
......
......@@ -273,7 +273,7 @@ POST Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify the notification endpoint has been tested
......@@ -293,7 +293,7 @@ Send POST Request for duplicated subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify the notification endpoint has been tested
......@@ -313,7 +313,7 @@ Send POST Request for duplicated subscription not permitted
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify the notification endpoint has been tested
......
......@@ -106,7 +106,7 @@ Send Post Request for VNF Indicator Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Log Verify the notification endpoint has been tested
......@@ -129,7 +129,7 @@ Send Post Request for Duplicated VNF indicator Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Log Verify the notification endpoint has been tested
......
......@@ -1289,7 +1289,7 @@ Post Create subscription - DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify notification endpoint is tested
......@@ -1311,7 +1311,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify notification endpoint is tested
......
......@@ -418,7 +418,7 @@ Send Post Request for VNF Package Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Log Verify that the notification endpoint has been tested
......@@ -439,7 +439,7 @@ Send Post Request for Duplicated VNF Package Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Log Verify that the notification endpoint has been tested
......
......@@ -123,7 +123,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify that the notification endpoint has been tested
......@@ -143,7 +143,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify that the notification endpoint has been tested
......
......@@ -801,7 +801,7 @@ Send Post Request for NSD Management Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Clear Requests ${callback_endpoint}
......@@ -822,7 +822,7 @@ Send POST Request for Duplicated NSD Management Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Clear Requests ${callback_endpoint}
......
......@@ -1150,7 +1150,7 @@ POST subscriptions
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify that NFVO tested the notification endpoint
......@@ -1171,7 +1171,7 @@ POST subscriptions DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify that NFVO tested the notification endpoint
......@@ -1192,7 +1192,7 @@ POST subscriptions NO DUPLICATION
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
Log Verify that NFVO tested the notification endpoint
......
......@@ -903,7 +903,7 @@ Send Post Request for VNF Package Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Clear Requests ${callback_endpoint}
......@@ -922,7 +922,7 @@ Send Post Request for Duplicated VNF Package Subscription
&{notification_response}= Create Mock Response status_code=204
Log Issue the subscription request
Create Mock Expectation ${notification_request} ${notification_response}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false
${output}= Output response
Set Global Variable ${response} ${output}
Clear Requests ${callback_endpoint}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment