From 1ff5225bec55504cb212f206a6166f7394f53c7a Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 17 Dec 2021 11:20:45 +0100 Subject: [PATCH] OZG-1781 enhance keycloak operator resources --- questions.yml | 5 +++-- unit-tests/keycloak_client_test.yaml | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/questions.yml b/questions.yml index 1748672841..03e65ef96f 100644 --- a/questions.yml +++ b/questions.yml @@ -26,8 +26,9 @@ questions: label: "Name of the pluto deployment in the namespace" - variable: sso.role_einheitlicher_ansprechpartner group: "Other" - type: string - default: "false" + type: enum + default: "true" + options: ["false", "true"] label: "Add role for EA" - variable: sso.apiPassword group: "Other" diff --git a/unit-tests/keycloak_client_test.yaml b/unit-tests/keycloak_client_test.yaml index f7b542a4bf..8f53068828 100644 --- a/unit-tests/keycloak_client_test.yaml +++ b/unit-tests/keycloak_client_test.yaml @@ -23,6 +23,17 @@ tests: content: name: EINHEITLICHER_ANSPRECHPARTNER clientRole: true + - it: role_einheitlicher_ansprechpartner adds the role in the client object + set: + sso.role_einheitlicher_ansprechpartner: false + asserts: + - isKind: + of: KeycloakClient + - notContains: + path: spec.roles + content: + name: EINHEITLICHER_ANSPRECHPARTNER + clientRole: true - it: role_einheitlicher_ansprechpartner is not set at default asserts: - isKind: -- GitLab