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

*** Test Cases ***
10
11
Get single file VNFD in Individual VNF Package in Plain Format
    [Documentation]    Test ID: 7.3.3.4.1
12
    ...    Test title: Get single file VNFD in Individual VNF Package in Plain Format
13
14
    ...    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.
15
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
16
17
18
19
20
21
    ...    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
22

23
24
25
26
27
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.
28
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
29
30
31
32
33
34
    ...    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
35

36
37
38
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
39
    ...    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
40
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
41
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
42
43
44
45
46
47
48
49
50
51
    ...    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
52
    ...    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
53
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
54
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
55
56
57
58
59
60
    ...    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
61

62
63
64
65
66
Get multi file VNFD in Individual VNF Package in Plain Format
    [Documentation]    Test ID: 7.3.3.4.5
    ...    Test title: Get multi file VNFD in Individual VNF Package in Plain Format
    ...    Test objective: The objective is to test that the retrieval of the multi file VNFD for an individual VNF package fails when requesting it in Plain format, and perform a validation of the JSON schema validation of the failed operation HTTP response
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
67
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
68
69
70
71
72
73
    ...    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 Format
    Check HTTP Response Status Code Is    406
    Check HTTP Response Body Json Schema Is   ProblemDetails
74

75
76
77
78
79
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
80
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
81
82
83
84
85
    ...    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
86

87
88
89
90
91
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.
92
    ...    Reference: clause 10.4.4.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
93
94
95
96
97
98
    ...    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
99

100
101
102
103
104
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
105
    ...    Reference: clause 10.4.4.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
106
107
108
109
110
    ...    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
111

112
113
114
115
116
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.
117
    ...    Reference: clause 10.4.4.3.3 - ETSI GS NFV-SOL 003 [1] v2.4.1
118
119
120
121
122
    ...    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
123

124
125
126
127
128
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.
129
    ...    Reference: clause 10.4.4.3.4 - ETSI GS NFV-SOL 003 [1] v2.4.1
130
131
132
133
134
135
136
137
138
139
140
    ...    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.
141
    ...    Reference: clause 10.4.4.3.5 - ETSI GS NFV-SOL 003 [1] v2.4.1
142
143
144
145
146
147
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The VNFD is not deleted by the failed operation
    Send DELETE Request for VNFD in individual VNF Package
    Check HTTP Response Status Code Is    405
    Check Postcondition VNFD Exist
148

149