Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a smoketest profile for Stepup #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
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
Loading