VNFDInIndividualVNFPackage.robot 7.26 KB
Newer Older
1
2
*** Settings ***
Library           JSONSchemaLibrary    schemas/
Najam UI Hassan's avatar
Najam UI Hassan committed
3
Resource          environment/variables.txt
4
Resource          VNFPackageManagementKeywords.robot    
5
Library           JSONLibrary
Elian Kraja's avatar
Elian Kraja committed
6
Library           REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}    ssl_verify=false
7
8

*** Test Cases ***
9
10
11
12
13
14
15
16
17
18
19
Void
     [Documentation]    Test ID: 5.3.5.3.1
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void

20
21
22
23
24
Get VNFD in Individual VNF Package in Zip Format
    [Documentation]    Test ID: 5.3.5.3.2
    ...    Test title: Get VNFD in Individual VNF Package in Zip Format
    ...    Test objective: The objective is to test the retrieval of the VNFD in zip format for an individual VNF package and perform a validation that returned content is in zip format
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
25
    ...    Reference: Clause 9.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
26
27
28
29
30
31
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get VNFD in Individual VNF Package in Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    application/zip
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
Void
     [Documentation]    Test ID: 5.3.5.3.3
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void
    
Void
     [Documentation]    Test ID: 5.3.5.3.4
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void
    
Void
     [Documentation]    Test ID: 5.3.5.3.5
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void


67
68
69
70
71
Get VNFD in Individual VNF Package with invalid resource identifier
    [Documentation]    Test ID: 5.3.5.3.6
    ...    Test title: Get VNFD in Individual VNF Package with invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of the VNFD for an individual VNF Package fails when using an invalid resource identifier
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
72
    ...    Reference: Clause 9.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
73
74
75
76
77
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get VNFD in Individual VNF Package with invalid resource identifier
    Check HTTP Response Status Code Is    404
78
    Check HTTP Response Body Json Schema Is   ProblemDetails
79

80
81
82
83
84
Get VNFD in Individual VNF Package with conflict due to onboarding state
    [Documentation]    Test ID: 5.3.5.3.7
    ...    Test title: Get VNFD in Individual VNF Package with conflict due to onboarding state
    ...    Test objective: The objective is to test that the retrieval of the VNFD for an individual VNF Package fails due to a conflict when the VNF Package is not in onboarding state ONBOARDED in the NFVO. The test also performs a validation of the JSON schema validation of the failed operation HTTP response
    ...    Pre-conditions: The onboarding state of the VNF package for which the VNFD is requested is different from ONBOARDED.
Najam UI Hassan's avatar
Najam UI Hassan committed
85
    ...    Reference: Clause 9.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
86
87
88
89
90
91
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get VNFD in Individual VNF Package with conflict due to onboarding state
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is   ProblemDetails
92

93
94
95
96
97
POST VNFD in Individual VNF Package - Method not implemented
    [Documentation]    Test ID: 5.3.5.3.8
    ...    Test title: POST VNFD in Individual VNF Package - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create new VNFD
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
98
    ...    Reference: Clause 9.4.4.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1
99
100
101
102
103
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send POST Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
104

105
106
107
108
109
PUT VNFD in Individual VNF Package - Method not implemented
    [Documentation]    Test ID: 5.3.5.3.9
    ...    Test title: PUT VNFD in Individual VNF Package - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to modify a VNFD
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
110
    ...    Reference: Clause 9.4.4.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
111
112
113
114
115
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send PUT Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
116

117
118
119
120
121
PATCH VNFD in Individual VNF Package - Method not implemented
    [Documentation]    Test ID: 5.3.5.3.10
    ...    Test title: PATCH VNFD in Individual VNF Package - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to update a VNFD
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
122
    ...    Reference: Clause 9.4.4.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
123
124
125
126
127
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send PATCH Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
128

129
130
131
132
133
DELETE VNFD in Individual VNF Package - Method not implemented
    [Documentation]    Test ID: 5.3.5.3.11
    ...    Test title: DELETE VNFD in Individual VNF Package - Method not implemented
    ...    Test objective: The objective is to test that DELETE  method is not allowed to delete a VNFD
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
134
    ...    Reference: Clause 9.4.4.3.5 - ETSI GS NFV-SOL 005 [3] v2.7.1
135
136
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
137
    ...    Post-Conditions: none
138
139
    Send DELETE Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
140
141
142
143
144
145
146
147
148
149
150
151
    
Get VNFD in Individual VNF Package with security information
    [Documentation]    Test ID: 5.3.5.3.12
    ...    Test title: Get VNFD in Individual VNF Package with security information
    ...    Test objective: The objective is to test the retrieval of the VNFD in zip format for an individual VNF package shall include in the ZIP archive the security information when requested with "include_signature" parameter, and perform a validation that returned content is in zip format
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 9.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get VNFD in Individual VNF Package with security information
    Check HTTP Response Status Code Is    200
152
153
154
155
156
157
    Check HTTP Response Header Content-Type Is    application/zip
    
*** Keywords ***

Void
    log    do nothing