IndividualNSInstance.robot 3.75 KB
Newer Older
AHMADABB's avatar
AHMADABB committed
1
2
3
4
5
6
7
8
9
10
*** Settings ***
Resource   environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Suite Setup    Check resource existance

*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
11
12
Post Individual NSInstance - Method not implemented
    [Documentation]    Test ID: 5.3.2.2.1
aureliano sinatra's avatar
aureliano sinatra committed
13
    ...    Test title: Post Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
14
    ...    Test objective: The objective is to test that POST method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
15
16
17
18
19
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not created on the NFVO
AHMADABB's avatar
AHMADABB committed
20
    POST IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
21
22
23
    Check HTTP Response Status Code Is    405

Get Information about an individual NS Instance
aureliano sinatra's avatar
aureliano sinatra committed
24
    [Documentation]    Test ID: 5.3.2.2.2
aureliano sinatra's avatar
aureliano sinatra committed
25
    ...    Test title: Get Information about an individual NS Instance
26
    ...    Test objective: The objective is to test that GET method returns an individual NS instance
aureliano sinatra's avatar
aureliano sinatra committed
27
28
29
30
31
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.2 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
32
    GET IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
33
    Check HTTP Response Status Code Is    200
AHMADABB's avatar
AHMADABB committed
34
    Check HTTP Response Body Json Schema Is    NsInstance
AHMADABB's avatar
AHMADABB committed
35
36
    
PUT Individual NSInstance - Method not implemented 
aureliano sinatra's avatar
aureliano sinatra committed
37
    [Documentation]    Test ID: 5.3.2.2.3
aureliano sinatra's avatar
aureliano sinatra committed
38
    ...    Test title: PUT Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
39
    ...    Test objective: TThe objective is to test that PUT method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
40
41
42
43
44
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.3 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified on the NFVO
AHMADABB's avatar
AHMADABB committed
45
    PUT IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
46
47
48
    Check HTTP Response Status Code Is    405

PATCH Individual NSInstance - Method not implemented 
aureliano sinatra's avatar
aureliano sinatra committed
49
    [Documentation]    Test ID: 5.3.2.2.4
aureliano sinatra's avatar
aureliano sinatra committed
50
    ...    Test title: PATCH Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
51
    ...    Test objective: The objective is to test that PATCH method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
52
53
54
55
56
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.4 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified on the NFVO
AHMADABB's avatar
AHMADABB committed
57
    PATCH IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
58
59
60
    Check HTTP Response Status Code Is    405

DELETE Individual NSInstance
aureliano sinatra's avatar
aureliano sinatra committed
61
     [Documentation]    Test ID: 5.3.2.2.5
aureliano sinatra's avatar
aureliano sinatra committed
62
    ...    Test title: DELETE Individual NSInstance
aureliano sinatra's avatar
aureliano sinatra committed
63
    ...    Test objective: The objective is to test that DELETE method delete a not INSTANTIATED NS instance
64
    ...    Pre-conditions: NS instance is not INSTANTIATED .
aureliano sinatra's avatar
aureliano sinatra committed
65
66
67
68
    ...    Reference:  section 6.4.3.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is deleted from the NFVO
AHMADABB's avatar
AHMADABB committed
69
    DELETE IndividualNSInstance    
AHMADABB's avatar
AHMADABB committed
70
71
72
    Check HTTP Response Status Code Is    204

DELETE Individual NSInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
73
    [Documentation]    Test ID: 5.3.2.2.6
aureliano sinatra's avatar
aureliano sinatra committed
74
    ...    Test title: DELETE Individual NSInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
75
    ...    Test objective: The objective is to test that DELETE method can't delete an INSTANTIATED NS instance
aureliano sinatra's avatar
aureliano sinatra committed
76
    ...    Pre-conditions: one instance of a NS in INSTANTIATED state
aureliano sinatra's avatar
aureliano sinatra committed
77
78
79
    ...    Reference:  section 6.4.3.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
aureliano sinatra's avatar
aureliano sinatra committed
80
    ...    Post-Conditions: The NS instance is not deleted from the NFVO
AHMADABB's avatar
AHMADABB committed
81
    DELETE IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
82
    Check HTTP Response Status Code Is    409
AHMADABB's avatar
AHMADABB committed
83
    Check HTTP Response Body Json Schema Is    ProblemDetails