VNFInstances.robot 4.37 KB
Newer Older
1
2
*** Settings ***
# Suite setup     Expect spec    SOL003-VNFLifecycleManagement-API.yaml
3
Resource    environment/configuration.txt
4
Resource    environment/variables.txt 
5
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
aureliano sinatra's avatar
aureliano sinatra committed
6
Resource    VnfLcmMntOperationKeywords.robot
7
8
9
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
10

Elian Kraja's avatar
Elian Kraja committed
11
*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
12
13
POST Create a new vnfInstance
    [Documentation]    Test ID: 7.3.1.1.1
mengxuan.zhao's avatar
mengxuan.zhao committed
14
15
    ...    Test title: Create a VNF instance
    ...    Test objective: The objective is to create a new VNF instance resource
16
    ...    Pre-conditions: none
mengxuan.zhao's avatar
mengxuan.zhao committed
17
18
19
20
    ...    Reference: section 5.4.2.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: VNF instance created
aureliano sinatra's avatar
aureliano sinatra committed
21
22
23
    POST Create a new vnfInstance
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    vnfInstance
24
25

Get information about multiple VNF instances  
aureliano sinatra's avatar
aureliano sinatra committed
26
    [Documentation]    Test ID: 7.3.1.1.2
mengxuan.zhao's avatar
mengxuan.zhao committed
27
28
29
30
31
32
33
    ...    Test title: Get information about multiple VNF instances
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
34
35
36
    GET multiple vnfInstances
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances
37
38

Get information about multiple VNF instances Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
39
    [Documentation]    Test ID: 7.3.1.1.3
mengxuan.zhao's avatar
mengxuan.zhao committed
40
41
42
43
44
45
46
    ...    Test title: Get information about multiple VNF instances - Invalid attribute-based filtering parameters
    ...    Test objective: The objective is to query information about multiple VNF instances with Invalid attribute-based filtering parameters
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
47
48
49
50
    GET multiple vnfInstances with bad attribute
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
51
52

Get information about multiple VNF instances Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
53
    [Documentation]    Test ID: 7.3.1.1.4
mengxuan.zhao's avatar
mengxuan.zhao committed
54
55
56
57
58
59
60
    ...    Test title: Get information about multiple VNF instances - Invalid attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances with Invalid attribute selector
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
61
62
63
    GET multiple vnfInstances with bad filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
64
    
aureliano sinatra's avatar
aureliano sinatra committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
PUT multiples VNFInstances - Method not implemented
    [Documentation]    Test ID: 7.3.1.1.5
    ...    Test title: PUT multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.3 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    PUT multiple vnfInstances
	Check HTTP Response Status Code Is    405
	
PATCH multiples VNFInstances - Method not implemented
    [Documentation]    Test ID: 7.3.1.1.6
    ...    Test title: PATCH multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    PATCH multiple vnfInstances
	Check HTTP Response Status Code Is    405
88
89

DELETE VNFInstances - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
90
91
92
93
94
95
96
97
98
99
    [Documentation]    Test ID: 7.3.1.1.7
    ...    Test title: DELETE multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions:  
    ...    Reference: section 5.4.2.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    DELETE multiple vnfInstances
	Check HTTP Response Status Code Is    405