Skip to content

Commit

Permalink
fix: integration test (#915)
Browse files Browse the repository at this point in the history
Signed-off-by: Bassam Riman <[email protected]>
  • Loading branch information
CryptoKnightIOG authored Mar 1, 2024
1 parent 3dcfd7f commit 320ab6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation("io.ktor:ktor-server-netty:2.3.0")
implementation("io.ktor:ktor-client-apache:2.3.0")
// RestAPI client
implementation("io.iohk.atala.prism:prism-kotlin-client:1.18.0")
implementation("io.iohk.atala.prism:prism-kotlin-client:1.30.0")
// Test helpers library
testImplementation("io.iohk.atala:atala-automation:0.3.0")
// Hoplite for configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import io.cucumber.java.en.Then
import io.cucumber.java.en.When
import io.iohk.atala.automation.extensions.get
import io.iohk.atala.automation.serenity.ensure.Ensure
import io.iohk.atala.prism.models.VerificationPolicy
import io.iohk.atala.prism.models.VerificationPolicyResponse
import io.iohk.atala.prism.models.VerificationPolicyInput
import net.serenitybdd.rest.SerenityRest
import net.serenitybdd.screenplay.Actor
Expand All @@ -33,7 +33,7 @@ class VerificationPoliciesSteps {

@Then("{actor} sees new verification policy is available")
fun newVerificationPolicyIsAvailable(actor: Actor) {
val policy = SerenityRest.lastResponse().get<VerificationPolicy>()
val policy = SerenityRest.lastResponse().get<VerificationPolicyResponse>()
actor.attemptsTo(
Ensure.that(policy.id).isNotNull(),
Ensure.that(policy.nonce).isNotNull(),
Expand All @@ -56,7 +56,7 @@ class VerificationPoliciesSteps {

@When("{actor} updates a new verification policy")
fun acmeUpdatesAVerificationPolicy(actor: Actor) {
val policy = actor.recall<VerificationPolicy>("policy")
val policy = actor.recall<VerificationPolicyResponse>("policy")
val updatePolicyInput = VerificationPolicyInput(
name = policy.name,
description = "updated description + ${UUID.randomUUID()}",
Expand All @@ -75,9 +75,9 @@ class VerificationPoliciesSteps {
val updatePolicyInput = actor.forget<VerificationPolicyInput>("updatedPolicyInput")

actor.attemptsTo(
Get.resource("/verification/policies/${actor.recall<VerificationPolicy>("policy").id}")
Get.resource("/verification/policies/${actor.recall<VerificationPolicyResponse>("policy").id}")
)
val policy = SerenityRest.lastResponse().get<VerificationPolicy>()
val policy = SerenityRest.lastResponse().get<VerificationPolicyResponse>()

actor.attemptsTo(
Ensure.that(policy.id).isNotNull(),
Expand Down

0 comments on commit 320ab6a

Please sign in to comment.