From c000b1f016955047976028805d8ef021773c244e Mon Sep 17 00:00:00 2001 From: Miha Dolinar Date: Thu, 29 Apr 2021 16:05:52 +0200 Subject: [PATCH] Add tests that the client_secret is not visible We add integration tests in a module to be sure that the client_secret value is hidden in the oidc_auth_provider module. --- .../molecule/module_oidc_auth_provider/converge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/molecule/module_oidc_auth_provider/converge.yml b/tests/integration/molecule/module_oidc_auth_provider/converge.yml index 51ab1eda..89f42f48 100644 --- a/tests/integration/molecule/module_oidc_auth_provider/converge.yml +++ b/tests/integration/molecule/module_oidc_auth_provider/converge.yml @@ -119,7 +119,7 @@ - result.objects.0.metadata.name == 'oidc_name' - result.objects.0.additional_scopes == ['openid'] - result.objects.0.client_id == 'a8e43af034e7f2608780' - #- "'client_secret' not in result.objects.0" + - "'client_secret' not in result.objects.0" - result.objects.0.server == 'https://oidc.example.com:9031' - result.objects.0.username_claim == 'email' @@ -141,7 +141,7 @@ - result.objects.0.metadata.name == 'oidc_name' - result.objects.0.additional_scopes == ['groups', 'email', 'username'] - result.objects.0.client_id == 'a8e43af034e7f2608780' - #- "'client_secret' not in result.objects.0" + - "'client_secret' not in result.objects.0" - result.objects.0.server == 'https://oidc.example.com:9031' - result.objects.0.username_claim == 'email'