-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Condition test users on dev mode (#1567)
* condition test users on dev mode * Update values.yaml
- Loading branch information
1 parent
e233ac4
commit 6e4c9f7
Showing
2 changed files
with
127 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,141 +29,143 @@ data: | |
"accessTokenLifespan": 36000, | ||
"ssoSessionIdleTimeout": 36000, | ||
"users": [ | ||
{{- $browsers := list "firefox" "webkit" "chromium"}} | ||
{{- range $_, $browser := $browsers }} | ||
{{- range $index, $_ := until 20}} | ||
{ | ||
"username": "testuser_{{$index}}_{{$browser}}", | ||
"enabled": true, | ||
"email": "testuser_{{$index}}_{{$browser}}@void.o", | ||
"emailVerified": true, | ||
"firstName": "{{$index}}_{{$browser}}", | ||
"lastName": "TestUser", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "testuser_{{$index}}_{{$browser}}" | ||
{{ if $.Values.devMode }} | ||
{{- $browsers := list "firefox" "webkit" "chromium"}} | ||
{{- range $_, $browser := $browsers }} | ||
{{- range $index, $_ := until 20}} | ||
{ | ||
"username": "testuser_{{$index}}_{{$browser}}", | ||
"enabled": true, | ||
"email": "testuser_{{$index}}_{{$browser}}@void.o", | ||
"emailVerified": true, | ||
"firstName": "{{$index}}_{{$browser}}", | ||
"lastName": "TestUser", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "testuser_{{$index}}_{{$browser}}" | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
}, | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{ | ||
"username": "testuser", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Test", | ||
"lastName": "User", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "testuser" | ||
{ | ||
"username": "testuser", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Test", | ||
"lastName": "User", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "testuser" | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
}, | ||
{ | ||
"username": "insdc_ingest_user", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "INSDC Ingest", | ||
"lastName": "User", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "insdc_ingest_user" | ||
{ | ||
"username": "insdc_ingest_user", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "INSDC Ingest", | ||
"lastName": "User", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "insdc_ingest_user" | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
], | ||
"realmRoles": [ | ||
"user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
}, | ||
{ | ||
"username": "dummy_preprocessing_pipeline", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Dummy", | ||
"lastName": "Preprocessing", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "dummy_preprocessing_pipeline" | ||
{ | ||
"username": "dummy_preprocessing_pipeline", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Dummy", | ||
"lastName": "Preprocessing", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "dummy_preprocessing_pipeline" | ||
} | ||
], | ||
"realmRoles": [ | ||
"preprocessing_pipeline", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
], | ||
"realmRoles": [ | ||
"preprocessing_pipeline", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
}, | ||
{ | ||
"username": "superuser", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Dummy", | ||
"lastName": "SuperUser", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "superuser" | ||
{ | ||
"username": "superuser", | ||
"enabled": true, | ||
"email": "[email protected]", | ||
"emailVerified" : true, | ||
"firstName": "Dummy", | ||
"lastName": "SuperUser", | ||
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "superuser" | ||
} | ||
], | ||
"realmRoles": [ | ||
"super_user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
], | ||
"realmRoles": [ | ||
"super_user", | ||
"offline_access" | ||
], | ||
"attributes": { | ||
"university": "University of Test" | ||
}, | ||
"clientRoles": { | ||
"account": [ | ||
"manage-account" | ||
] | ||
} | ||
}, | ||
{{ end }} | ||
{ | ||
"username": "silo_import_job", | ||
"enabled": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -900,3 +900,4 @@ auth: | |
envelopeFrom: "[email protected]" | ||
verifyEmail: true | ||
resetPasswordAllowed: true | ||
devMode: true # TODO https://github.com/loculus-project/loculus/issues/1568: remove this from default Values |