test: add constant for tags
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package eventDemo.externalServices
|
||||
|
||||
import eventDemo.Tag
|
||||
import eventDemo.testKoinApplicationWithConfig
|
||||
import io.kotest.core.NamedTag
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
import io.kotest.matchers.equals.shouldBeEqual
|
||||
import javax.sql.DataSource
|
||||
|
||||
class PostgresqlTest :
|
||||
FunSpec({
|
||||
tags(NamedTag("postgresql"))
|
||||
tags(Tag.Postgresql)
|
||||
|
||||
test("test connection with postgresql") {
|
||||
testKoinApplicationWithConfig {
|
||||
|
||||
@@ -5,9 +5,9 @@ import com.rabbitmq.client.BuiltinExchangeType
|
||||
import com.rabbitmq.client.ConnectionFactory
|
||||
import com.rabbitmq.client.DefaultConsumer
|
||||
import com.rabbitmq.client.Envelope
|
||||
import eventDemo.Tag
|
||||
import eventDemo.testKoinApplicationWithConfig
|
||||
import io.kotest.assertions.nondeterministic.eventually
|
||||
import io.kotest.core.NamedTag
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
import io.kotest.matchers.string.shouldStartWith
|
||||
import io.mockk.mockk
|
||||
@@ -18,7 +18,7 @@ import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
class RabbitMQTest :
|
||||
FunSpec({
|
||||
tags(NamedTag("rabbitmq"))
|
||||
tags(Tag.RabbitMQ)
|
||||
|
||||
test("test connection with RabbitMQ") {
|
||||
testKoinApplicationWithConfig {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package eventDemo.externalServices
|
||||
|
||||
import io.kotest.core.NamedTag
|
||||
import eventDemo.Tag
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
import io.kotest.matchers.equals.shouldBeEqual
|
||||
import redis.clients.jedis.JedisPooled
|
||||
@@ -9,7 +9,7 @@ private val redisUrl = "redis://localhost:6379"
|
||||
|
||||
class RedisTest :
|
||||
FunSpec({
|
||||
tags(NamedTag("redis"))
|
||||
tags(Tag.Redis)
|
||||
|
||||
xtest("test connection with jedis") {
|
||||
JedisPooled(redisUrl).also {
|
||||
|
||||
Reference in New Issue
Block a user