IndividualVnfLcmOperationOccurence.robot 3.67 KB
Newer Older
1
*** Settings ***
2
Resource    environment/configuration.txt
3
Resource    environment/variables.txt 
4
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
5
6
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
7
Resource    VnfLcmMntOperationKeywords.robot
8
9

*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
10
Post Individual VNF LCM Operation occurrences - Method not implemented
11
    [Documentation]    Test ID: 7.3.1.12.1
aureliano sinatra's avatar
aureliano sinatra committed
12
    ...    Test title: Post Individual VNF LCM Operation occurrences - Method not implemented
13
14
15
16
17
18
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.13.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
aureliano sinatra's avatar
aureliano sinatra committed
19
    Post Individual VNF LCM Operation occurrences
20
21
    Check HTTP Response Status Code Is    405
    
aureliano sinatra's avatar
aureliano sinatra committed
22
Get information about multiple VNF instances 
23
    [Documentation]    Test ID: 7.3.1.12.2
aureliano sinatra's avatar
aureliano sinatra committed
24
25
    ...    Test title: Get information about multiple VNF instances
    ...    Test objective: The objective is to test that this method retrieve information about a VNF lifecycle management operation occurrence 
26
27
28
29
30
31
32
33
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.13.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get multiple VNF instances
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    VnfLcmOpOcc 
34

aureliano sinatra's avatar
aureliano sinatra committed
35
PUT Individual VNF LCM Operation occurrences - Method not implemented
36
    [Documentation]    Test ID: 7.3.1.12.3
aureliano sinatra's avatar
aureliano sinatra committed
37
    ...    Test title: PUT Individual VNF LCM Operation occurrences - Method not implemented
38
39
40
41
42
43
44
45
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.13.3.3 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    Put multiple VNF instances
    Check HTTP Response Status Code Is    405
46

aureliano sinatra's avatar
aureliano sinatra committed
47
PATCH Individual VNF LCM Operation occurrences - Method not implemented 
48
    [Documentation]    Test ID: 7.3.1.12.4
aureliano sinatra's avatar
aureliano sinatra committed
49
    ...    Test title: PATCH Individual VNF LCM Operation occurrences - Method not implemented
50
51
52
53
54
55
56
57
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.13.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none      
    Patch multiple VNF instances
    Check HTTP Response Status Code Is    405
58
    
aureliano sinatra's avatar
aureliano sinatra committed
59
 DELETE Individual VNF LCM Operation occurrences - Method not implemented
60
    [Documentation]    Test ID: 7.3.1.12.5
aureliano sinatra's avatar
aureliano sinatra committed
61
    ...    Test title: DELETE Individual VNF LCM Operation occurrences - Method not implemented
62
63
64
65
66
67
68
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.13.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    Delete multiple VNF instances
Giacomo Bernini's avatar
Giacomo Bernini committed
69
70
71
72
73
74
75
76
77
78
79
    Check HTTP Response Status Code Is    405
    
*** Keywords ***
Get multiple VNF instances	
    Log    Query status information about multiple VNF lifecycle management operation occurrences.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query and validate response
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}