Skip to content

Commit

Permalink
⬆️ [#50] updated keycloak docker testing env and updated django
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Aug 9, 2024
1 parent 674927d commit 9e9f970
Show file tree
Hide file tree
Showing 8 changed files with 2,471 additions and 107 deletions.
2,328 changes: 2,328 additions & 0 deletions keycloak/data/test-realm.json

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions keycloak/docker-compose.keycloak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Config taken from https://stackoverflow.com/a/77257732
#
# This docker-compose is for development and test purposes. Tests are recorded with
# VCR against this instance.
#
# Log in to http://localhost:8080/admin/master/console/ with `admin`/`admin`
# credentials.
#
# DO NOT USE THIS IN PRODUCTION.
#
# Start a Keycloak instance in your local environment from the parent directory:
#
# docker compose -f docker-compose.keycloak.yml up -d
#

version: '3'

services:
keycloak:
image: quay.io/keycloak/keycloak:23.0
command: start-dev --import-realm
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
volumes:
- ./data:/opt/keycloak/data/import
ports:
- 8080:8080
networks:
objects-dev:
aliases:
- keycloak.objects.local

networks:
objects-dev:
name: objects-dev
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cryptography==41.0.7
# mozilla-django-oidc
# pyopenssl
# webauthn
django==4.2.14
django==4.2.15
# via
# commonground-api-common
# django-admin-index
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ cryptography==41.0.7
# webauthn
cssselect==1.1.0
# via pyquery
django==4.2.14
django==4.2.15
# via
# -r requirements/base.txt
# commonground-api-common
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ cssselect==1.1.0
# via
# -r requirements/ci.txt
# pyquery
django==4.2.14
django==4.2.15
# via
# -r requirements/ci.txt
# commonground-api-common
Expand Down
74 changes: 37 additions & 37 deletions src/objects/accounts/tests/keycloak_cassets/duplicate_email.yaml

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions src/objects/accounts/tests/keycloak_cassets/happy_flow.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9e9f970

Please sign in to comment.