Skip to content

Commit

Permalink
Merge pull request #34 from OpenConext/feature/add-stepup-smoketest-p…
Browse files Browse the repository at this point in the history
…rofile

Add a smoketest profile for Stepup
  • Loading branch information
pablothedude authored Jan 24, 2025
2 parents f8a0ed1 + e3654a3 commit 60773a2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stepup-behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
DOCKER_COMPOSE: docker compose -f docker-compose.yml
DOCKER_COMPOSE: docker compose --profile smoketest -f docker-compose.yml
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions core/stop-dev-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Use docker compose to start the environment but with the modified override file(s)
echo -e "Starting the dev environment with the following command:\n"

echo -e "docker compose --profile oidc -f docker-compose.yml down\n"
docker compose --profile oidc -f docker-compose.yml down
2 changes: 2 additions & 0 deletions stepup/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ services:
volumes:
- ${PWD}/:/config
- /var/run/docker.sock:/var/run/docker.sock
profiles:
- "smoketest"

webauthn:
image: ghcr.io/openconext/stepup-webauthn/stepup-webauthn:${STEPUP_VERSION:-prod}
Expand Down
6 changes: 2 additions & 4 deletions stepup/start-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,5 @@ done
# Use docker compose to start the environment but with the modified override file(s)
echo -e "Starting the ${MODE} environment with the following command:\n"

echo -e "docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}\n"
docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}


echo -e "docker compose --profile smoketest -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}\n"
docker compose --profile smoketest -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}
7 changes: 7 additions & 0 deletions stepup/stop-dev-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Use docker compose to start the environment but with the modified override file(s)
echo -e "Starting the dev environment with the following command:\n"

echo -e "docker compose --profile smoketest -f docker-compose.yml down\n"
docker compose --profile smoketest -f docker-compose.yml down

0 comments on commit 60773a2

Please sign in to comment.