Commit b3e5f956 authored by Eisha Ayaz's avatar Eisha Ayaz
Browse files

[test-new][SOL002][VNF-LCM][v5.3.1][6.3.5.x.x Test-IDs][NFVSOL(26)000093] New...

[test-new][SOL002][VNF-LCM][v5.3.1][6.3.5.x.x Test-IDs][NFVSOL(26)000093] New tests for 401/404 gaps identified by tacker
parent 91a47ad8
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -116,3 +116,27 @@ GET Individual Subscription - Not Found
    GET Individual Subscription - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE an individual subscription - Unauthorized
     [Documentation]    Test ID: 6.3.5.18.10
    ...    Test title: DELETE Individual Subscription - Unauthorized
    ...    Test objective: The objective is to test that the DELETE method removes an individual subscription without authorization fails
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.19.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    Delete Individual subscription - Unauthorized
	Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE an individual subscription - Not Found
     [Documentation]    Test ID: 6.3.5.18.11
    ...    Test title: DELETE Individual Subscription - Not Found
    ...    Test objective: The objective is to test that the DELETE method fails when the individual subscription is not found
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.19.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    Delete Individual subscription - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+49 −1
Original line number Diff line number Diff line
@@ -167,3 +167,51 @@ Get Information about an individual VNF Instance - Unauthorized
    GET individual vnfInstance - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails  
PATCH Individual VNFInstance - Unauthorized
    [Documentation]    Test ID: 6.3.5.2.13
    ...    Test title: PATCH Individual VNFInstance - Unauthorized
    ...    Test objective: This method modifies an individual VNF instance resource without authorization.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH individual vnfInstance - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE Individual VNFInstance - Unauthorized
    [Documentation]    Test ID: 6.3.5.2.14
    ...    Test title: DELETE Individual VNFInstance - Unauthorized
    ...    Test objective: The objective is to delete a VNF instance without authorization.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE individual vnfInstance - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
PATCH Individual VNFInstance - Not Found
    [Documentation]    Test ID: 6.3.5.2.15
    ...    Test title: PATCH Individual VNFInstance - Not Found
    ...    Test objective: This method modifies an individual VNF instance resource that does not exist.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH individual vnfInstance - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE Individual VNFInstance - Not Found
    [Documentation]    Test ID: 6.3.5.2.14
    ...    Test title: DELETE Individual VNFInstance - Not Found
    ...    Test objective: The objective is to delete a VNF instance that does not exist.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE individual vnfInstance - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+24 −0
Original line number Diff line number Diff line
@@ -126,3 +126,27 @@ GET Information about an individual VNF Snapshot - Unauthorized
    GET Individual VNF Snapshot - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE Individual VNF Snapshot - Unauthorized
    [Documentation]    Test ID: 6.3.5.26.11
    ...    Test title: DELETE Individual VNF Snapshot - Unauthorized
    ...    Test objective: The objective is to test that the DELETE method fails when the request is not authorized.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.24.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE individual VNF Snapshot - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
DELETE Individual VNF Snapshot - Not Found
    [Documentation]    Test ID: 6.3.5.26.12
    ...    Test title: DELETE Individual VNF Snapshot - Not Found
    ...    Test objective: The objective is to test that the DELETE method fails when the VNF Snapshot is not found.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.24.3.5 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE individual VNF Snapshot - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+48 −1
Original line number Diff line number Diff line
@@ -92,6 +92,43 @@ DELETE Notification endpoint - Method Not Implemented
    DELETE notification endpoint
    Check HTTP Response Status Code Is    405

Test the Notification Endpoint - Unauthorized
    [Documentation]    Test ID: 6.3.5.21.8
    ...    Test title: Test the Notification Endpoint - Unauthorized
    ...    Test objective: The objective is to test the Notification Endpoint provided by the notification consumer without authorization.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.4.20.3.2 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get reach the notification endpoint - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
Test the Notification Endpoint - Not Found
    [Documentation]    Test ID: 6.3.5.21.9
    ...    Test title: Test the Notification Endpoint - Not Found
    ...    Test objective: The objective is to test the not existing Notification Endpoint provided by the notification consumer.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.20.3.2 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get reach the notification endpoint - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
VNF LCM Operation Occurrence Notification - Unauthorized
    [Documentation]    Test ID: 6.3.5.21.10
    ...    Test title: VNF LCM Operation Occurrence Start Notification - Unauthorized
    ...    Test objective:  The objective is to test that VNF LCM Operation Occurrence Notification is delivered with success to the notification consumer without authorization.
    ...    Pre-conditions: A subscription for VNF LCM Operation Occurrence notifications is available in the VNFM.
    ...    Reference: Clause 5.4.20.3.1 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    Post VNF LCM Operation Occurrence Notification - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence and get CallbackUri
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -114,7 +151,17 @@ Post VNF LCM Operation Occurrence Notification
    Post    ${callbackResp}    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	
	
Post VNF LCM Operation Occurrence Notification - Unauthorized
    log    Trying to perform a POST to get notification without authorization
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    ${template} =    Get File    jsons/VnfLcmOperationOccurrenceNotification.json
    ${body}=        Format String   ${template}    subscriptionId=${subscriptionId}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}   
    Post    ${callbackResp}    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}		
Post VNF Identifier Creation Notification
    log    Trying to perform a POST to get notification
    Set Headers  {"Accept":"${ACCEPT}"}  
+12 −1
Original line number Diff line number Diff line
@@ -261,4 +261,15 @@ POST Create a new subscription - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Subscriptions - Unauthorized
     [Documentation]    Test ID: 6.3.5.17.20
    ...    Test title: GET Subscriptions - Unauthorized
    ...    Test objective: The objective is to Get the list of active subscriptions without authorization
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get subscriptions - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
Loading