fixing(gradle)
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@ import at.mocode.infrastructure.auth.client.model.BerechtigungE
|
||||
import com.auth0.jwt.JWT
|
||||
import com.auth0.jwt.algorithms.Algorithm
|
||||
import com.auth0.jwt.exceptions.JWTVerificationException
|
||||
import mu.KotlinLogging
|
||||
import java.util.Date
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import java.util.*
|
||||
import kotlin.time.Duration
|
||||
import kotlin.time.Duration.Companion.minutes
|
||||
|
||||
|
||||
+12
-4
@@ -1,7 +1,10 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import mu.KotlinLogging
|
||||
import at.mocode.infrastructure.cache.api.CacheSerializer
|
||||
import at.mocode.infrastructure.cache.api.DefaultCacheConfiguration
|
||||
import at.mocode.infrastructure.cache.api.get
|
||||
import at.mocode.infrastructure.cache.api.multiGet
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
|
||||
@@ -12,7 +15,9 @@ import org.testcontainers.containers.GenericContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
import org.testcontainers.utility.DockerImageName
|
||||
import kotlin.test.*
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFalse
|
||||
import kotlin.test.assertTrue
|
||||
import kotlin.time.Duration.Companion.days
|
||||
import kotlin.time.Duration.Companion.hours
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
@@ -31,7 +36,10 @@ class RedisDistributedCacheConfigurationTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+9
-3
@@ -1,7 +1,7 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import mu.KotlinLogging
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
|
||||
@@ -12,7 +12,10 @@ import org.testcontainers.containers.GenericContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
import org.testcontainers.utility.DockerImageName
|
||||
import kotlin.test.*
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertNull
|
||||
import kotlin.test.assertTrue
|
||||
import kotlin.time.Duration.Companion.minutes
|
||||
|
||||
/**
|
||||
@@ -25,7 +28,10 @@ class RedisDistributedCacheEdgeCasesTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -1,9 +1,9 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import mu.KotlinLogging
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
|
||||
@@ -35,7 +35,10 @@ class RedisDistributedCacheIntegrationTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+8
-4
@@ -1,9 +1,10 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import kotlinx.coroutines.*
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import kotlinx.coroutines.joinAll
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import mu.KotlinLogging
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
|
||||
@@ -14,11 +15,11 @@ import org.testcontainers.containers.GenericContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
import org.testcontainers.utility.DockerImageName
|
||||
import java.util.concurrent.atomic.AtomicInteger
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertTrue
|
||||
import kotlin.time.Duration.Companion.minutes
|
||||
import kotlin.time.measureTime
|
||||
import java.util.concurrent.atomic.AtomicInteger
|
||||
|
||||
/**
|
||||
* Performance and Load Tests for RedisDistributedCache
|
||||
@@ -30,7 +31,10 @@ class RedisDistributedCachePerformanceTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -1,11 +1,11 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import mu.KotlinLogging
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.data.redis.RedisConnectionFailureException
|
||||
@@ -37,7 +37,10 @@ class RedisDistributedCacheResilienceTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -1,10 +1,10 @@
|
||||
package at.mocode.infrastructure.cache.redis
|
||||
|
||||
import at.mocode.infrastructure.cache.api.*
|
||||
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import io.mockk.verify
|
||||
import mu.KotlinLogging
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
@@ -30,7 +30,10 @@ class RedisDistributedCacheTest {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Container
|
||||
val redisContainer = GenericContainer<Nothing>(DockerImageName.parse("redis:7-alpine")).apply {
|
||||
val redisContainer = GenericContainer<Nothing>(
|
||||
DockerImageName.parse("redis:7-alpine")
|
||||
.asCompatibleSubstituteFor("redis")
|
||||
).apply {
|
||||
withExposedPorts(6379)
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -8,9 +8,9 @@ import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.kafka.core.DefaultKafkaProducerFactory
|
||||
import org.springframework.kafka.support.serializer.JsonDeserializer
|
||||
import org.testcontainers.containers.KafkaContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
import org.testcontainers.kafka.KafkaContainer
|
||||
import org.testcontainers.utility.DockerImageName
|
||||
import reactor.kafka.receiver.KafkaReceiver
|
||||
import reactor.kafka.receiver.ReceiverOptions
|
||||
@@ -22,7 +22,9 @@ class KafkaIntegrationTest {
|
||||
|
||||
companion object {
|
||||
@Container
|
||||
private val kafkaContainer = KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.5.0"))
|
||||
private val kafkaContainer = KafkaContainer(
|
||||
DockerImageName.parse("apache/kafka:3.8.1")
|
||||
)
|
||||
}
|
||||
|
||||
private lateinit var kafkaEventPublisher: KafkaEventPublisher
|
||||
|
||||
Reference in New Issue
Block a user