Commit ec6a744c 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.37.9-10 Test-IDs] Implement 401/404...

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.37.9-10 Test-IDs] Implement 401/404 error responses for LCM APIs
parent 8d56e467
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -108,6 +108,31 @@ 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 
    
POST Change current VNF Package Task - VNF instance not found
    [Documentation]    Test ID:7.3.1.37.9
    ...    Test title: POST Change current VNF Package Task - VNF instance not found
    ...    Test objective: The objective is to test that POST method can not trigger a Change current VNF Package Task due to VNF instance not found
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Change current VNF Package Task - VNF instance not found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails

POST Change current VNF Package Task - Unauthorized
    [Documentation]    Test ID:7.3.1.37.10
    ...    Test title: POST Change current VNF Package Task - Unauthorized
    ...    Test objective: The objective is to test that POST method cannot trigger a  Change current VNF Package Task  without authorization
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    POST Change current VNF Package 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}"}