Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/stepup-behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
cd stepup
cp .env.test .env
cp gateway/surfnet_yubikey.yaml.dist gateway/surfnet_yubikey.yaml
${DOCKER_COMPOSE} build behat
${DOCKER_COMPOSE} up -d
- name: Install composer dependencies on the Behat container
run: |
cd stepup
${DOCKER_COMPOSE} exec behat composer install --ignore-platform-reqs -n
${DOCKER_COMPOSE} exec behat composer install -n
- name: Sleep for 10 seconds
run: sleep 10s
- name: Run Behat tests
Expand Down
1 change: 1 addition & 0 deletions stepup/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ services:

behat:
image: ghcr.io/openconext/openconext-devconf/openconext-devconf:test
build: ./tests
environment:
- APP_ENV=${APP_ENV:-prod}
networks:
Expand Down
5 changes: 4 additions & 1 deletion stepup/tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2-node16-composer2:latest
FROM ghcr.io/openconext/openconext-basecontainers/php85-apache2-node24:latest
RUN apt-get update && \
apt-get install -y mariadb-client && \
apt-get install -y ca-certificates curl && \
Expand All @@ -12,4 +12,7 @@ RUN apt-get update && \
apt-get update && \
apt install -y docker-ce docker-ce-cli containerd.io

# mariadb-client 11.4+ requires TLS by default; the dev mariadb server does not offer it
RUN printf '[client]\nskip-ssl\n' > /etc/mysql/mariadb.conf.d/99-skip-ssl.cnf

WORKDIR /config/tests/behat
17 changes: 10 additions & 7 deletions stepup/tests/behat/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
"description": "Automated functional tests for Stepup",
"type": "project",
"require": {
"behat/behat": "^3.4",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-extension": "^2.3",
"phpunit/phpunit": "^5.7",
"moontoast/math": "^1.1",
"ramsey/uuid": "~3.4",
"paragonie/random_compat": "v2.0.17"
"behat/behat": "^3.14",
"behat/mink": "^1.11",
"behat/mink-browserkit-driver": "^2.2",
"friends-of-behat/mink-extension": "^2.7",
"symfony/browser-kit": "^7.0",
"symfony/http-client": "^7.0",
"symfony/mime": "^7.0",
"guzzlehttp/guzzle": "^7.9",
"phpunit/phpunit": "^11.5 || ^12.0",
"ramsey/uuid": "^4.7"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading