PlatRadioNodeLocation.robot 1.78 KB
Newer Older
1
2
3
4
5
6
*** Settings ***

Documentation
...    A test suite for validating Radio Node Location Lookup (RLOCLOOK) operations.

Resource    ../../GenericKeywords.robot
Elian Kraja's avatar
Elian Kraja committed
7
8
9
Resource    environment/variables.txt
Library     REST    ${SCHEMA}://${HOST}:${PORT}    ssl_verify=false
Library     OperatingSystem 
10

Elian Kraja's avatar
Elian Kraja committed
11
Default Tags    TC_MEC_SRV_RLOCLOOK
12
13
14
15


*** Test Cases ***

Elian Kraja's avatar
Elian Kraja committed
16
TC_MEC_SRV_RLOCLOOK_001_OK
17
18
19
20
21
22
23
24
    [Documentation]
    ...    Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node
    ...    when queried by a MEC Application
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.7
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
Elian Kraja's avatar
Elian Kraja committed
25
    Get the access points list        ${ZONE_ID}
26
    Check HTTP Response Status Code Is    200
Elian Kraja's avatar
Elian Kraja committed
27
    Check HTTP Response Body Json Schema Is    AccessPointList
Elian Kraja's avatar
Elian Kraja committed
28
    Should Be Equal As Strings    ${response['body']['accessPointList']['zoneId']}	${ZONE_ID}
29
30


Elian Kraja's avatar
Elian Kraja committed
31
TC_MEC_SRV_RLOCLOOK_001_NF
32
33
34
35
36
37
38
    [Documentation]
    ...    Check that the IUT responds with an error when
    ...    a request for an unknown URI is sent by a MEC Application
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.7

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
Elian Kraja's avatar
Elian Kraja committed
39
    Get the access points list        ${NON_EXISTENT_ZONE_ID}
40
    Check HTTP Response Status Code Is    404
Elian Kraja's avatar
Elian Kraja committed
41
42
43
44
45
46
47
48
49
50
    

*** Keywords ***
Get the access points list 
    [Arguments]    ${zoneId}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/zones/${zoneId}/accessPoints
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}