From d68d313a1f3725eb8d79dd630fac35b9dbf5b100 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Mon, 18 Sep 2023 22:07:14 -0300 Subject: [PATCH] fix: bump version for prism-agent v1.16 compatibility --- tests/end-to-end/build.gradle.kts | 2 +- .../kotlin/io/iohk/atala/prism/configuration/Environment.kt | 6 ------ .../io/iohk/atala/prism/workflow/CloudAgentWorkflow.kt | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/end-to-end/build.gradle.kts b/tests/end-to-end/build.gradle.kts index 1e20c7ee1..abc811131 100644 --- a/tests/end-to-end/build.gradle.kts +++ b/tests/end-to-end/build.gradle.kts @@ -24,7 +24,7 @@ repositories { dependencies { testImplementation("io.iohk.atala.prism.walletsdk:atala-prism-sdk:2.3.1") testImplementation("io.iohk.atala.prism:prism-kotlin-client:1.9.2") - testImplementation("io.iohk.atala:atala-automation:0.1.2") + testImplementation("io.iohk.atala:atala-automation:0.3.0") } tasks.test { diff --git a/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/configuration/Environment.kt b/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/configuration/Environment.kt index 9e62b9303..74dcec0a4 100644 --- a/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/configuration/Environment.kt +++ b/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/configuration/Environment.kt @@ -6,9 +6,6 @@ import io.iohk.atala.prism.models.* import io.iohk.atala.prism.utils.Notes import io.restassured.RestAssured import io.restassured.builder.RequestSpecBuilder -import io.restassured.config.ObjectMapperConfig -import io.restassured.config.RestAssuredConfig -import io.restassured.mapper.ObjectMapperType import io.restassured.response.Response import net.serenitybdd.rest.SerenityRest import org.apache.http.HttpStatus @@ -52,9 +49,6 @@ object Environment { .build() SerenityRest.setDefaultRequestSpecification(requestSpecification) } - SerenityRest.setDefaultConfig( - RestAssuredConfig.newConfig().objectMapperConfig(ObjectMapperConfig(ObjectMapperType.GSON)) - ) // check if DID and schema exist preparePublishedDid(properties.getProperty("PUBLISHED_DID")) diff --git a/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/workflow/CloudAgentWorkflow.kt b/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/workflow/CloudAgentWorkflow.kt index ab117d75b..5eed0da5e 100644 --- a/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/workflow/CloudAgentWorkflow.kt +++ b/tests/end-to-end/src/test/kotlin/io/iohk/atala/prism/workflow/CloudAgentWorkflow.kt @@ -21,6 +21,7 @@ class CloudAgentWorkflow { Post.to("/connections").body(createConnection), Ensure.thatTheLastResponse().statusCode().isEqualTo(HttpStatus.SC_CREATED) ) + cloudAgent.remember("invitation", lastResponse().get("invitation.invitationUrl")) cloudAgent.remember("connectionId", lastResponse().get("connectionId")) }