Commit 2ec13a0a authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Merge branch '2.8.1-fix-plu' into '2.8.1-dev'

merge 2.8.1 fix plu into 2.8.1 dev

See merge request !197
parents 8198d2e7 dde654fd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -12,7 +12,18 @@ run_dir="$(pwd)"
echo "Using git branch $GIT_BRANCH"

bash ./scripts/build-container.sh
ret=$?
if [ "$ret" != "0" ]; then
     echo "build-container.sh failed"
     exit -1
fi

bash ./scripts/run-container.sh "${run_dir}" "$GIT_BRANCH"
ret=$?
if [ "$ret" != "0" ]; then
     echo "run-container.sh failed"
     exit -1
fi

if [[ "$GIT_BRANCH" =~ .*fix-plu$ ]]; then

@@ -30,3 +41,4 @@ fi
ret=$?
echo "Final validation result: $ret"
exit $ret
+2 −1
Original line number Diff line number Diff line
@@ -136,7 +136,8 @@ Check HTTP Response Header Contains
    
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
    ...    ELSE    Should Contain    ${response['headers']['Content-Type']}    application/json
    ${schema}=    Catenate    SEPARATOR=    ${input}    .schema.json
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
+1 −5
Original line number Diff line number Diff line
@@ -20,7 +20,3 @@ ${apiName} vnfconfig
${apiMajorVersion}     v1

${WRONG_AUTHORIZATION}    Bearer    XXXXXWRONGXXXXX
 No newline at end of file



+2 −1
Original line number Diff line number Diff line
@@ -352,7 +352,8 @@ Check HTTP Response Header Contains
    
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/json
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
    ...    ELSE    Should Contain    ${response['headers']['Content-Type']}    application/json
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
+2 −1
Original line number Diff line number Diff line
@@ -112,7 +112,8 @@ Check HTTP Response Status Code Is
    
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/json
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
    ...    ELSE    Should Contain    ${response['headers']['Content-Type']}    application/json
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
 No newline at end of file
Loading