Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
*** Settings ***
Documentation
... A test suite for validating Radio Node Location Lookup (RLOCLOOK) operations.
Resource ../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
Default Tags TC_MEC_SRV_RLOCLOOK
*** Test Cases ***
TC_MEC_SRV_ZOINFOLOOK_001_OK
[Documentation]
... TO BE COMPLETED
[Tags] PIC_MEC_PLAT PIC_SERVICES INCLUDE_UNDEFINED_SCHEMAS
Get the zones info location list
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ZoneList
TC_MEC_SRV_ZOINFOLOOK_002_OK
[Documentation]
... TO BE CMPLETED
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get the zone info location ${ZONE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ZoneInfo
Should Be Equal As Strings ${response['body']['zoneInfo']['zoneId']} ${ZONE_ID}
TC_MEC_SRV_ZOINFOLOOK_002_NF
[Documentation]
... TO BE CMPLETED
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get the zone info location ${NON_EXISTENT_ZONE_ID}
Check HTTP Response Status Code Is 404
*** Keywords ***
Get the zone info location
[Arguments] ${zoneId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/queries/zones/${zoneId}
${output}= Output response
Set Suite Variable ${response} ${output}
Get the zones info location list
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/queries/zones
${output}= Output response
Set Suite Variable ${response} ${output}