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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
*** Settings ***
Documentation
... A test suite for validating Registration applications (REGAPPS) operations.
Resource ../../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Default Tags TC_MEC_SRV_REGAPPS
*** Test Cases ***
TP_MEC_MEC011_SRV_REGAPPS_001_OK_01
[Documentation]
... Check that the IUT acknowledges the registration
... by a MEC Application to the MEC platform
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfo
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
Check HTTP Response Body Json Schema Is AppInfo
Check Response Contains ${response['body']} appName ${APP_NAME}
TP_MEC_MEC011_SRV_REGAPPS_001_OK_02
[Documentation]
... Check that the IUT acknowledges the registration
... by a MEC Application to the MEC platform
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfo2
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
Check HTTP Response Body Json Schema Is AppInfo
Check Response Contains ${response['body']} appName ${APP_NAME}
Check Response Contains ${response['body']} appInstanceId ${APP_INSTANCE_ID}
TP_MEC_MEC011_SRV_REGAPPS_001_OK_03
[Documentation]
... Check that the IUT acknowledges the registration
... by a MEC Application to the MEC platform
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfo3
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
Check HTTP Response Body Json Schema Is AppInfo
Check Response Contains ${response['body']} appName ${APP_NAME}
Check Response Contains ${response['body']} appInstanceId ${APP_INSTANCE_ID}
Check Response Contains ${response['body']} appDId ${APPD_ID}
TP_MEC_MEC011_SRV_REGAPPS_001_BR_01
[Documentation]
... Check that the IUT responds with an error message when the IUT received a registration with
... missing fields from a MEC Application instantiated by the MEC platform
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR1
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_001_BR_02
[Documentation]
... Check that the IUT responds with an error message
... when the IUT received by a MEC Application registration with missing endpoint
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR2
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_001_BR_03
[Documentation]
... Check that the IUT responds with an error message when the IUT received by a
... MEC Application registration with unexpected appServiceRequired
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR3
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_001_BR_04
[Documentation]
... Check that the IUT responds with an error message when the IUT received by a
... MEC Application registration with unexpected appServiceRequired
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR4
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_001_BR_05
[Documentation]
... Check that the IUT responds with an error message when the IUT received by a
... MEC Application registration with unexpected appFeatureRequired
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR5
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_001_BR_06
[Documentation]
... Check that the IUT responds with an error message when the IUT received by a
... MEC Application registration with unexpected appFeatureOptional
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.13.3.4
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create a new MEC application instance profile AppInfoBR6
Check HTTP Response Status Code Is 400
TP_MEC_MEC011_SRV_REGAPPS_002_OK
[Documentation]
... Check that the IUT responds with the AppInfo description
... when queried by a MEC Application
...
... ETSI GS MEC 011 3.1.1, clause 7.2.14.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get MEC application instance profile ${APP_INSTANCE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is AppInfo
Check Response Contains ${response['body']} appInstanceId ${APP_INSTANCE_ID}
TP_MEC_MEC011_SRV_REGAPPS_002_NF
[Documentation]
... Check that the IUT responds with an error
... when it receives a request for returning an AppInfo with a wrong ID
...
... ETSI GS MEC 011 3.1.1, clause 7.2.14.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get MEC application instance profile ${NOT_EXISTING_APP_INSTANCE_ID}
Check HTTP Response Status Code Is 404
TP_MEC_MEC011_SRV_REGAPPS_003_OK
[Documentation]
... Check that the IUT responds with 204 No Content
... when queried to update MEC Application registration
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.14.3.2
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update MEC application registration ${APP_INSTANCE_ID} AppInfoUpdate
Check HTTP Response Status Code Is 204
TP_MEC_MEC011_SRV_REGAPPS_003_NF
[Documentation]
... Check that the IUT responds with 204 No Content
... when queried to update MEC Application registration
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.14.3.2
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update MEC application registration ${NOT_EXISTING_APP_INSTANCE_ID} AppInfoUpdate
Check HTTP Response Status Code Is 404
TP_MEC_MEC011_SRV_REGAPPS_004_OK
[Documentation]
... Check that the IUT responds with 204 No Content
... when queried to delete an existing MEC Application registration
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.14.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
Delete MEC application instance profile ${APP_INSTANCE_ID}
Check HTTP Response Status Code Is 204
TP_MEC_MEC011_SRV_REGAPPS_004_NF
[Documentation]
... Check that the IUT responds with an error when queried to
... delete an unknown MEC Application registration
...
... Reference ETSI GS MEC 011 3.1.1, clause 7.2.14.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
Delete MEC application instance profile ${NOT_EXISTING_APP_INSTANCE_ID}
Check HTTP Response Status Code Is 404
*** Keywords ***
Create a new MEC application instance profile
[Arguments] ${content}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
#Set Headers {"Content-Type":"*/*"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
Post ${apiRoot}/${apiName}/${apiVersion}/registrations ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Get MEC application instance profile
[Arguments] ${app_instance_id}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
#Set Headers {"Content-Type":"*/*"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/registrations/${app_instance_id}
${output}= Output response
Set Suite Variable ${response} ${output}
Update MEC application registration
[Arguments] ${app_instance_id} ${content}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
#Set Headers {"Content-Type":"*/*"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
Put ${apiRoot}/${apiName}/${apiVersion}/registrations/${app_instance_id} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Delete MEC application instance profile
[Arguments] ${app_instance_id}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
#Set Headers {"Content-Type":"*/*"}
Set Headers {"Authorization":"${TOKEN}"}
Delete ${apiRoot}/${apiName}/${apiVersion}/registrations/${app_instance_id}
${output}= Output response
Set Suite Variable ${response} ${output}