-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add technical user with role * seed technical users * remove setting kcid in migration * fix technical user seeding * adjust test seeding * rename seeding file * adjust test * remove unnecessary code * test no id in technical user seeding * implementing overrideID's * add overrideID to rolle, service-provider, personenkext * add technical User override Id, add uuid validation * write tests for isValidUuid * writing test for personenkontext seeding overrideId * writing test for rolle seeding with overrideId * add overrideId to service-provider factory * add overrideId test for service-provider * move validation functions * remove overrideId from repos, adjust tests, set create in repos to public * adding rolle integration test for overrideIDd * addings tests and test files for seeding * change id to number, remove empty space, wrap in if clause, move position id position in PersonCreationParama * fix test for organisation seeding --------- Co-authored-by: Timo K <[email protected]> Co-authored-by: Niklas Koopmann <[email protected]>
- Loading branch information
1 parent
c889272
commit ffbf6e4
Showing
22 changed files
with
268 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -5302,4 +5302,4 @@ | |
"zugehoerigZu": 64 | ||
} | ||
] | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
seeding/seeding-integration-test/organisation/08_organisation_with_overrideId.json
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"entityName": "Organisation", | ||
"entities": [ | ||
{ | ||
"id": 1, | ||
"overrideId": "85a5a9e2-865d-4c79-bbe9-0cff8cc57883", | ||
"kennung": "Organisation1", | ||
"name": "Schule1", | ||
"namensergaenzung": "Keine", | ||
"kuerzel": "01", | ||
"typ": "SCHULE", | ||
"traegerschaft": "05", | ||
"administriertVon": 0 | ||
} | ||
] | ||
} | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
seeding/seeding-integration-test/personenkontext/06_personenkontext-with-overrideId.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"entityName": "Personenkontext", | ||
"entities": [ | ||
{ | ||
"personId": 1234, | ||
"overrideId": "85a5a9e2-865d-4c79-bbe9-0cff8cc57883", | ||
"organisationId": 1234, | ||
"rolleId": 1234 | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
seeding/seeding-integration-test/rolle/09_rolle_with_override_id.json
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"entityName": "Rolle", | ||
"entities": [ | ||
{ | ||
"id": 0, | ||
"overrideId": "85a5a9e2-865d-4c79-bbe9-0cff8cc57883", | ||
"name": "Rolle1", | ||
"administeredBySchulstrukturknoten": 0, | ||
"rollenart": "LERN", | ||
"merkmale": [], | ||
"systemrechte": [], | ||
"serviceProviderIds": [], | ||
"istTechnisch": false, | ||
"serviceProviderData": [] | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
seeding/seeding-integration-test/serviceProvider/04_service-provider-with-overrideId.json
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"entityName": "ServiceProvider", | ||
"entities": [ | ||
{ | ||
"name": "itslearning", | ||
"overrideId": "d12f5972-2391-4e9a-9e91-65a917fb4dd0", | ||
"target": "URL", | ||
"url": "https://itslearning.com/de", | ||
"kategorie": "UNTERRICHT", | ||
"logoMimeType": "image/png", | ||
"logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAACklEQVR4AWNgAAAAAgABc3UBGAAAAABJRU5ErkJggg==", | ||
"providedOnSchulstrukturknoten": 111, | ||
"requires2fa": false | ||
} | ||
] | ||
} |
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
Oops, something went wrong.