IndividualSubscription.robot 6.23 KB
Newer Older
1
2
*** Settings ***
Library           JSONSchemaLibrary    schemas/
3
Resource          environment/variables.txt    # Generic Parameters
Elian Kraja's avatar
Elian Kraja committed
4
Library           REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    ssl_verify=false
5
6
7
Library           OperatingSystem
Library           JSONLibrary
Resource          environment/individualSubscription.txt
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
8
Resource          VNFPerformanceManagementKeywords.robot
9
10

*** Test Cases ***
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
11
12
13
14
15
GET Individual VNF Performance Subscription
    [Documentation]    Test ID: 7.3.4.7.1
    ...    Test title: GET Individual VNF Performance Subscription
    ...    Test objective: The objective is to test the retrieval of individual VNF performance subscription and perform a JSON schema and content validation of the returned subscription data structure
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
16
    ...    Reference: clause 6.4.8.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
17
18
19
20
21
22
23
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual VNF Performance Subscription
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PmSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription
24

Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
25
26
27
28
29
GET Individual VNF Performance Subscription with invalid resource identifier
    [Documentation]    Test ID: 7.3.4.7.2
    ...    Test title: GET Individual VNF Performance Subscription with invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of an individual VNF performance subscription fails when using an invalid resource identifier
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
30
    ...    Reference: clause 6.4.8.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
31
32
33
34
35
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual VNF Performance Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404
36

Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
37
38
39
40
41
DELETE Individual VNF Performance Subscription
    [Documentation]    Test ID: 7.3.4.7.3
    ...    Test title: DELETE Individual VNF Performance Subscription
    ...    Test objective: The objective is to test the deletion of an individual VNF performance subscription
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
42
    ...    Reference: clause 6.4.8.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
43
44
45
46
47
48
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: The VNF Performance Subscription is not available anymore in the VNFM    
    Send Delete request for individual VNF Performance Subscription
    Check HTTP Response Status Code Is    204
    Check Postcondition VNF Performance Subscription is Deleted
49

Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
50
51
52
53
54
DELETE Individual VNF Performance Subscription with invalid resource identifier
    [Documentation]    Test ID: 7.3.4.7.4
    ...    Test title: DELETE Individual VNF Performance Subscription with invalid resource identifier
    ...    Test objective: The objective is to test that the deletion of an individual VNF performance subscription fails when using an invalid resource identifier
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
55
    ...    Reference: clause 6.4.8.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
56
57
58
59
60
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none   
    Send Delete request for individual VNF Performance Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404
61

Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
62
63
64
65
66
POST Individual VNF Performance Subscription - Method not implemented
    [Documentation]    Test ID: 7.3.4.7.5
    ...    Test title: POST Individual VNF Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create a new VNF Performance Subscription
    ...    Pre-conditions: A VNF instance is instantiated
67
    ...    Reference: clause 6.4.8.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
68
69
70
71
72
73
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: The VNF Performance Subscription is not created on the VNFM
    Send Post request for individual VNF Performance Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition VNF Performance Subscription is not Created
74

Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
75
76
77
78
79
PUT Individual VNF Performance Subscription - Method not implemented
    [Documentation]    Test ID: 7.3.4.7.6
    ...    Test title: PUT Individual VNF Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update an existing VNF Performance subscription
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
80
    ...    Reference: clause 6.4.8.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
81
82
83
84
85
86
87
88
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: The VNF Performance subscription is not modified by the operation
    Send Put request for individual VNF Performance Threshold
    Check HTTP Response Status Code Is    405
    Check Postcondition VNF Performance Subscription is Unmodified (Implicit)

PATCH Individual VNF Performance Subscription - Method not implemented
89
    [Documentation]    Test ID: 7.3.4.7.7
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
90
91
92
    ...    Test title: PATCH Individual VNF Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify an existing VNF Performance subscription
    ...    Pre-conditions: A VNF instance is instantiated. At least one VNF performance subscription is available in the VNFM.
93
    ...    Reference: clause 6.4.8.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
Giacomo Bernini's avatar
upd    
Giacomo Bernini committed
94
95
96
97
98
99
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: The VNF Performance subscription is not modified by the operation
    Send Patch request for individual VNF Performance Threshold
    Check HTTP Response Status Code Is    405
    Check Postcondition VNF Performance Subscription is Unmodified (Implicit)
100