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
*** Settings ***
Resource environment/variables.txt
Resource VnfLcmOperationKeywords.robot
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Suite Setup Check resource existence and get CallbackUri
*** Test Cases ***
VNF LCM Operation Occurrence Notification
[Documentation] Test ID: 6.3.5.20.1
... Test title: VNF LCM Operation Occurrence Start Notification
... Test objective: The objective is to test the POST request to callbackUri trigger VNF LCM Operation Occurrence Start Notification
... Pre-conditions: A subscription for VNF LCM Operation Occurrence notifications is available in the VNFM.
... Reference: Clause 5.4.20.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Post VNF LCM Operation Occurrence Notification
Check HTTP Response Status Code Is 204
VNF Identifier Creation Notification
[Documentation] Test ID: 6.3.5.20.2
... Test title: VNF Identifier Creation Notification
... Test objective: The objective is to test the POST request to callbackUri trigger VNF Identifier Creation Notification
... Pre-conditions: A subscription for VNF Identifier Creation Notification is available in the VNFM.
... Reference: Clause 5.4.20.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Post VNF Identifier Creation Notification
Check HTTP Response Status Code Is 204
VNF Identifier Deletion Notification
[Documentation] Test ID: 6.3.5.20.3
... Test title: VNF Identifier Deletion Notification
... Test objective: The objective is to test the POST request to callbackUri trigger VNF Identifier Deletion Notification
... Pre-conditions: A subscription for VNF Identifier Deletion Notification is available in the VNFM.
... Reference: Clause 5.4.20.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Post VNF Identifier Deletion Notification
Check HTTP Response Status Code Is 204
*** Keywords ***
Check resource existence and get CallbackUri
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
Integer response status 200
Validate Json response body Subscriptions.schema.json
Set Global Variable ${callbackResp} response body callbackUri