diff --git a/README.md b/README.md index 96526a1d..82882deb 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,25 @@ graphql schema. - What about the generated types from `codegen`? Hand written types seem to be better. - The functions in `cacheExchange` should be nearer the concrete implementation... -## Load prod data for testing +## Test users +### Local development +If `prepare_server.sh` was run, the following users are available (password: `test` and found in `create_default_users.py`): + +- Trainer + - test-trainer1@example.com + - test-trainer2@example.com +- Teilnehmer + - test-student1@example.com + - test-student2@example.com + - test-student3@example.com +- Regionenleiter + - test-supervisor1@example.com +- Berufsbildner + - test-berufsbildner1@example.com +- Ausbildungsverantwortlicher + - test-ausbildungsverantwortlicher1@example.com + +### Load prod data for local testing 1. Checkout the [vbv-devops](https://bitbucket.org/iterativ/iterativ-devops/src/master/) repository 2. Change into the `backups` directory @@ -306,3 +324,6 @@ graphql schema. for csu in CourseSessionUser.objects.all(): csu.user.set_password("test") ``` +### Test users on production +On production there are CourseSessions in the VV and üK courses with test users. The data can be rested via the admin +interface ("Iterativ Testdurchführungen zurücksetzen"). All users use local login and can be found in 1password. diff --git a/server/vbv_lernwelt/sso/role_sync/roles.py b/server/vbv_lernwelt/sso/role_sync/roles.py index 6f03e9fb..1d7fc7b5 100644 --- a/server/vbv_lernwelt/sso/role_sync/roles.py +++ b/server/vbv_lernwelt/sso/role_sync/roles.py @@ -30,12 +30,12 @@ SSO_ROLES = { "intermediaire-dassurance": { "MEMBER": "myvbv-intermediaire-dassurance-member", "LEARNING_MENTOR": "myvbv-intermediaire-dassurance-mentor", - "BERUFSBILDNER": "myvbv-intermediaire-dassurance-berufsbildner", + "AUSBILDUNGSVERANTWORTLICHER": "myvbv-intermediaire-dassurance-ausbildungsverantwortlicher", }, "intermediarioa-assicurativoa": { "MEMBER": "myvbv-intermediarioa-assicurativoa-member", "LEARNING_MENTOR": "myvbv-intermediarioa-assicurativoa-mentor", - "BERUFSBILDNER": "myvbv-intermediarioa-assicurativoa-berufsbildner", + "AUSBILDUNGSVERANTWORTLICHER": "myvbv-intermediarioa-assicurativoa-ausbildungsverantwortlicher", }, } @@ -92,8 +92,8 @@ else: "myvbv-versicherungsvermittler-in-ausbildungsverantwortlicher": "6c9f7c08-3861-4eeb-a680-6235ca21d738", "myvbv-intermediaire-dassurance-member": "5400fdae-2c37-4738-8667-0bcb50ed3609", "myvbv-intermediaire-dassurance-mentor": "3bd737f9-731a-4548-aaf5-4c80175f2759", - "myvbv-intermediaire-dassurance-berufsbildner": "3a67003c-34fa-4bad-aa15-f27862dfbc42", + "myvbv-intermediaire-dassurance-ausbildungsverantwortlicher": "14400105-a752-4700-abde-d656a6ceec9d", "myvbv-intermediarioa-assicurativoa-member": "9fbaaa0f-cf8c-45f2-93f6-7174cb18a982", "myvbv-intermediarioa-assicurativoa-mentor": "46b12e54-682e-44c0-b506-eab820138b66", - "myvbv-intermediarioa-assicurativoa-berufsbildner": "bb3368e1-e574-48db-af68-aa63eaf56d44", + "myvbv-intermediarioa-assicurativoa-ausbildungsverantwortlicher": "5a6bd760-8441-489c-9563-9f142f7a13e4", }