Skip to content

Commit db88818

Browse files
committedJul 3, 2022
test: store keycloak container logs
1 parent 5cd8fc3 commit db88818

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎.github/workflows/lint.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
- name: Run tests
7272
run: |
7373
tox -e tests
74+
- name: Keycloak logs
75+
run: |
76+
cat keycloak_test_logs.txt
7477
7578
build:
7679
runs-on: ubuntu-latest

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*.cover
4747
.hypothesis/
48+
keycloak_test_logs.txt
4849

4950
# Translations
5051
*.mo

‎test_keycloak_init.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
CMD_ARGS=$1
44
KEYCLOAK_DOCKER_IMAGE="quay.io/keycloak/keycloak:latest"
55

6-
echo "${CMD_ARGS}"
7-
86
function keycloak_stop() {
97
docker stop unittest_keycloak &> /dev/null
108
docker rm unittest_keycloak &> /dev/null
@@ -30,6 +28,7 @@ keycloak_stop # In case it did not shut down correctly last time.
3028
keycloak_start
3129

3230
eval ${CMD_ARGS}
31+
docker logs unittest_keycloak > keycloak_test_logs.txt
3332
RETURN_VALUE=$?
3433

3534
exit ${RETURN_VALUE}

0 commit comments

Comments
 (0)