Commit 6b61ef4d authored by zauberstuhl's avatar zauberstuhl
Browse files

wip

parent 2db71f9c
Pipeline #2339 failed with stage
in 68 minutes and 32 seconds
......@@ -50,6 +50,8 @@ load '../test_helper'
@test "$PREFIX increase count on tp1 via tp2" {
get "http://$(container_ip tp2):3000/add@$(container_ip tp1):3000"
echo "# HTTP_BODY $HTTP_BODY" >&3
echo "# HTTP_STATUS_CODE $HTTP_STATUS_CODE" >&3
[ "$HTTP_STATUS_CODE" == "200" ]
}
......@@ -60,21 +62,11 @@ load '../test_helper'
}
@test "$PREFIX check the database on tp1 too" {
out=$(query tp1 "select count(*) from testtable;")
echo $out
echo $(get "http://$(container_ip tp2):3000/add@$(container_ip tp1):3000")
echo $(get "http://'$(container_ip tp1)':3000")
echo "$(container_ip postgres)"
echo "$(container_ip tp1)"
echo "$(container_ip tp2)"
cmd='query tp1 "select count(*) from testtable;"'
echo "# CMD: $(eval $cmd)" >&3
echo $(docker logs $(container_id tp1)) >&3
echo $(docker logs $(container_id tp2)) >&3
echo "# CMD tp1: $(eval $cmd)" >&3
cmd='query tp2 "select count(*) from testtable;"'
echo "# CMD tp2: $(eval $cmd)" >&3
cmd='query tp1 "select count(*) from testtable;"'
code=$(wait_for "$cmd" "1")
[ "$code" -eq "0" ]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment