Newer
Older
Resource environment/configuration.txt
Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Resource VnfLcmMntOperationKeywords.robot
*** Test Cases ***
POST Create a new subscription
[Documentation] Test ID: 7.3.1.17.1
... Test title: POST Create a new subscription
... Test objective: The POST method creates a new subscription
... Pre-conditions: none
... Reference: section 5.4.18.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: in response header Location shall not be null
Post Create subscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Subscription
[Documentation] Test ID: 7.3.1.17.2
... Test title: POST Create a new subscription - DUPLICATION
... Test objective: The POST method creates a duplicate subscription
... Pre-conditions: none
... Reference: section 5.4.18.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: The VNFM support the creation of duplicated subscriptions
... Post-Conditions: in response header Location shall not be null
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Subscription
[Documentation] Test ID: 7.3.1.17.3
... Test title: POST Create a new subscription - NO-DUPLICATION
... Test objective: The POST method can't create a duplicate subscription
... Pre-conditions: none
... Reference: section 5.4.18.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: The VNFM does not support the creation of duplicated subscriptions
... Post-Conditions: in response header Location shall not be null
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is 303
[Documentation] Test ID: 7.3.1.17.4
... Test title: GET Subscriptions
... Test objective: The objective is Get the list of active subscriptions
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
[Documentation] Test ID: 7.3.1.17.5
... Test title: GET Subscriptions - Filter
... Test objective: The objective is Get the list of active subscriptions using a filter
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions - filter
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
GET subscriptions - Bad Request Invalid attribute-based filtering parameters
[Documentation] Test ID: 7.3.1.17.6
... Test title: GET subscriptions - Bad Request Invalid attribute-based filtering parameters
... Test objective: The objective is Get the list of active subscriptions using an invalid filter
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions - invalid filter
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
GET subscriptions with all_fields attribute selector
[Documentation] Test ID: 7.3.1.17.7
... Test title: GET subscriptions with all_fields attribute selector
... Test objective: The objective is Get the list of active subscriptions
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions with all_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
GET subscriptions with exclude_default attribute selector
[Documentation] Test ID: 7.3.1.17.8
... Test title: GET subscriptions with exclude_default attribute selector
... Test objective: The objective is Get the list of active subscriptions
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions with exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
GET subscriptions with fields attribute selector
[Documentation] Test ID: 7.3.1.17.9
... Test title: GET subscriptions with fields attribute selector
... Test objective: The objective is Get the list of active subscriptions
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions with fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
GET subscriptions with exclude_fields attribute selector
[Documentation] Test ID: 7.3.1.17.10
... Test title: GET subscriptions with exclude_fields attribute selector
... Test objective: The objective is Get the list of active subscriptions
... Pre-conditions: none
... Reference: section 5.4.18.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get subscriptions with exclude_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Subscriptions
... Test title: PUT subscriptions - Method not implemented
... Test objective: The objective is to test that PUT method is not implemented
... Pre-conditions: none
... Reference: section 5.4.18.3.3 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
PUT subscriptions
Check HTTP Response Status Code Is 405
... Test title: PATCH subscriptions - Method not implemented
... Test objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
... Reference: section 5.4.18.3.4 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
PATCH subscriptions
Check HTTP Response Status Code Is 405
... Test title: DELETE subscriptions - Method not implemented
... Test objective: The objective is to test that DELETE method is not implemented
... Pre-conditions: none
... Reference: section 5.4.18.3.5 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
DELETE subscriptions
Check HTTP Response Status Code Is 405