VNFDInIndividualVNFPackage.robot 18.1 KB
Newer Older
1
2
*** Settings ***
Library           JSONSchemaLibrary    schemas/
3
Resource          environment/variables.txt    # Generic Parameters
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
Get single file VNFD in Individual VNF Package in Plain Format
    [Documentation]    Test ID: 7.3.3.4.1
11
    ...    Test title: Get single file VNFD in Individual VNF Package in Plain Format
12
13
    ...    Test objective: The objective is to test the retrieval of the VNFD in plain format for an individual VNF package and perform a validation that returned content is in plain format
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
14
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
15
16
17
18
19
20
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a single file
    ...    Post-Conditions: none
    Get single file VNFD in Individual VNF Package in Plain Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    text/plain
21

22
23
24
25
26
Get VNFD in Individual VNF Package in Zip Format
    [Documentation]    Test ID: 7.3.3.4.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
27
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
28
29
30
31
32
33
    ...    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
34

35
36
37
Get single file VNFD in Individual VNF Package in Plain or Zip Format
    [Documentation]    Test ID: 7.3.3.4.3
    ...    Test title: Get single file VNFD in Individual VNF Package in Plain or Zip Format
38
    ...    Test objective: The objective is to test the retrieval of the single file VNFD for an individual VNF package when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that returned content is in Plain or Zip format
39
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
40
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
41
42
43
44
45
46
47
48
49
50
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a single file
    ...    Post-Conditions: none
    Get single file VNFD in Individual VNF Package in Plain or Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is Any of   text/plain    application/zip
    
Get multi file VNFD in Individual VNF Package in Plain or Zip Format
    [Documentation]    Test ID: 7.3.3.4.4
    ...    Test title: Get multi file VNFD in Individual VNF Package in Plain or Zip Format
51
    ...    Test objective: The objective is to test the retrieval of the multi file VNFD for an individual VNF package when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that returned content is in Zip format
52
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
53
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
54
55
56
57
58
59
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a multi file
    ...    Post-Conditions: none
    Get multi file VNFD in Individual VNF Package in Plain or Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    application/zip
60

61
62
63
64
65
Get VNFD in Individual VNF Package with invalid resource identifier
    [Documentation]    Test ID: 7.3.3.4.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 content fails when using an invalid resource identifier
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
66
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
67
68
69
70
71
    ...    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
72

73
74
75
76
77
Get VNFD in Individual VNF Package Content with conflict due to onboarding state
    [Documentation]    Test ID: 7.3.3.4.7
    ...    Test title: Get VNFD in Individual VNF Package Content with conflict due to onboarding state
    ...    Test objective: The objective is to test that the retrieval of the VNFD for an individual VNF package content 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
78
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
79
80
81
82
83
84
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get VNFD in Individual VNF Package Content with conflict due to onboarding state
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is   ProblemDetails
85

86
87
88
89
90
POST VNFD in Individual VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.8
    ...    Test title: POST VNFD in Individual VNF Package Content - 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
91
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
92
93
94
95
96
    ...    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
97

98
99
100
101
102
PUT VNFD in Individual VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.9
    ...    Test title: PUT VNFD in Individual VNF Package Content - 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
103
    ...    Reference: Clause 10.4.4.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
104
105
106
107
108
    ...    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
109

110
111
112
113
114
PATCH VNFD in Individual VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.10
    ...    Test title: PATCH VNFD in Individual VNF Package Content - 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
115
    ...    Reference: Clause 10.4.4.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1
116
117
118
119
120
121
122
123
124
125
126
    ...    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

DELETE VNFD in Individual VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.11
    ...    Test title: DELETE VNFD in Individual VNF Package Content - 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
127
    ...    Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
128
129
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
130
    ...    Post-Conditions: none
131
132
    Send DELETE Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
133

134
135
136
137
138
Get single file VNFD in Individual OnBoarded VNF Package in Plain Format
    [Documentation]    Test ID: 7.3.3.4.12
    ...    Test title: Get single file VNFD in Individual OnBoarded VNF Package in Plain Format
    ...    Test objective: The objective is to test the retrieval of the VNFD in plain format for an individual OnBoarded VNF package and perform a validation that returned content is in plain format
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
139
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
140
141
142
143
144
145
146
147
148
149
150
151
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a single file
    ...    Post-Conditions: none
    Get single file VNFD in Individual OnBoarded VNF Package in Plain Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    text/plain

Get VNFD in Individual OnBoarded VNF Package in Zip Format
    [Documentation]    Test ID: 7.3.3.4.13
    ...    Test title: Get VNFD in Individual OnBoarded VNF Package in Zip Format
    ...    Test objective: The objective is to test the retrieval of the VNFD in zip format for an individual OnBoarded 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
