NSLCMOccurences.robot 9.28 KB
Newer Older
AHMADABB's avatar
AHMADABB committed
1
2
3
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
4
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}     ssl_verify=false
AHMADABB's avatar
AHMADABB committed
5
6
7
8
9
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
10
POST NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
11
    [Documentation]    Test ID: 5.3.2.8.1
aureliano sinatra's avatar
aureliano sinatra committed
12
    ...    Test title: POST NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
13
14
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
15
    ...    Reference: Clause 6.4.9.3.1 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
16
17
18
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
19
	POST NS LCM OP Occurrences
AHMADABB's avatar
AHMADABB committed
20
21
	Check HTTP Response Status Code Is    405

22
GET status information about multiple NS LCM occurrences   
aureliano sinatra's avatar
aureliano sinatra committed
23
     [Documentation]    Test ID: 5.3.2.8.2
24
    ...    Test title: GET status information about multiple NS LCM occurrences
25
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
26
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
27
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
28
29
30
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
31
	GET NS LCM OP Occurrences
AHMADABB's avatar
AHMADABB committed
32
	Check HTTP Response Status Code Is    200
AHMADABB's avatar
AHMADABB committed
33
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs
AHMADABB's avatar
AHMADABB committed
34

35
GET status information about multiple NS LCM occurrences Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
36
    [Documentation]    Test ID: 5.3.2.8.3
37
    ...    Test title: GET status information about multiple NS LCM occurrences Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
38
    ...    Test objective: The objective is to test that GET method fail because of wrong query parameter
39
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid filter parameter
Michele Carignani's avatar
Michele Carignani committed
40
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
41
42
43
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
44
	GET NS LCM OP Occurrences Invalid attribute-based filtering parameters
AHMADABB's avatar
AHMADABB committed
45
	Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
46
	Check HTTP Response Body Json Schema Is    ProblemDetails
AHMADABB's avatar
AHMADABB committed
47

48
GET status information about multiple NS LCM occurrences Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
49
    [Documentation]    Test ID: 5.3.2.8.4
50
    ...    Test title: GET status information about multiple NS LCM occurrences Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
51
    ...    Test objective: The objective is to test that GET method fail because of wrong attributes selector
52
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid attribute selector
Michele Carignani's avatar
Michele Carignani committed
53
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
54
55
56
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
57
	GET NS LCM OP Occurrences Invalid attribute selector
AHMADABB's avatar
AHMADABB committed
58
	Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
59
	Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed
60
61
62
63
64
65

GET status information about multiple NS LCM occurrences with "all_fields"   
     [Documentation]    Test ID: 5.3.2.8.5
    ...    Test title: GET status information about multiple NS LCM occurrences with "all_fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
66
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
67
68
69
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
70
	Get NS LCM OP Occurrences with all_fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
71
72
73
74
75
76
77
78
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "exclude_default"   
     [Documentation]    Test ID: 5.3.2.8.6
    ...    Test title: GET status information about multiple NS LCM occurrences with "exclude_default"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
79
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
80
81
82
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
83
	Get NS LCM OP Occurrences with exclude_default attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
84
85
86
87
88
89
90
91
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "fields"   
     [Documentation]    Test ID: 5.3.2.8.7
    ...    Test title: GET status information about multiple NS LCM occurrences with "fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
92
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
93
94
95
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
96
	Get NS LCM OP Occurrences with fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
97
98
99
100
101
102
103
104
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "exclude_fields"   
     [Documentation]    Test ID: 5.3.2.8.8
    ...    Test title: GET status information about multiple NS LCM occurrences with "exclude_fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
105
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
106
107
108
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
109
	Get NS LCM OP Occurrences with exclude_fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
110
111
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs
aureliano sinatra's avatar
aureliano sinatra committed
112

113
PUT status information about multiple NS LCM occurrences - Method not implemented
114
    [Documentation]    Test ID: 5.3.2.8.9
115
    ...    Test title: PUT status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
116
117
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
118
    ...    Reference: Clause 6.4.9.3.3 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
119
120
121
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
122
    PUT NS LCM OP Occurrences
aureliano sinatra's avatar
aureliano sinatra committed
123
124
    Check HTTP Response Status Code Is    405

125
PATCH status information about multiple NS LCM occurrences - Method not implemented
126
    [Documentation]    Test ID: 5.3.2.8.10
127
    ...    Test title: PATCH status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
128
129
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
130
    ...    Reference: Clause 6.4.9.3.4 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
131
132
133
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
134
    PATCH NS LCM OP Occurrences
aureliano sinatra's avatar
aureliano sinatra committed
135
136
    Check HTTP Response Status Code Is    405

137
DELETE status information about multiple NS LCM occurrences - Method not implemented
138
    [Documentation]    Test ID: 5.3.2.8.11
139
    ...    Test title: DELETE status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
140
141
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
142
    ...    Reference: Clause 6.4.9.3.5 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
143
144
145
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
146
    DELETE NS LCM OP Occurrences
aureliano sinatra's avatar
aureliano sinatra committed
147
148
    Check HTTP Response Status Code Is    405
    
149
150
151
152
153
GET status information about multiple NS LCM occurrences as Paged Response 
     [Documentation]    Test ID: 5.3.2.8.12
    ...    Test title: GET status information about multiple NS LCM occurrences as Paged Reponse
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS as paged response.
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
154
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
155
156
157
158
159
160
161
162
163
164
165
166
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences
	Check HTTP Response Status Code Is    200
	Check LINK in Header

GET status information about multiple NS LCM occurrences - Bad Request Response too Big
    [Documentation]    Test ID: 5.3.2.8.13
    ...    Test title: GET status information about multiple NS LCM occurrences - Bad Request Response too Big
    ...    Test objective: The objective is to test that GET method fail because response is too big, and perform the JSON schema validation of the failed operation HTTP response. 
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid filter parameter
Michele Carignani's avatar
Michele Carignani committed
167
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
168
169
170
171
172
173
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences
	Check HTTP Response Status Code Is    400
	Check HTTP Response Body Json Schema Is    ProblemDetails