Commit 0100e225 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.23.11 Test-ID] Extend 401 error response for LCM APIs

parent 01290ae3
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -134,6 +134,20 @@ 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

POST Create VNF Snapshot Task - Unauthorized
    [Documentation]    Test ID: 6.3.5.23.11
    ...    Test title: POST Create VNF Snapshot Task - Unauthorized
    ...    Test objective: The objective is to test that POST method requests taking a snapshot of a VNF instance without authorization.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.21.3.1 - ETSI GS NFV-SOL 002 [2] v5.1.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Create VNF Snapshot Task - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails


*** Keywords ***
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}
@@ -142,3 +156,4 @@ Check resource existence
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId} 
    Integer    response status    200