Skip to content

Commit

Permalink
IS-2797: legge til kilde på dialogmeldingbestillinger
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Nov 15, 2024
1 parent 9a42fd5 commit ce9e95d
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import org.amshove.kluent.shouldBeAfter
import org.amshove.kluent.shouldBeEqualTo
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
import redis.clients.jedis.JedisPool
import redis.clients.jedis.JedisPoolConfig
import redis.clients.jedis.Protocol
import redis.clients.jedis.*

object IdenthendelseServiceSpek : Spek({

Expand All @@ -33,6 +31,7 @@ object IdenthendelseServiceSpek : Spek({
val externalMockEnvironment = ExternalMockEnvironment.getInstance()
val database = externalMockEnvironment.database
val cacheMock = mockk<RedisStore>()
val redisConfig = externalMockEnvironment.environment.redisConfig
val pdlClient = PdlClient(
azureAdV2Client = AzureAdV2Client(
aadAppClient = externalMockEnvironment.environment.aadAppClient,
Expand All @@ -41,9 +40,11 @@ object IdenthendelseServiceSpek : Spek({
redisStore = RedisStore(
JedisPool(
JedisPoolConfig(),
externalMockEnvironment.environment.redisConfig.host,
externalMockEnvironment.environment.redisConfig.port,
Protocol.DEFAULT_TIMEOUT,
HostAndPort(redisConfig.host, redisConfig.port),
DefaultJedisClientConfig.builder()
.ssl(redisConfig.ssl)
.password(redisConfig.redisPassword)
.build()
)
),
),
Expand Down

0 comments on commit ce9e95d

Please sign in to comment.