Commit 06424e3d authored by Mudassar Khan's avatar Mudassar Khan Committed by Giacomo Bernini
Browse files

implement OAuth scope test for VNFLCM API of SOL002

parent 44813e55
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -96,6 +96,30 @@ DELETE Cancel operation task - Method not implemented
    ...    Post-Conditions: none 
    DELETE Cancel operation task
	Check HTTP Response Status Code Is    405
Post Cancel operation task with permitted authorization scope
    [Documentation]    Test ID: 6.3.5.16.8
    ...    Test title: POST Cancel operation task with permitted authorization scope
    ...    Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e. the "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Pre-conditions: the "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: the resource is in FAILED_TEMP state    
    POST Cancel operation task with permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check operation resource state is FAILED_TEMP
Post Cancel operation task with not permitted authorization scope
    [Documentation]    Test ID: 6.3.5.16.9
    ...    Test title: POST Cancel operation task with not permitted authorization scope
    ...    Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e. the "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Pre-conditions: the "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: the resource is in FAILED_TEMP state    
    POST Cancel operation task with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
+24 −0
Original line number Diff line number Diff line
@@ -81,6 +81,30 @@ DELETE Change current VNF Package Task - Method not implemented
    ...    Post-Conditions: none 
    DELETE Change Current VNF Package Task
    Check HTTP Response Status Code Is    405
POST Change current VNF Package Task with permitted authorization scope
    [Documentation]    Test ID: 6.3.5.22.7
    ...    Test title: POST Change current VNF Package Task with permitted authorization scope
    ...    Test objective: The objective is to test that the POST method changes the current VNF package on which the VNF instance is based.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change Current VNF Package Task with permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
POST Change current VNF Package Task with not permitted authorization scope
    [Documentation]    Test ID: 6.3.5.22.8
    ...    Test title: POST Change current VNF Package Task with not permitted authorization scope
    ...    Test objective: The objective is to test that the POST method changes the current VNF package on which the VNF instance is based.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change Current VNF Package Task with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
+24 −0
Original line number Diff line number Diff line
@@ -81,6 +81,30 @@ POST Change external VNF connectivity Conflict
    POST Change External VNF Connectivity
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails 
POST Change external VNF connectivity with permitted authorization scope
    [Documentation]    Test ID: 6.3.5.10.7
    ...    Test title: POST Change external VNF connectivity with permitted authorization value
    ...    Test objective: The objective is to test that POST method triggers a change in VNF external connectivity
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change External VNF Connectivity with permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
POST Change external VNF connectivity with not permitted authorization scope
    [Documentation]    Test ID: 6.3.5.10.8
    ...    Test title: POST Change external VNF connectivity with not permitted authorization value
    ...    Test objective: The objective is to test that POST method triggers a change in VNF external connectivity
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change External VNF Connectivity with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
+25 −0
Original line number Diff line number Diff line
@@ -94,6 +94,31 @@ DELETE Change deployment flavour VNFInstance - Method not implemented
    ...    Post-Conditions: none 
    DELETE Change VNF deployment flavour   
    Check HTTP Response Status Code Is    405
POST Change deployment flavour of a vnfInstance with permited authorization scope
    [Documentation]    Test ID: 6.3.5.6.8
    ...    Test title: POST Change deployment flavour of a vnfInstance with permited authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.7.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null  
    POST Change VNF deployment flavour with permited authorization scope
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id

POST Change deployment flavour of a vnfInstance with not permited authorization scope
    [Documentation]    Test ID: 6.3.5.6.9
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.7.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null  
    POST Change VNF deployment flavour with not permited authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
+24 −0
Original line number Diff line number Diff line
@@ -107,6 +107,30 @@ DELETE Create VNF Snapshot Task - Method not implemented
    ...    Post-Conditions: none 
    DELETE Create VNF Snapshot Task
    Check HTTP Response Status Code Is    405
POST Create VNF Snapshot Task with permitted authorization scope
    [Documentation]    Test ID: 6.3.5.23.9
    ...    Test title: POST Create VNF Snapshot Task with permitted authorization scope
    ...    Test objective: The objective is to test that POST method requests taking a snapshot of a VNF instance.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.21.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Create VNF Snapshot Task with permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
POST Create VNF Snapshot Task with not permitted authorization scope
    [Documentation]    Test ID: 6.3.5.23.10
    ...    Test title: POST Create VNF Snapshot Task with not permitted authorization scope
    ...    Test objective: The objective is to test that POST method requests taking a snapshot of a VNF instance.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.21.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Create VNF Snapshot Task with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
Loading