Skip to content

Commit

Permalink
M7l3 PostgreSQL FIXES
Browse files Browse the repository at this point in the history
  • Loading branch information
svok committed Oct 2, 2024
1 parent 4ef2ef4 commit 969c501
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
!gradle/wrapper/gradle-wrapper.jar
!**/src/**/build/

**/.kotlin/

/.idea/
/kotlin-js-store/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SimpleWiremockRootTest : StringSpec({
DockerComposeContainer(File("docker-compose/docker-compose-wiremock.yml")).apply {
withOptions("--compatibility")
withExposedService(service, port)
withLocalCompose(true)
// withLocalCompose(true)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package ru.otus.otuskotlin.marketplace.e2e.be.test

import io.kotest.core.annotation.Ignored
import ru.otus.otuskotlin.marketplace.e2e.be.docker.WiremockDockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.BaseFunSpec
import ru.otus.otuskotlin.marketplace.blackbox.fixture.docker.DockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.docker.KtorJvmPGDockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.docker.KtorLinuxPGDockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.docker.SpringDockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.docker.WiremockDockerCompose
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.BaseFunSpec
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.client.RestClient
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.v1.toV1
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.v2.toV2
Expand All @@ -31,6 +30,6 @@ open class AccRestTestBaseShort(dockerCompose: DockerCompose, debug: TestDebug =

class AccRestWiremockTest : AccRestTestBaseFull(WiremockDockerCompose)

class AccRestSpringTest : AccRestTestBaseFull(SpringDockerCompose, debug = TestDebug.PROD)
//class AccRestSpringTest : AccRestTestBaseFull(SpringDockerCompose, debug = TestDebug.PROD)
class AccRestKtorPgJvmTest : AccRestTestBaseFull(KtorJvmPGDockerCompose, debug = TestDebug.PROD)
class AccRestKtorPgLinuxTest : AccRestTestBaseShort(KtorLinuxPGDockerCompose, debug = TestDebug.PROD)
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import io.kotest.assertions.withClue
import io.kotest.matchers.should
import io.kotest.matchers.shouldNotBe
import ru.otus.otuskotlin.marketplace.api.v1.models.*
import ru.otus.otuskotlin.marketplace.blackbox.test.action.beValidId
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.client.Client
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.beValidId

suspend fun Client.readAd(id: String?, debug: AdDebug = debugStubV1): AdResponseObject = readAd(id, debug = debug) {
it should haveSuccessResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import io.kotest.assertions.withClue
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import ru.otus.otuskotlin.marketplace.api.v2.models.*
import ru.otus.otuskotlin.marketplace.blackbox.test.action.beValidId
import ru.otus.otuskotlin.marketplace.blackbox.test.action.beValidLock
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.client.Client
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.beValidId
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.beValidLock

suspend fun Client.deleteAd(ad: AdResponseObject, debug: AdDebug = debugStubV2) {
val id = ad.id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import io.kotest.assertions.withClue
import io.kotest.matchers.should
import io.kotest.matchers.shouldNotBe
import ru.otus.otuskotlin.marketplace.api.v2.models.*
import ru.otus.otuskotlin.marketplace.blackbox.test.action.beValidId
import ru.otus.otuskotlin.marketplace.e2e.be.fixture.client.Client
import ru.otus.otuskotlin.marketplace.e2e.be.test.action.beValidId

suspend fun Client.readAd(id: String?, debug: AdDebug = debugStubV2): AdResponseObject = readAd(id, debug = debug) {
it should haveSuccessResult
Expand Down

0 comments on commit 969c501

Please sign in to comment.