Skip to content

Commit

Permalink
Redis can now be used as session store for portal tests. See Haufe-Le…
Browse files Browse the repository at this point in the history
  • Loading branch information
achwie committed Sep 14, 2017
1 parent d009530 commit 9f6e782
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,12 @@ $ ./run-<api|portal|kong-adapter>-tests.sh

The scripts will attempt to first build the needed docker images locally (this may take some time the first time), and then runs the integration tests on the built images.

The portal tests are run with file session store by default. If you want to run them using Redis as a session store, you can do so by running them like:

```bash
$ SESSION_STORE_TYPE=redis SESSION_STORE_HOST=redis ./run-portal-tests.sh
```

## Running the tests on prebuilt container images

In order to run the integration tests on already prebuilt containers (e.g. the official docker images from Haufe-Lexware), use the following syntax:
Expand Down
7 changes: 7 additions & 0 deletions portal-tests-compose.yml.template
Expand Up @@ -17,6 +17,13 @@ services:
portal:
env_file: variables.env
image: ${DOCKER_PREFIX}portal:${DOCKER_TAG}${BUILD_ALPINE}
environment:
- "SESSION_STORE_TYPE"
- "SESSION_STORE_HOST"
- "SESSION_STORE_PORT"

redis:
image: redis

networks:
default:
Expand Down

0 comments on commit 9f6e782

Please sign in to comment.