Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: integration test #915

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading