Skip to content
Snippets Groups Projects
Commit 4e65edee authored by OZGCloud's avatar OZGCloud
Browse files

OZG-1889 realm roles to client roles

parent f157ef3a
Branches
Tags
No related merge requests found
...@@ -425,8 +425,8 @@ Void generateKeycloakUserYaml(String namespace) { ...@@ -425,8 +425,8 @@ Void generateKeycloakUserYaml(String namespace) {
newUserYaml.spec.user.lastName = userJson.lastName newUserYaml.spec.user.lastName = userJson.lastName
} }
if(userJson.realmRoles) { if(userJson.clientRoles) {
newUserYaml.spec.user.realmRoles += userJson.realmRoles newUserYaml.spec.user.clientRoles = [namespace+"-goofy": userJson.clientRoles]
} }
if(userJson.groups) { if(userJson.groups) {
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
"fullName": "Emil Ernst", "fullName": "Emil Ernst",
"initials": "EE", "initials": "EE",
"dataTestId": "Emil_Ernst", "dataTestId": "Emil_Ernst",
"realmRoles": ["EINHEITLICHER_ANSPRECHPARTNER"] "clientRoles": ["EINHEITLICHER_ANSPRECHPARTNER"]
} }
\ No newline at end of file
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"password": "Y9nk43yrQ_zzIPpfFU-I", "password": "Y9nk43yrQ_zzIPpfFU-I",
"firstName": "Peter", "firstName": "Peter",
"lastName": "von der Post", "lastName": "von der Post",
"realmRoles": ["VERWALTUNG_POSTSTELLE"] "clientRoles": ["VERWALTUNG_POSTSTELLE"]
} }
\ No newline at end of file
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
"fullName": "Sabine Solala", "fullName": "Sabine Solala",
"initials": "SS", "initials": "SS",
"dataTestId": "Sabine_Solala", "dataTestId": "Sabine_Solala",
"realmRoles": ["VERWALTUNG_USER"], "clientRoles": ["VERWALTUNG_USER"],
"groups": ["E2E Tests"] "groups": ["E2E Tests"]
} }
\ No newline at end of file
{ {
"name": "zonk", "name": "zonk",
"password": "Zonk4Nothing", "password": "Zonk4Nothing",
"realmRoles": ["VERWALTUNG_USER"] "clientRoles": ["VERWALTUNG_USER"]
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment