Commit ee333d05 authored by Eisha Ayaz's avatar Eisha Ayaz Committed by Giacomo Bernini
Browse files

[test-new][SOL002][VNF-LCM][v5.2.1][6.3.5.12.9 Test-ID] Implement 401 error response for LCM APIs

parent 65f2c1a6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -106,3 +106,15 @@ Get Individual VNF LCM Operation occurrences - Not Found
    Get Individual VNF LCM OP occurrences
    Check HTTP Response Status Code Is    404 
    Check HTTP Response Body Json Schema Is    ProblemDetails
Get Individual VNF LCM Operation occurrences - Unauthorized
    [Documentation]    Test ID: 6.3.5.12.9
    ...    Test title: Get Individual VNF LCM Operation occurrences - Unauthorized
    ...    Test objective: The objective is to test that the retrieval of VNF lifecycle management operation occurrence fails without authorization
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.13.3.2 - ETSI GS NFV-SOL 002 [2] v5.1.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual VNF LCM Operation occurrences - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -1179,6 +1179,13 @@ Get Individual VNF LCM OP occurrences
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}	
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	
Get Individual VNF LCM Operation occurrences - Unauthorized
    log    Trying to Get VNF LCM OpOcc without authorization
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}	
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	  
Put Individual VNF LCM OP occurrences
    log    Trying to perform a POST. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}