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

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.7.9-10 Test-IDs] Extend 401/404...

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.7.9-10 Test-IDs] Extend 401/404 error responses for LCM APIs
parent 4ddfb0bd
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -110,6 +110,32 @@ POST Terminate a vnfInstance with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
POST Terminate a vnfInstance Not Found
    [Documentation]    Test ID: 7.3.1.7.9
    ...    Test title: POST Terminate a vnfInstance  Not Found
    ...    Test objective: The objective is to test that POST method cannot trigger terminate  because the VNF instance resource is not found. 
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.8.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    POST Terminate a vnfInstance - Not Found 
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails

POST Terminate a vnfInstance - Unauthorized
    [Documentation]    Test ID:7.3.1.7.10
    ...    Test title: POST Terminate a vnfInstance - Unauthorized
    ...    Test objective: The objective is to test that POST method cannot trigger terminate  without authorization
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.8.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Terminate a vnfInstance - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}