From d2095e211a8a0efd7ec8e24c68d9bb73bca2d9ab Mon Sep 17 00:00:00 2001 From: piscione Date: Fri, 7 May 2021 16:33:43 +0200 Subject: [PATCH] Minor fix. --- MEC028/WAI/SUB/WaiSubscription.robot | 70 ++++++++++++++-------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/MEC028/WAI/SUB/WaiSubscription.robot b/MEC028/WAI/SUB/WaiSubscription.robot index 941eaf0..190d970 100644 --- a/MEC028/WAI/SUB/WaiSubscription.robot +++ b/MEC028/WAI/SUB/WaiSubscription.robot @@ -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 @@ -93,6 +57,40 @@ TP_MEC_MEC028_SRV_WAI_006_NF ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription 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 -- GitLab