Loading MEC028/WAI/EXT_SUB/ExistingSubscription.robot +1 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ TC_MEC_MEC028_SRV_WAI_010_OK TC_MEC_MEC028_SRV_WAI_010_NF [Documentation] ... Check that the IUT responds with an error when an not existing subscription cannot be deleted" ... Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.5 ... Reference "ETSI GS MEC 028 2.3.1, clause 7.6.3.5 [Setup] Remove Subscription Info Using SubId ${NOT_EXISTING_SUB_ID} Loading Loading @@ -146,7 +146,6 @@ Create New Subscription Info ${file}= Catenate SEPARATOR= jsons/ CreateAssocStaSubscription .json ${body}= Get File ${file} ${json_data}= Evaluate json.loads('''${body}''') json Log Original JSON: ${json_data} ${new_href}= Set Variable ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT}/${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} Set To Dictionary ${json_data["_links"]["self"]} href=${new_href} ${modified_json_string}= Evaluate json.dumps(${json_data}) Loading MEC028/WAI/EXT_SUB/jsons/CreateAssocStaSubscription.json +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ "callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1", "_links": { "self": { "href": "http://meAppServer.example.com/wai/v2/subscriptions/sub123" "href": "/wai/v2/subscriptions/sub123" } }, "expiryDeadline": { Loading MEC028/WAI/MEAS/WaiMeasurement.robot +99 −55 Original line number Diff line number Diff line Loading @@ -5,84 +5,95 @@ Resource environment/variables.txt Resource ../../../pics.txt Resource ../../../GenericKeywords.robot Library Collections Library String Library OperatingSystem Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false *** Test Cases *** TP_MEC_MEC028_SRV_WAI_012_OK TC_MEC_MEC028_SRV_WAI_012_OK [Documentation] ... Check that the IUT responds with a list of measurement ... configurations available from the WLAN Access Information Service ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.1 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.1 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Retrieve a list of list of measurement configurations Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MeasurementConfigLinkList TP_MEC_MEC028_SRV_WAI_013_OK [TearDown] Delete a specified measurement configuration ${MEAS_ID} TC_MEC_MEC028_SRV_WAI_013_OK [Documentation] ... Check that the IUT responds with a new measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfig ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfig Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfig.json ${body} Get File ${path} ${json_object}= Evaluate json.loads('''${body}''') json Create a new measurement configuration ${body} Check HTTP Response Status Code Is 200 Create a new measurement configuration ${MEAS_ID} Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MeasurementConfigLinkList Should Be Equal As Strings ${response['body']['staIdentity']['staId']} ${STA_ID} Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${json_object['measurementInfo']} ${response['body']['measurementInfo']} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementInfo']} ${response['body']['measurementInfo']} TP_MEC_MEC028_SRV_WAI_013_BR TC_MEC_MEC028_SRV_WAI_013_BR [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfig ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfig Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfigError.json ${body} Get File ${path} ${json_object}= Evaluate json.loads('''${body}''') json Create a new measurement configuration ${body} Create a new measurement configuration from file MeasurementConfigError Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_014_OK TC_MEC_MEC028_SRV_WAI_014_OK [Documentation] ... Check that the IUT responds with the specified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Check HTTP Response Body Json Schema Is MeasurementConfig Retrieve a specified measurement configuration ${MEAS_ID} Check HTTP Response Body Json Schema Is MeasurementConfig Check HTTP Response Status Code Is 200 Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_014_NF TC_MEC_MEC028_SRV_WAI_014_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Retrieve a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Check HTTP Response Status Code Is 404 TP_MEC_MEC028_SRV_WAI_015_OK TC_MEC_MEC028_SRV_WAI_015_OK [Documentation] ... Check that the IUT responds with the modified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfigUpdate.json Loading @@ -91,42 +102,55 @@ TP_MEC_MEC028_SRV_WAI_015_OK Update a specified measurement configuration ${MEAS_ID} ${body} Check HTTP Response Status Code Is 200 Should Be Equal As Strings ${response['body']['staIdentity']['staId']} ${json_object['staIdentity']['staId']} Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementInfo']} ${json_object['measurementInfo']} [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_015_NF TC_MEC_MEC028_SRV_WAI_015_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Update a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} MeasurementConfigUpdate.json Check HTTP Response Status Code Is 404 [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_016_OK TC_MEC_MEC028_SRV_WAI_016_OK [Documentation] ... Check that the IUT responds with with 204 when requested to delete the specified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Delete a specified measurement configuration ${MEAS_ID} Check HTTP Response Status Code Is 204 TP_MEC_MEC028_SRV_WAI_016_NF TC_MEC_MEC028_SRV_WAI_016_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Check HTTP Response Status Code Is 204 Check HTTP Response Status Code Is 404 *** Keywords *** Loading @@ -136,18 +160,39 @@ Retrieve a list of list of measurement configurations Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement GET ${apiRoot}/${apiName}/${apiVersion}/measurements ${output}= Output response Set Suite Variable ${response} ${output} Create a new measurement configuration [Arguments] ${body} [Arguments] ${measurementId} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} POST ${apiRoot}/${apiName}/${apiVersion}/queries/measurements ${body} ${path} Catenate SEPARATOR= jsons/ MeasurementConfig.json ${body} Get File ${path} ${json_data}= Evaluate json.loads('''${body}''') json Set To Dictionary ${json_data} measurementId=${measurementId} ${modified_json_string}= Evaluate json.dumps(${json_data}) POST ${apiRoot}/${apiName}/${apiVersion}/measurements ${modified_json_string} ${output}= Output response Set Suite Variable ${response} ${output} Create a new measurement configuration from file [Arguments] ${filename} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} ${path} Catenate SEPARATOR= jsons/ ${filename} .json ${body} Get File ${path} ${json_data}= Evaluate json.loads('''${body}''') json POST ${apiRoot}/${apiName}/${apiVersion}/measurements ${json_data} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -157,9 +202,9 @@ Retrieve a specified measurement configuration Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} GET ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -168,14 +213,13 @@ Update a specified measurement configuration Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} ${body} PUT ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${content} ${output}= Output response Set Suite Variable ${response} ${output} Delete a specified measurement configuration [Arguments] ${MEAS_CONF_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Loading @@ -183,7 +227,7 @@ Delete a specified measurement configuration Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} DELETE ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${output}= Output response Set Suite Variable ${response} ${output} MEC028/WAI/MEAS/environment/variables.txt +3 −3 Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ ${apiName} wai ${apiVersion} v2 ${MEC-APP_SCHEMA} http ${MEC-APP_HOST} 127.0.0.1 ${MEC-APP_PORT} 8082 ${MEC-APP_HOST} mockoon ${MEC-APP_PORT} 3001 ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${STA_ID} 123 ${MEAS_ID} 456 ${MEAS_ID} 123 ${INVALID_MEASUREMENT_CONFIG_ID} 999 No newline at end of file MEC028/WAI/MEAS/jsons/MeasurementConfig.json +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ "macId": "123" } ], "staIdentity": { "staId": "123" }, "measurementId": "123", "measurementInfo": { "measurementDuration": 10 Loading Loading
MEC028/WAI/EXT_SUB/ExistingSubscription.robot +1 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ TC_MEC_MEC028_SRV_WAI_010_OK TC_MEC_MEC028_SRV_WAI_010_NF [Documentation] ... Check that the IUT responds with an error when an not existing subscription cannot be deleted" ... Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.5 ... Reference "ETSI GS MEC 028 2.3.1, clause 7.6.3.5 [Setup] Remove Subscription Info Using SubId ${NOT_EXISTING_SUB_ID} Loading Loading @@ -146,7 +146,6 @@ Create New Subscription Info ${file}= Catenate SEPARATOR= jsons/ CreateAssocStaSubscription .json ${body}= Get File ${file} ${json_data}= Evaluate json.loads('''${body}''') json Log Original JSON: ${json_data} ${new_href}= Set Variable ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT}/${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} Set To Dictionary ${json_data["_links"]["self"]} href=${new_href} ${modified_json_string}= Evaluate json.dumps(${json_data}) Loading
MEC028/WAI/EXT_SUB/jsons/CreateAssocStaSubscription.json +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ "callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1", "_links": { "self": { "href": "http://meAppServer.example.com/wai/v2/subscriptions/sub123" "href": "/wai/v2/subscriptions/sub123" } }, "expiryDeadline": { Loading
MEC028/WAI/MEAS/WaiMeasurement.robot +99 −55 Original line number Diff line number Diff line Loading @@ -5,84 +5,95 @@ Resource environment/variables.txt Resource ../../../pics.txt Resource ../../../GenericKeywords.robot Library Collections Library String Library OperatingSystem Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false *** Test Cases *** TP_MEC_MEC028_SRV_WAI_012_OK TC_MEC_MEC028_SRV_WAI_012_OK [Documentation] ... Check that the IUT responds with a list of measurement ... configurations available from the WLAN Access Information Service ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.1 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.1 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Retrieve a list of list of measurement configurations Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MeasurementConfigLinkList TP_MEC_MEC028_SRV_WAI_013_OK [TearDown] Delete a specified measurement configuration ${MEAS_ID} TC_MEC_MEC028_SRV_WAI_013_OK [Documentation] ... Check that the IUT responds with a new measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfig ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfig Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfig.json ${body} Get File ${path} ${json_object}= Evaluate json.loads('''${body}''') json Create a new measurement configuration ${body} Check HTTP Response Status Code Is 200 Create a new measurement configuration ${MEAS_ID} Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MeasurementConfigLinkList Should Be Equal As Strings ${response['body']['staIdentity']['staId']} ${STA_ID} Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${json_object['measurementInfo']} ${response['body']['measurementInfo']} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementInfo']} ${response['body']['measurementInfo']} TP_MEC_MEC028_SRV_WAI_013_BR TC_MEC_MEC028_SRV_WAI_013_BR [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfig ... Reference "ETSI GS MEC 028 2.3.1, clause 7.7.3.4 ... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfig Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfigError.json ${body} Get File ${path} ${json_object}= Evaluate json.loads('''${body}''') json Create a new measurement configuration ${body} Create a new measurement configuration from file MeasurementConfigError Check HTTP Response Status Code Is 400 TP_MEC_MEC028_SRV_WAI_014_OK TC_MEC_MEC028_SRV_WAI_014_OK [Documentation] ... Check that the IUT responds with the specified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Check HTTP Response Body Json Schema Is MeasurementConfig Retrieve a specified measurement configuration ${MEAS_ID} Check HTTP Response Body Json Schema Is MeasurementConfig Check HTTP Response Status Code Is 200 Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_014_NF TC_MEC_MEC028_SRV_WAI_014_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.1 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Retrieve a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Check HTTP Response Status Code Is 404 TP_MEC_MEC028_SRV_WAI_015_OK TC_MEC_MEC028_SRV_WAI_015_OK [Documentation] ... Check that the IUT responds with the modified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 ${path} Catenate SEPARATOR= jsons/ MeasurementConfigUpdate.json Loading @@ -91,42 +102,55 @@ TP_MEC_MEC028_SRV_WAI_015_OK Update a specified measurement configuration ${MEAS_ID} ${body} Check HTTP Response Status Code Is 200 Should Be Equal As Strings ${response['body']['staIdentity']['staId']} ${json_object['staIdentity']['staId']} Should Be Equal As Strings ${response['body']['measurementId'] ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID} Should Be Equal As Strings ${response['body']['measurementInfo']} ${json_object['measurementInfo']} [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_015_NF TC_MEC_MEC028_SRV_WAI_015_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.2 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Update a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} MeasurementConfigUpdate.json Check HTTP Response Status Code Is 404 [TearDown] Delete a specified measurement configuration ${MEAS_ID} TP_MEC_MEC028_SRV_WAI_016_OK TC_MEC_MEC028_SRV_WAI_016_OK [Documentation] ... Check that the IUT responds with with 204 when requested to delete the specified measurement configuration ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Create a new measurement configuration ${MEAS_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Delete a specified measurement configuration ${MEAS_ID} Check HTTP Response Status Code Is 204 TP_MEC_MEC028_SRV_WAI_016_NF TC_MEC_MEC028_SRV_WAI_016_NF [Documentation] ... Check that the IUT responds with an error when an invalid request is sent ... Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" ... Reference "ETSI GS MEC 028 2.3.1, clause 7.8.3.5 ... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.3.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" [Setup] Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID} Check HTTP Response Status Code Is 204 Check HTTP Response Status Code Is 404 *** Keywords *** Loading @@ -136,18 +160,39 @@ Retrieve a list of list of measurement configurations Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement GET ${apiRoot}/${apiName}/${apiVersion}/measurements ${output}= Output response Set Suite Variable ${response} ${output} Create a new measurement configuration [Arguments] ${body} [Arguments] ${measurementId} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} POST ${apiRoot}/${apiName}/${apiVersion}/queries/measurements ${body} ${path} Catenate SEPARATOR= jsons/ MeasurementConfig.json ${body} Get File ${path} ${json_data}= Evaluate json.loads('''${body}''') json Set To Dictionary ${json_data} measurementId=${measurementId} ${modified_json_string}= Evaluate json.dumps(${json_data}) POST ${apiRoot}/${apiName}/${apiVersion}/measurements ${modified_json_string} ${output}= Output response Set Suite Variable ${response} ${output} Create a new measurement configuration from file [Arguments] ${filename} Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} ${path} Catenate SEPARATOR= jsons/ ${filename} .json ${body} Get File ${path} ${json_data}= Evaluate json.loads('''${body}''') json POST ${apiRoot}/${apiName}/${apiVersion}/measurements ${json_data} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -157,9 +202,9 @@ Retrieve a specified measurement configuration Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} GET ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -168,14 +213,13 @@ Update a specified measurement configuration Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} ${body} PUT ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${content} ${output}= Output response Set Suite Variable ${response} ${output} Delete a specified measurement configuration [Arguments] ${MEAS_CONF_ID} Should Be True ${PIC_MEC_SYSTEM} == 1 Loading @@ -183,7 +227,7 @@ Delete a specified measurement configuration Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} GET ${apiRoot}/${apiName}/${apiVersion}/queries/measurement/${MEAS_CONF_ID} DELETE ${apiRoot}/${apiName}/${apiVersion}/measurements/${MEAS_CONF_ID} ${output}= Output response Set Suite Variable ${response} ${output}
MEC028/WAI/MEAS/environment/variables.txt +3 −3 Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ ${apiName} wai ${apiVersion} v2 ${MEC-APP_SCHEMA} http ${MEC-APP_HOST} 127.0.0.1 ${MEC-APP_PORT} 8082 ${MEC-APP_HOST} mockoon ${MEC-APP_PORT} 3001 ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${STA_ID} 123 ${MEAS_ID} 456 ${MEAS_ID} 123 ${INVALID_MEASUREMENT_CONFIG_ID} 999 No newline at end of file
MEC028/WAI/MEAS/jsons/MeasurementConfig.json +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ "macId": "123" } ], "staIdentity": { "staId": "123" }, "measurementId": "123", "measurementInfo": { "measurementDuration": 10 Loading