Browse Source

test: store keycloak container logs

pull/354/head
Richard Nemeth 3 years ago
parent
commit
db888185c3
  1. 3
      .github/workflows/lint.yaml
  2. 1
      .gitignore
  3. 3
      test_keycloak_init.sh

3
.github/workflows/lint.yaml

@ -71,6 +71,9 @@ jobs:
- name: Run tests
run: |
tox -e tests
- name: Keycloak logs
run: |
cat keycloak_test_logs.txt
build:
runs-on: ubuntu-latest

1
.gitignore

@ -45,6 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
keycloak_test_logs.txt
# Translations
*.mo

3
test_keycloak_init.sh

@ -3,8 +3,6 @@
CMD_ARGS=$1
KEYCLOAK_DOCKER_IMAGE="quay.io/keycloak/keycloak:latest"
echo "${CMD_ARGS}"
function keycloak_stop() {
docker stop unittest_keycloak &> /dev/null
docker rm unittest_keycloak &> /dev/null
@ -30,6 +28,7 @@ keycloak_stop # In case it did not shut down correctly last time.
keycloak_start
eval ${CMD_ARGS}
docker logs unittest_keycloak > keycloak_test_logs.txt
RETURN_VALUE=$?
exit ${RETURN_VALUE}
Loading…
Cancel
Save