From 6a2b7ec755622dce3f49502ec098f2cebb82630d Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Wed, 6 Dec 2023 11:27:09 +0000 Subject: [PATCH] docs: add integration tests documentation and tutorials (#807) Signed-off-by: Anton Baliasnikov --- tests/integration-tests/src/test/kotlin/features/Init.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration-tests/src/test/kotlin/features/Init.kt b/tests/integration-tests/src/test/kotlin/features/Init.kt index 1035d14736..6f4d8ceccb 100644 --- a/tests/integration-tests/src/test/kotlin/features/Init.kt +++ b/tests/integration-tests/src/test/kotlin/features/Init.kt @@ -1,8 +1,8 @@ package features +import abilities.ListenToEvents import com.sksamuel.hoplite.ConfigException import com.sksamuel.hoplite.ConfigLoader -import common.ListenToEvents import common.TestConstants import config.Config import io.cucumber.java.AfterAll @@ -25,7 +25,7 @@ val config = ConfigLoader().loadConfigOrThrow(TestConstants.TESTS_CONFIG */ fun initServices() { config.services?.keycloak?.start( - config.roles.filter { it.name != "Admin" }.map { it.name } + config.roles.map { it.name } ) config.services?.prismNode?.start() config.services?.vault?.start() @@ -89,7 +89,7 @@ fun initActors() { ) } if (config.services?.keycloak != null) { - cast.actors.filter { it.name != "Admin" }.forEach { actor -> + cast.actors.forEach { actor -> try { actor.remember("BEARER_TOKEN", config.services.keycloak.getKeycloakAuthToken(actor.name, actor.name)) } catch (e: NullPointerException) {