${body} OperatingSystem.Get File ${SERVICE_FUNCTIONS_FILE}
${jsonbody} To Json ${body}
${functions} Get From Dictionary ${jsonbody} service-functions
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${function} Get From Dictionary ${result} service-functions
[Documentation] Delete all Service Functions
${body} OperatingSystem.Get File ${SERVICE_FUNCTIONS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 200
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 404
Get one Service Function
[Documentation] Get A Non-existing Service Function
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}service-function/non-existing-sf
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}service-function/non-existing-sf
Should Be Equal As Strings ${resp.status_code} 404
Delete A Service Function
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}service-function/dpi-102-1
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 200
Should Not Contain ${resp.content} dpi-102-1
${jsonbody} To Json ${body}
${functions} Get From Dictionary ${jsonbody} service-functions
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}service-function/non-existing-sf
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${function} Get From Dictionary ${result} service-functions
[Documentation] Put Service Function DPL to a Non-existing Service Function
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
Add Elements To URI From File ${SF_DPI102100_URI}sf-data-plane-locator/dpl-101 ${SF_DPL101_FILE}
- ${resp} RequestsLibrary.Get session ${SERVICE_FUNCTIONS_URI}
+ ${resp} RequestsLibrary.Get Request session ${SERVICE_FUNCTIONS_URI}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} dpi-102-100
${elements}= Create List dpl-101 10101
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
Add Elements To URI From File ${SF_DPI102100_URI} ${SF_DPI102100_FILE}
Remove All Elements At URI ${SF_DPI102100_URI}sf-data-plane-locator/dpl-100
- ${resp} RequestsLibrary.Get session ${SF_DPI102100_URI}
+ ${resp} RequestsLibrary.Get Request session ${SF_DPI102100_URI}
Should Be Equal As Strings ${resp.status_code} 200
Should Not Contain ${resp.content} dpl-100