Skip to content

Commit 60773a2

Browse files
authored
Merge pull request #34 from OpenConext/feature/add-stepup-smoketest-profile
Add a smoketest profile for Stepup
2 parents f8a0ed1 + e3654a3 commit 60773a2

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

.github/workflows/stepup-behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
timeout-minutes: 5
1111
env:
12-
DOCKER_COMPOSE: docker compose -f docker-compose.yml
12+
DOCKER_COMPOSE: docker compose --profile smoketest -f docker-compose.yml
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4

core/stop-dev-env.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# Use docker compose to start the environment but with the modified override file(s)
4+
echo -e "Starting the dev environment with the following command:\n"
5+
6+
echo -e "docker compose --profile oidc -f docker-compose.yml down\n"
7+
docker compose --profile oidc -f docker-compose.yml down

stepup/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ services:
4444
volumes:
4545
- ${PWD}/:/config
4646
- /var/run/docker.sock:/var/run/docker.sock
47+
profiles:
48+
- "smoketest"
4749

4850
webauthn:
4951
image: ghcr.io/openconext/stepup-webauthn/stepup-webauthn:${STEPUP_VERSION:-prod}

stepup/start-dev-env.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,5 @@ done
7777
# Use docker compose to start the environment but with the modified override file(s)
7878
echo -e "Starting the ${MODE} environment with the following command:\n"
7979

80-
echo -e "docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}\n"
81-
docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}
82-
83-
80+
echo -e "docker compose --profile smoketest -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}\n"
81+
docker compose --profile smoketest -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}

stepup/stop-dev-env.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# Use docker compose to start the environment but with the modified override file(s)
4+
echo -e "Starting the dev environment with the following command:\n"
5+
6+
echo -e "docker compose --profile smoketest -f docker-compose.yml down\n"
7+
docker compose --profile smoketest -f docker-compose.yml down

0 commit comments

Comments
 (0)