NSLCMOccurences.robot 7.76 KB
Newer Older
AHMADABB's avatar
AHMADABB committed
1
2
3
4
5
6
7
8
9
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
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
15
    ...    Reference: clause 6.4.9.3.1 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
16
17
18
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
19
	POST NS LCM OP Occurences
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
27
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
28
29
30
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
31
	GET NS LCN OP Occurences
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
40
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
41
42
43
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
44
	GET NS LCN OP Occurences 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
53
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
54
55
56
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
57
	GET NS LCN OP Occurences 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
66
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
67
68
69
70
71
72
73
74
75
76
77
78
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCN OP Occurences with all_fields attribute selector
	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
79
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
80
81
82
83
84
85
86
87
88
89
90
91
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCN OP Occurences with exclude_default attribute selector
	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
92
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
93
94
95
96
97
98
99
100
101
102
103
104
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCN OP Occurences with fields attribute selector
	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
105
    ...    Reference: clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
106
107
108
109
110
111
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCN OP Occurences with exclude_fields attribute selector
	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
aureliano sinatra's avatar
aureliano sinatra committed
114
    [Documentation]    Test ID: 5.3.2.8.5
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
118
    ...    Reference: clause 6.4.9.3.3 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
119
120
121
122
123
124
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PUT NS LCM OP Occurences
    Check HTTP Response Status Code Is    405

125
PATCH status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
126
    [Documentation]    Test ID: 5.3.2.8.6
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
130
    ...    Reference: clause 6.4.9.3.4 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
131
132
133
134
135
136
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH NS LCM OP Occurences
    Check HTTP Response Status Code Is    405

137
DELETE status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
138
    [Documentation]    Test ID: 5.3.2.8.7
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
142
    ...    Reference: clause 6.4.9.3.5 - ETSI GS NFV-SOL 005 [3] v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
143
144
145
146
147
148
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE NS LCM OP Occurences
    Check HTTP Response Status Code Is    405