mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
fix(tests): try fixing ci failures
This commit is contained in:
committed by
Łukasz Mierzwa
parent
7b8783588e
commit
491333c2fd
@@ -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 --
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user