-
Notifications
You must be signed in to change notification settings - Fork 10
/
run_integration_tests.sh
executable file
·37 lines (35 loc) · 1.4 KB
/
run_integration_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
echo "Running tests with simple redis"
make test-docker-jenkins
while docker ps | grep test_gateway_1 ; do
echo "Waiting for tests to finish"
sleep 5
done
echo "Finished integration tests"
if ! docker logs test_gateway_1 --tail 1 | grep "PASS" ; then
echo "FAILED TESTS"
docker logs test_gateway_1
cd ./test && docker-compose -f docker-compose-jenkins.yml stop && docker-compose -f docker-compose-jenkins.yml rm -f
exit 64
fi
docker logs test_gateway_1 --tail 1
cd ./test && docker-compose -f docker-compose-jenkins.yml stop && docker-compose -f docker-compose-jenkins.yml rm -f
rm -rf ~/tmp/apiplatform/api-gateway-request-validation
cd ../
echo "Running tests with redis with password"
make test-docker-with-password-jenkins
while docker ps | grep test_gateway_1 ; do
echo "Waiting for tests to finish"
sleep 5
done
echo "Finished integration tests"
if ! docker logs test_gateway_1 --tail 1 | grep "PASS" ; then
echo "FAILED TESTS"
docker logs test_gateway_1
cd ./test && docker-compose -f docker-compose-with-password-jenkins.yml stop && docker-compose -f docker-compose-with-password-jenkins.yml rm -f
exit 64
fi
docker logs test_gateway_1 --tail 1
cd ./test && docker-compose -f docker-compose-with-password-jenkins.yml stop && docker-compose -f docker-compose-with-password-jenkins.yml rm -f
rm -rf ~/tmp/apiplatform/api-gateway-request-validation
cd ../