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
63
64
65
66
67
68
69
70
*** Settings ***
Documentation
... A test suite for validating Service Availability Query (SAQ) operations.
Resource ../../GenericKeywords.robot
Default Tags TP_MEC_SRV_SAQ
*** Variables ***
*** Test Cases ***
TP_MEC_SRV_SAQ_001_OK
[Documentation]
... Check that the IUT responds with a list of available MEC services
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.3.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfoList
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_SVC_URI}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ServiceInfoList
TP_MEC_SRV_SAQ_001_BR
[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 011 V2.0.9, clause 8.2.3.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_SVC_URI}?instance_id=__any_value__
Check HTTP Response Status Code Is 400
TP_MEC_SRV_SAQ_002_OK
[Documentation]
... Check that the IUT responds with the information on a specific service
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.4.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfoList
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_SVC_URI}/${SERVICE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ServiceInfoList
Check Result Contains ${response['body']['ServiceInfoList']} serInstanceId ${SERVICE_ID}
TP_MEC_SRV_SAQ_002_NF
[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 011 V2.0.9, clause 8.2.4.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_SVC_URI}/${NON_EXISTENT_SERVICE_ID}
Check HTTP Response Status Code Is 404