Commit 1ec2602f authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

fixed issue in SOL002-VNFIndicator-API

parent 76ab788b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@


Resource    environment/variables.txt
Resource    environment/variables.txt


Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} 
Library    REST    ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT} 
Library    DependencyLibrary
Library    DependencyLibrary
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
+4 −0
Original line number Original line Diff line number Diff line
@@ -300,3 +300,7 @@ Check HTTP Response Body vnfIndicators Matches the requested attribute-based fil
    @{var_name} =    Split String    @{attr}[0]       ,${SEPERATOR}
    @{var_name} =    Split String    @{attr}[0]       ,${SEPERATOR}
    @{var_id} =    Split String    @{attr}[1]       ,${SEPERATOR}
    @{var_id} =    Split String    @{attr}[1]       ,${SEPERATOR}
    Should Be True     "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
    Should Be True     "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"

Check LINK in Header
    ${linkURL}=    Get Value From Json    ${response.headers}    $..Link
    Should Not Be Empty    ${linkURL}
+3 −0
Original line number Original line Diff line number Diff line
@@ -237,3 +237,6 @@ Check Postcondition Indicators for VNF instance Exist
    GET    ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}
    GET    ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}
    Should Be Equal    ${response.status_code}    200
    Should Be Equal    ${response.status_code}    200
    
    
Check LINK in Header
    ${linkURL}=    Get Value From Json    ${response.headers}    $..Link
    Should Not Be Empty    ${linkURL}
 No newline at end of file