Commit f8261686 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.17.21 Test-ID] Implement new test...

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.17.21 Test-ID] Implement new test case for response code 404
parent f2542253
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -260,6 +260,20 @@ POST Create a new subscription - Unauthorized
    Post Create subscription - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Subscription with invalid resource endpoint
    [Documentation]    Test ID: 7.3.1.17.21
    ...    Test title: GET VNF Subscription with invalid resource endpoint
    ...    Test objective: The objective is to test that the retrieval of subscription fails when using invalid resource endpoint.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v5.2.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none    
    Get Subscriptions with invalid resource endpoint
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails

*** Keywords ***
Void
    Log    do nothing
+9 −0
Original line number Diff line number Diff line
@@ -2072,6 +2072,15 @@ Get subscriptions with nextpage_opaque_marker parameter
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

Get Subscriptions with invalid resource endpoint
    Log    Trying to perform a request on a Uri which doesn't exist
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/subscription
    ${output}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

Get subscriptions - filter
    Log    Get the list of active subscriptions using a filter
    Set Headers    {"Accept": "${ACCEPT}"}