ScaleNSTask.robot 3.64 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
POST Scale a nsInstance
aureliano sinatra's avatar
aureliano sinatra committed
12
    [Documentation]    Test ID: 5.3.2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
13
    ...    Test title: POST Scale a nsInstance
14
    ...    Test objective: The objective is to test that POST method scales NS instance
15
    ...    Pre-conditions: the resource is in NOT_INSTANTIATED state
aureliano sinatra's avatar
aureliano sinatra committed
16
17
18
    ...    Reference:  section 6.4.5.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
19
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
20
    POST scale nsInstance
AHMADABB's avatar
AHMADABB committed
21
22
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
aureliano sinatra's avatar
aureliano sinatra committed
23
24
    Check resource existance
    
aureliano sinatra's avatar
aureliano sinatra committed
25
POST Instantiate a nsInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
26
    [Documentation]    Test ID: 5.3.2.4.2
aureliano sinatra's avatar
aureliano sinatra committed
27
    ...    Test title: POST Instantiate a nsInstance Conflict
28
    ...    Test objective: The objective is to test that POST method can't scale NS instance because of conflict in resource status (i.e. because the resource is in not in NOT_INSTANTIATED state)
29
    ...    Pre-conditions: the resource is in not in NOT_INSTANTIATED state
aureliano sinatra's avatar
aureliano sinatra committed
30
31
32
    ...    Reference:  section 6.4.5.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
33
    ...    Post-Conditions: The Scale NS operation is not triggered on the NFVO
AHMADABB's avatar
AHMADABB committed
34
    POST scale nsInstance
AHMADABB's avatar
AHMADABB committed
35
    Check HTTP Response Status Code Is    409
AHMADABB's avatar
AHMADABB committed
36
    Check HTTP Response Body Json Schema Is    ProblemDetails
AHMADABB's avatar
AHMADABB committed
37
38
    
GET Scale NSInstance- Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
39
     [Documentation]    Test ID: 5.3.2.4.3
aureliano sinatra's avatar
aureliano sinatra committed
40
    ...    Test title: GET Scale NSInstance- Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
41
42
43
44
45
46
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.2 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
47
    GET scale NSInstance
AHMADABB's avatar
AHMADABB committed
48
49
50
    Check HTTP Response Status Code Is    405
    
PUT Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
51
     [Documentation]    Test ID: 5.3.2.4.4
aureliano sinatra's avatar
aureliano sinatra committed
52
    ...    Test title: PUT Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
53
54
55
56
57
58
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.3 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
59
    PUT scale NSInstance
AHMADABB's avatar
AHMADABB committed
60
61
62
    Check HTTP Response Status Code Is    405
    
PATCH Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
63
    [Documentation]    Test ID: 5.3.2.4.5
aureliano sinatra's avatar
aureliano sinatra committed
64
    ...    Test title: PATCH Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
65
66
67
68
69
70
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.4 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
71
    PATCH scale NSInstance
AHMADABB's avatar
AHMADABB committed
72
73
74
    Check HTTP Response Status Code Is    405

DELETE Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
75
    [Documentation]    Test ID: 5.3.2.4.6
aureliano sinatra's avatar
aureliano sinatra committed
76
    ...    Test title: DELETE Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
77
78
79
80
81
82
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
83
    DELETE scale NSInstance
AHMADABB's avatar
AHMADABB committed
84
85
86
    Check HTTP Response Status Code Is    405