Loading MEC028/WAI/SUB/WaiSubscription.robot +34 −36 Original line number Diff line number Diff line Loading @@ -9,43 +9,7 @@ Library String Library OperatingSystem Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false #POST *** Test Cases *** TP_MEC_MEC028_SRV_WAI_007_OK [Documentation] ... Check that the IUT responds with a Notification Subscription ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription.json Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is AssocStaSubscription Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE} Should Be Equal As Strings ${response['body']['_links']['self']['href']} ${HREF} Should Be Equal As Strings ${response['headers']['Location']} ${HREF} TP_MEC_MEC028_SRV_WAI_007_BR [Documentation] ... Check that the IUT responds with an error when an invalid Subscription request is sent ... ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription_BR.json Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_007_NF [Documentation] ... Check that the IUT responds with an error when a request with not existing parameters is sent ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1 Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription using wrong endpoint AssocStaSubscription.json Check HTTP Response Status Code Is 404 #GET TP_MEC_MEC028_SRV_WAI_005_OK [Documentation] ... Check that the IUT responds with the requested list of subscription Loading Loading @@ -94,6 +58,40 @@ TP_MEC_MEC028_SRV_WAI_006_NF Retrieve the subscription information using wrong endpoint Check HTTP Response Status Code Is 404 TP_MEC_MEC028_SRV_WAI_007_OK [Documentation] ... Check that the IUT responds with a Notification Subscription ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription.json Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is AssocStaSubscription Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE} Should Be Equal As Strings ${response['body']['_links']['self']['href']} ${HREF} Should Be Equal As Strings ${response['headers']['Location']} ${HREF} TP_MEC_MEC028_SRV_WAI_007_BR [Documentation] ... Check that the IUT responds with an error when an invalid Subscription request is sent ... ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription_BR.json Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_007_NF [Documentation] ... Check that the IUT responds with an error when a request with not existing parameters is sent ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1 Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription using wrong endpoint AssocStaSubscription.json Check HTTP Response Status Code Is 404 *** Keywords *** Send a request for creating a subscription [Arguments] ${content} Loading Loading
MEC028/WAI/SUB/WaiSubscription.robot +34 −36 Original line number Diff line number Diff line Loading @@ -9,43 +9,7 @@ Library String Library OperatingSystem Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false #POST *** Test Cases *** TP_MEC_MEC028_SRV_WAI_007_OK [Documentation] ... Check that the IUT responds with a Notification Subscription ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription.json Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is AssocStaSubscription Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE} Should Be Equal As Strings ${response['body']['_links']['self']['href']} ${HREF} Should Be Equal As Strings ${response['headers']['Location']} ${HREF} TP_MEC_MEC028_SRV_WAI_007_BR [Documentation] ... Check that the IUT responds with an error when an invalid Subscription request is sent ... ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription_BR.json Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_007_NF [Documentation] ... Check that the IUT responds with an error when a request with not existing parameters is sent ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1 Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription using wrong endpoint AssocStaSubscription.json Check HTTP Response Status Code Is 404 #GET TP_MEC_MEC028_SRV_WAI_005_OK [Documentation] ... Check that the IUT responds with the requested list of subscription Loading Loading @@ -94,6 +58,40 @@ TP_MEC_MEC028_SRV_WAI_006_NF Retrieve the subscription information using wrong endpoint Check HTTP Response Status Code Is 404 TP_MEC_MEC028_SRV_WAI_007_OK [Documentation] ... Check that the IUT responds with a Notification Subscription ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription.json Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is AssocStaSubscription Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE} Should Be Equal As Strings ${response['body']['_links']['self']['href']} ${HREF} Should Be Equal As Strings ${response['headers']['Location']} ${HREF} TP_MEC_MEC028_SRV_WAI_007_BR [Documentation] ... Check that the IUT responds with an error when an invalid Subscription request is sent ... ETSI GS MEC 028 2.1.1, clause 7.5.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription AssocStaSubscription_BR.json Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_007_NF [Documentation] ... Check that the IUT responds with an error when a request with not existing parameters is sent ... Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1 Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Send a request for creating a subscription using wrong endpoint AssocStaSubscription.json Check HTTP Response Status Code Is 404 *** Keywords *** Send a request for creating a subscription [Arguments] ${content} Loading