Newer
Older
piscione
committed
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
''[Documentation] robot --outputdir ./outputs ./PlatformConfiguration.robot
... Test Suite to validate Platform Configuration operations.
*** Settings ***
Resource environment/variables.txt
Resource ../../../GenericKeywords.robot
Library REST ${MEPM_SCHEMA}://${MEPM_HOST}:${MEPM_PORT} ssl_verify=false
Library BuiltIn
Library OperatingSystem
*** Test Cases ***
TP_MEC_MEC010p2_MEPM_LCM_001_OK
[Documentation] TP_MEC_MEC010p2_MEPM_LCM_001_OK
... Check that MEC API provider has created the configuration information in AppD to the MEPM-V
... ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
... ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1 #ConfigPlatformForAppRequest
Request to configure Platform ${APP_INSTANCE_ID} ConfigPlatformForAppRequest
Check HTTP Response Status Code Is 202
Check Response Header contains Location
TP_MEC_MEC010p2_MEPM_LCM_001_BR
[Documentation] TP_MEC_MEC010p2_MEPM_LCM_001_BR
... Check that MEC API provider sends an error when it receives a malformed request for the configuration information in AppD to the MEPM-V
... ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
... ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1 #ConfigPlatformForAppRequest
Request to configure Platform ${APP_INSTANCE_ID} ConfigPlatformForAppRequestBadRequest
Check HTTP Response Status Code Is 400
TP_MEC_MEC010p2_MEPM_LCM_001_NF
[Documentation] TP_MEC_MEC010p2_MEPM_LCM_001_BR
... "Check that MEC API provider sends an error when it receives a request
... for the configuration information in AppD to the MEPM-V with not valid app instance ID
... ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
... ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1 #ConfigPlatformForAppRequest
Request to configure Platform ${NOT_EXISTING_APP_INSTANCE_ID} ConfigPlatformForAppRequest
Check HTTP Response Status Code Is 404
*** Keywords ***
Request to configure Platform
[Argument] ${appInstanceId} ${content}
Log Request to configure platform
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
Post ${apiRoot}/${apiName}/${apiVersion}/app_instances/${appInstanceId}/configure_platform_for_app ${body}
${output}= Output response
Set Suite Variable ${response} ${output}