fix(tests): try fixing ci failures

This commit is contained in:
Łukasz Mierzwa
2022-08-24 20:01:07 +01:00
committed by Łukasz Mierzwa
parent 7b8783588e
commit 491333c2fd
2 changed files with 5 additions and 5 deletions

View File

@@ -2,14 +2,14 @@
exec bash -x ./test.sh &
karma.bin-should-work --pid-file=karma.pid --alertmanager.uri=http://foo:bar@127.0.0.1 --listen.address=127.0.0.1 --listen.port=8076
wait
stdout '"headers":{"Authorization":"Basic Zm9vOmJhcg=="}'
stdout '"publicURI":"http://foo:bar@127.0.0.1"'
exec sleep 5
grep '"headers":{"Authorization":"Basic Zm9vOmJhcg=="}' out.txt
grep '"publicURI":"http://foo:bar@127.0.0.1"' out.txt
-- test.sh --
while [ ! -f karma.pid ]; do sleep 1 ; done
sleep 1
curl -XPOST -d @request.json -s http://127.0.0.1:8076/alerts.json
curl -o out.txt -XPOST -d @request.json -s http://127.0.0.1:8076/alerts.json
cat karma.pid | xargs kill
-- request.json --

View File

@@ -4,7 +4,7 @@ exec bash -x ./tls.sh
exec bash -x ./test.sh &
karma.bin-should-work --pid-file=karma.pid --config.file=karma.yaml --listen.address=127.0.0.1 --listen.port=8087
! stdout .
wait
exec sleep 5
cmp http1.txt pong.txt
cmp http2.txt pong.txt