Commit 2e4a5fd7 authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

fixed issues #107,108,109

parent 1ed7a161
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ GET Individual Network Service Descriptor Information
    GET Individual Network Service Descriptor Information
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   NsdInfo
    Check HTTP Response Header Contains ETag
    Check HTTP Response Header Contains Etag
    Check HTTP Response Body NsdInfo Identifier matches the requested Network Service Descriptor Information


@@ -53,6 +53,7 @@ Disable Individual Network Service Descriptor
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   NsdInfoModification
    Check Postcondition Network Service Descriptor is in operational state    DISABLED
    Check PostCondition GET Individual Network Service Descriptor Information
    Check Postcondition Network Service Descriptor usage state is unmodified (Implicit)

Enable Individual Network Service Descriptor
+8 −1
Original line number Diff line number Diff line
@@ -1020,7 +1020,7 @@ Check HTTP Response Header Contains
Check HTTP Response Header Contains Etag
    Should Contain    ${response['headers']}    Etag
    Log    Header is present
    Set Suite Variable    ${original_etag}    ${response['headers]['ETag']}
    Set Suite Variable    ${original_etag}    ${response['headers]['Etag']}


Create Sessions
@@ -1036,3 +1036,10 @@ Check Notification Endpoint
    Create Mock Expectation  ${notification_request}  ${notification_response}
    Wait Until Keyword Succeeds    ${total_polling_time}   ${polling_interval}   Verify Mock Expectation    ${notification_request}
    Clear Requests  ${callback_endpoint}
    
Check PostCondition GET Individual Network Service Descriptor Information
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoId}
    Should Be Equal As Strings     ${response['status']}    200
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ Check HTTP Response Header Contains
    
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    ${schema} =    Catenate    ${input}    .schema.json
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
    Validate Json    ${schema}    ${response[0]['body']}
    Log    Json Schema Validation OK