Newer
Older
*** Settings ***
Documentation
... A test suite for validating Transport (TRANS) operations.
Resource ../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
[Documentation]
... Check that the IUT responds with a list of available transports
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.5.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.8/Mp1.yaml#/definitions/TransportInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is TransportInfoList
*** Keywords ***
Get list of available transports
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/transports
${output}= Output response
Set Suite Variable ${response} ${output}