152
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
153
154
155
156
157
158
159
160
161
162
163
164
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get VNFD in Individual OnBoarded VNF Package in Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    application/zip

Get single file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    [Documentation]    Test ID: 7.3.3.4.14
    ...    Test title: Get single file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    ...    Test objective: The objective is to test the retrieval of the single file VNFD for an individual OnBoarded VNF package when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that returned content is in Plain or Zip format
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Najam UI Hassan's avatar
Najam UI Hassan committed
165
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
166
167
168
169
170
171
172
173
174
175
176
177
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a single file
    ...    Post-Conditions: none
    Get single file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is Any of   text/plain    application/zip
    
Get multi file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    [Documentation]    Test ID: 7.3.3.4.15
    ...    Test title: Get multi file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    ...    Test objective: The objective is to test the retrieval of the multi file VNFD for an individual OnBoarded VNF package when requesting Plain or Zip format to NFVO by including both formats in the request, 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
178
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
179
180
181
182
183
184
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a multi file
    ...    Post-Conditions: none
    Get multi file VNFD in Individual OnBoarded VNF Package in Plain or Zip Format
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    application/zip
185

186
187
188
189
190
Get VNFD in Individual OnBoarded VNF Package with invalid resource identifier
    [Documentation]    Test ID: 7.3.3.4.17
    ...    Test title: Get VNFD in Individual OnBoarded VNF Package with invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of the VNFD for an individual OnBoarded VNF package content fails when using an invalid resource identifier
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
191
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
192
193
194
195
196
197
198
199
200
201
202
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get VNFD in Individual OnBoarded VNF Package with invalid resource identifier
    Check HTTP Response Status Code Is    404

Get VNFD in Individual OnBoarded VNF Package Content with conflict due to onboarding state
    [Documentation]    Test ID: 7.3.3.4.18
    ...    Test title: Get VNFD in Individual OnBoarded VNF Package Content with conflict due to onboarding state
    ...    Test objective: The objective is to test that the retrieval of the VNFD for an individual OnBoarded VNF package content 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
203
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
204
205
206
207
208
209
210
211
212
213
214
215
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
   Get VNFD in Individual OnBoarded VNF Package Content with conflict due to onboarding state 
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is   ProblemDetails

POST VNFD in Individual OnBoarded VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.19
    ...    Test title: POST VNFD in Individual OnBoarded VNF Package Content - 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
216
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
217
218
219
220
221
222
223
224
225
226
227
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send POST Request for VNFD in individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405

PUT VNFD in Individual OnBoarded VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.20
    ...    Test title: PUT VNFD in Individual OnBoarded VNF Package Content - 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
228
    ...    Reference: Clause 10.4.4.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
229
230
231
232
233
234
235
236
237
238
239
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send PUT Request for VNFD in individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405

PATCH VNFD in Individual OnBoarded VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.21
    ...    Test title: PATCH VNFD in Individual OnBoarded VNF Package Content - 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
240
    ...    Reference: Clause 10.4.4.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1
241
242
243
244
245
246
247
248
249
250
251
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send PATCH Request for VNFD in individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405

DELETE VNFD in Individual OnBoarded VNF Package Content - Method not implemented
    [Documentation]    Test ID: 7.3.3.4.22
    ...    Test title: DELETE VNFD in Individual OnBoarded VNF Package Content - 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
252
    ...    Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
253
254
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
255
    ...    Post-Conditions: none
256
257
    Send DELETE Request for VNFD in individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405
258
259
260
261
262
263
    
Get multi file VNFD in Individual VNF Package with security information
    [Documentation]    Test ID: 7.3.3.4.23
    ...    Test title: Get multi file VNFD in Individual VNF Package with security information
    ...    Test objective: The objective is to test the retrieval of the multi file VNFD 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.
Najam UI Hassan's avatar
Najam UI Hassan committed
264
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
265
266
267
268
269
270
271
272
273
274
275
276
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a multi file
    ...    Post-Conditions: none
    Get multi file VNFD in Individual VNF Package with security information
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    application/zip
    
Get multi file VNFD in Individual OnBoarded VNF Package with security information
    [Documentation]    Test ID: 7.3.3.4.24
    ...    Test title: Get multi file VNFD in Individual OnBoarded VNF Package with security information
    ...    Test objective: The objective is to test the retrieval of the multi file VNFD for an individual OnBoarded 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.
Najam UI Hassan's avatar
Najam UI Hassan committed
277
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
278
279
280
281
282
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: The VNFD is implemented as a multi file
    ...    Post-Conditions: none
    Get multi file VNFD in Individual OnBoarded VNF Package with security information
    Check HTTP Response Status Code Is    200
283
    Check HTTP Response Header Content-Type Is    application/zip