PlatUeInformationLookup.robot 2.22 KB
Newer Older
1
2
3
4
5
6
*** Settings ***

Documentation
...    A test suite for validating UE Information Lookup (UEINFOLOOK) 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_UEINFOLOOK
12
13
14
15


*** Test Cases ***

Elian Kraja's avatar
Elian Kraja committed
16
TC_MEC_SRV_UEINFOLOOK_001_OK
17
18
19
20
21
22
23
    [Documentation]
    ...    Check that the IUT responds with the information pertaining to one or more UEs in a particular location
    ...    when queried by a MEC Application
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.3
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList

Elian Kraja's avatar
Elian Kraja committed
24
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES   INCLUDE_UNDEFINED_SCHEMAS
Elian Kraja's avatar
Elian Kraja committed
25
    Get list of users with filter    address    ${ACR_ADDRESS}
26
    Check HTTP Response Status Code Is    200
Elian Kraja's avatar
Elian Kraja committed
27
    Check HTTP Response Body Json Schema Is    UserList
28
29


Elian Kraja's avatar
Elian Kraja committed
30
TC_MEC_SRV_UEINFOLOOK_001_BR
31
32
33
34
35
36
37
    [Documentation]
    ...    Check that the IUT responds with an error when
    ...    a request with incorrect parameters is sent by a MEC Application
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.3

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
Elian Kraja's avatar
Elian Kraja committed
38
    Get list of users with filter    addr    ${ACR_ADDRESS}
39
40
41
    Check HTTP Response Status Code Is    400


Elian Kraja's avatar
Elian Kraja committed
42
TC_MEC_SRV_UEINFOLOOK_001_NF
43
44
45
46
47
48
49
50
    [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.3
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
Elian Kraja's avatar
Elian Kraja committed
51
52
53
54
55
56
57
58
59
60
61
    Get list of users with filter    address    ${ACR_UNKNOWN_IP}
    Check HTTP Response Status Code Is    404
    
*** Keywords ***
Get list of users with filter   
    [Arguments]     ${key}   ${value}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/users?${key}=${value}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}