Loading .jenkins.sh +12 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -30,3 +41,4 @@ fi ret=$? echo "Final validation result: $ret" exit $ret SOL002/VNFConfiguration-API/Configuration.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading SOL002/VNFConfiguration-API/environment/variables.txt +1 −5 Original line number Diff line number Diff line Loading @@ -20,7 +20,3 @@ ${apiName} vnfconfig ${apiMajorVersion} v1 ${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX No newline at end of file SOL002/VNFFaultManagement-API/Alarms.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading SOL002/VNFFaultManagement-API/EscalatePerceivedSeverityTask.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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
.jenkins.sh +12 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -30,3 +41,4 @@ fi ret=$? echo "Final validation result: $ret" exit $ret
SOL002/VNFConfiguration-API/Configuration.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
SOL002/VNFConfiguration-API/environment/variables.txt +1 −5 Original line number Diff line number Diff line Loading @@ -20,7 +20,3 @@ ${apiName} vnfconfig ${apiMajorVersion} v1 ${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX No newline at end of file
SOL002/VNFFaultManagement-API/Alarms.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
SOL002/VNFFaultManagement-API/EscalatePerceivedSeverityTask.robot +2 −1 Original line number Diff line number Diff line Loading @@ -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