did similar for the script for QA
This commit is contained in:
parent
69f1acada9
commit
0e7da40083
2 changed files with 10 additions and 2 deletions
|
@ -42,8 +42,6 @@ raw_not_executed_test=$(echo "$exec_status" | jq --raw-output '."last execution
|
||||||
|
|
||||||
declare -a not_executed_test=($(echo "$raw_not_executed_test" | tr "\n" " "))
|
declare -a not_executed_test=($(echo "$raw_not_executed_test" | tr "\n" " "))
|
||||||
|
|
||||||
#echo ${not_executed_test[*]}
|
|
||||||
|
|
||||||
if [ "$not_executed_test" != null ]
|
if [ "$not_executed_test" != null ]
|
||||||
then
|
then
|
||||||
echo "more than two lands not executed "
|
echo "more than two lands not executed "
|
||||||
|
|
|
@ -38,6 +38,16 @@ if [ "$diff_exec_time" -gt "$day" ]; then
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
raw_not_executed_test=$(echo "$exec_status" | jq --raw-output '."last execution result".notExecutedTests[2]')
|
||||||
|
|
||||||
|
declare -a not_executed_test=($(echo "$raw_not_executed_test" | tr "\n" " "))
|
||||||
|
|
||||||
|
if [[ "${not_executed_test[*]}" == *"XA"* ]] || [[ "${not_executed_test[*]}" == *"XB"* ]]
|
||||||
|
then
|
||||||
|
echo "XA, XB or both not executed"
|
||||||
|
exit $STATE_CRITICAL
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
raw_lands=$(curl -s https://api.swedenconnect.se/testid/qa/execution-status | jq --raw-output '."last execution result".failed[].result')
|
raw_lands=$(curl -s https://api.swedenconnect.se/testid/qa/execution-status | jq --raw-output '."last execution result".failed[].result')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue