Commit 0c6b8b56 authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

fixed issues #107,108,109

parent bb85deaf
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@ GET Individual Network Service Descriptor Information
    GET Individual Network Service Descriptor Information
    GET Individual Network Service Descriptor Information
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   NsdInfo
    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
    Check HTTP Response Body NsdInfo Identifier matches the requested Network Service Descriptor Information


GET Individual Network Service Descriptor Information with invalid resource identifier
GET Individual Network Service Descriptor Information with invalid resource identifier
@@ -50,6 +50,7 @@ Disable Individual Network Service Descriptor
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   NsdInfoModification
    Check HTTP Response Body Json Schema Is   NsdInfoModification
    Check Postcondition Network Service Descriptor is in operational state    DISABLED
    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)
    Check Postcondition Network Service Descriptor usage state is unmodified (Implicit)


Enable Individual Network Service Descriptor
Enable Individual Network Service Descriptor
+7 −2
Original line number Original line Diff line number Diff line
@@ -891,7 +891,6 @@ Check HTTP Response Status Code Is
    Log    Status code validated 
    Log    Status code validated 
    
    
    
    
    
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/json
    Should Contain    ${response['headers']['Content-Type']}    application/json
@@ -1034,7 +1033,7 @@ Check HTTP Response Header Contains
Check HTTP Response Header Contains Etag
Check HTTP Response Header Contains Etag
    Should Contain    ${response['headers']}    Etag
    Should Contain    ${response['headers']}    Etag
    Log    Header is present
    Log    Header is present
    Set Suite Variable    ${original_etag}    ${response['headers]['ETag']}
    Set Suite Variable    ${original_etag}    ${response['headers]['Etag']}


Create Sessions
Create Sessions
    Pass Execution If    ${NFVO_CHECKS_NOTIF_ENDPOINT} == 0    MockServer not started as NFVO is not checking the notification endpoint
    Pass Execution If    ${NFVO_CHECKS_NOTIF_ENDPOINT} == 0    MockServer not started as NFVO is not checking the notification endpoint
@@ -1052,3 +1051,9 @@ Check Notification Endpoint
Check LINK in Header
Check LINK in Header
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}
    Should Not Be Empty    ${linkURL}

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
 No newline at end of file
+1 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,7 @@ Check HTTP Response Header Contains
    
    
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    [Arguments]    ${input}
    ${schema} =    Catenate    ${input}    .schema.json
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
    Validate Json    ${schema}    ${response[0]['body']}
    Validate Json    ${schema}    ${response[0]['body']}
    Log    Json Schema Validation OK
    Log    Json Schema Validation OK