Commit c387e0fa authored by Muhammad Umair Khan's avatar Muhammad Umair Khan
Browse files

implement oauth scope for SOL003 VNFLifecycleManagement API

parent 1b8a9e09
Loading
Loading
Loading
Loading
+26 −1
Original line number Diff line number Diff line
@@ -93,3 +93,28 @@ 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: 7.3.1.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 with permitted authorization scope.
    ...    Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: VNF instance status equal to FAILED_TEMP     
    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: 7.3.1.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 with not permitted authorization scope.
    ...    Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: VNF instance status equal to FAILED_TEMP     
    POST Cancel operation task with not permitted authorization scope
    Check HTTP Response Status Code Is    403
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
@@ -82,6 +82,32 @@ DELETE Change current VNF Package Task - Method not implemented
    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: 7.3.1.37.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 with permitted authorization scope.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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 HTTP Location Header Contains URI of Created Resource

POST Change current VNF Package Task with not permitted authorization scope
    [Documentation]    Test ID: 7.3.1.37.8
    ...    Test title: POST Change current VNF Package Task
    ...    Test objective: The objective is to test that the POST method changes the current VNF package on which the VNF instance is based with not permitted authorization scope.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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
    Set Headers    {"Accept":"${ACCEPT}"}  
+27 −1
Original line number Diff line number Diff line
@@ -68,3 +68,29 @@ DELETE Change external VNF connectivity - Method not implemented
    ...    Post-Conditions: none 
    DELETE Change External VNF Connectivity
    Check HTTP Response Status Code Is    405

POST Change external VNF connectivity with permitted authorization scope
    [Documentation]    Test ID: 7.3.1.10.6
    ...    Test title: POST Change external VNF connectivity with permitted authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF external connectivity with permitted authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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 HTTP Response Header Contains    Location
    Check Individual VNF LCM operation occurrence operationState is    STARTING
        
POST Change external VNF connectivity with not permitted authorization scope
    [Documentation]    Test ID: 7.3.1.10.7
    ...    Test title: POST Change external VNF connectivity with not permitted authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF external connectivity with not permitted authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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
 No newline at end of file
+29 −2
Original line number Diff line number Diff line
@@ -94,3 +94,30 @@ 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 permitted authorization scope
    [Documentation]    Test ID: 7.3.1.6.8
    ...    Test title: POST Change deployment flavour of a vnfInstance with permitted authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour with permitted authorization scope
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Reference: Clause 5.4.7.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null  
    POST Change VNF deployment flavour with permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Individual VNF LCM operation occurrence operationState is    STARTING

POST Change deployment flavour of a vnfInstance with not permitted authorization scope
    [Documentation]    Test ID: 7.3.1.6.9
    ...    Test title: POST Change deployment flavour of a vnfInstance with not permitted authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour with not permitted authorization scope
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Reference: Clause 5.4.7.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null  
    POST Change VNF deployment flavour with not permitted authorization scope 
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
@@ -108,6 +108,32 @@ DELETE Create VNF Snapshot Task - Method not implemented
    DELETE Create VNF Snapshot Task
    Check HTTP Response Status Code Is    405

POST Create VNF Snapshot Task with permitted authorization scope
    [Documentation]    Test ID: 7.3.1.38.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 with permitted authorization scope with permitted authorization scope.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.21.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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 HTTP Location Header Contains URI of Created Resource

POST Create VNF Snapshot Task with not permitted authorization scope
    [Documentation]    Test ID: 7.3.1.38.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 with not permitted authorization scope with not permitted authorization scope.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.21.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    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
    Set Headers    {"Accept":"${ACCEPT}"}  
Loading