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
2 changes: 1 addition & 1 deletion tests/repo/rcds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ deploy:
profiles:
# configure per-environment credentials etc
testing:
frontend_url: https://frontend.example
frontend_url: http://mock_frontend.localhost:8080
frontend_token: secretsecretsecret
challenges_domain: chals.frontend.example
kubecontext: testcluster
Expand Down
26 changes: 26 additions & 0 deletions tests/services.compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,29 @@ services:
/usr/bin/mc anonymous set download myminio/testbucket;
exit 0;
"

mock_frontend:
image: nginx:alpine
ports:
- 8080:80
entrypoint:
- sh
- -c
- |
cat <<'EOF' > /etc/nginx/conf.d/default.conf
server {
listen 80;
default_type application/json;

location /api/checkaccess {
return 200 '{"status":"ok"}';
}

location /api/resolvestate {
limit_except POST {
return 200 '{"current":[],"removed":[]}';
}
}
}
EOF
nginx -g 'daemon off;'
Loading