Skip to content

Commit

Permalink
docs: add integration tests documentation and tutorials (#807)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Baliasnikov <anton.baliasnikov@iohk.io>
  • Loading branch information
Anton Baliasnikov authored and Shota Jolbordi committed Mar 18, 2024
1 parent cfdd735 commit 6a2b7ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration-tests/src/test/kotlin/features/Init.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,7 +25,7 @@ val config = ConfigLoader().loadConfigOrThrow<Config>(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()
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6a2b7ec

Please sign in to comment.