Merged in feature/VBV-768-doc (pull request #408)

Add minimal test user info
This commit is contained in:
Christian Cueni 2024-10-24 09:40:15 +00:00
commit 1f69deaa7f
1 changed files with 22 additions and 1 deletions

View File

@ -295,7 +295,25 @@ graphql schema.
- What about the generated types from `codegen`? Hand written types seem to be better. - What about the generated types from `codegen`? Hand written types seem to be better.
- The functions in `cacheExchange` should be nearer the concrete implementation... - 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 1. Checkout the [vbv-devops](https://bitbucket.org/iterativ/iterativ-devops/src/master/) repository
2. Change into the `backups` directory 2. Change into the `backups` directory
@ -306,3 +324,6 @@ graphql schema.
for csu in CourseSessionUser.objects.all(): for csu in CourseSessionUser.objects.all():
csu.user.set_password("test") 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.