diff --git a/tests/integration-tests/src/test/kotlin/config/services/Agent.kt b/tests/integration-tests/src/test/kotlin/config/services/Agent.kt index 2332d7ee6d..a4e97a603d 100644 --- a/tests/integration-tests/src/test/kotlin/config/services/Agent.kt +++ b/tests/integration-tests/src/test/kotlin/config/services/Agent.kt @@ -3,7 +3,6 @@ package config.services import com.sksamuel.hoplite.ConfigAlias import config.VaultAuthType import org.testcontainers.containers.ComposeContainer -import org.testcontainers.containers.GenericContainer import org.testcontainers.containers.wait.strategy.Wait import java.io.* diff --git a/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageCredentialConfigSteps.kt b/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageCredentialConfigSteps.kt index c85d3a0ddb..8a53c311f9 100644 --- a/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageCredentialConfigSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageCredentialConfigSteps.kt @@ -46,7 +46,7 @@ class ManageCredentialConfigSteps { configurationId = configurationId, format = CredentialFormat.JWT_VC_JSON, schemaId = "$baseUrl/schema-registry/schemas/$schemaGuid/schema", - ) + ), ), Ensure.thatTheLastResponse().statusCode().isEqualTo(HttpStatus.SC_CREATED), ) @@ -65,7 +65,7 @@ class ManageCredentialConfigSteps { fun issuerDeletesANonExistentCredentialConfiguration(issuer: Actor, configurationId: String) { val credentialIssuer = issuer.recall("oid4vciCredentialIssuer") issuer.attemptsTo( - Delete("/oid4vci/issuers/${credentialIssuer.id}/credential-configurations/$configurationId") + Delete("/oid4vci/issuers/${credentialIssuer.id}/credential-configurations/$configurationId"), ) } @@ -109,7 +109,6 @@ class ManageCredentialConfigSteps { @When("{actor} adds '{}' schemaId for credential configuration request") fun issuerAddsSchemaIdToCredentialConfigurationRequest(issuer: Actor, schema: String) { - val credentialIssuer = issuer.recall("credentialConfiguration") val schemaIdProperty = if (schema == "null") { null @@ -126,7 +125,7 @@ class ManageCredentialConfigSteps { val credentialConfiguration = issuer.recall("credentialConfiguration") val credentialIssuerId = issuer.recall("credentialConfigurationId").toString() issuer.attemptsTo( - Post.to("/oid4vci/issuers/${credentialIssuerId}/credential-configurations").body(credentialConfiguration) + Post.to("/oid4vci/issuers/$credentialIssuerId/credential-configurations").body(credentialConfiguration), ) } @@ -161,7 +160,7 @@ class ManageCredentialConfigSteps { fun issuerShouldSeeCredentialConfigurationRequestHasFailed(issuer: Actor, statusCode: Int, errorDetail: String) { issuer.attemptsTo( Ensure.thatTheLastResponse().statusCode().isEqualTo(statusCode), - Ensure.that(SerenityRest.lastResponse().body.asString()).contains(errorDetail) + Ensure.that(SerenityRest.lastResponse().body.asString()).contains(errorDetail), ) } } diff --git a/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageIssuerSteps.kt b/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageIssuerSteps.kt index 2113647d15..e78408078f 100644 --- a/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageIssuerSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/oid4vci/ManageIssuerSteps.kt @@ -1,10 +1,7 @@ package steps.oid4vci -import com.google.gson.Gson import com.google.gson.GsonBuilder -import com.google.gson.JsonNull import com.google.gson.JsonObject -import com.google.gson.JsonPrimitive import interactions.Delete import interactions.Get import interactions.Patch @@ -14,7 +11,6 @@ import io.cucumber.java.en.Given import io.cucumber.java.en.Then import io.cucumber.java.en.When import io.iohk.atala.automation.extensions.get -import io.iohk.atala.automation.extensions.toJsonPath import io.iohk.atala.automation.serenity.ensure.Ensure import net.serenitybdd.rest.SerenityRest import net.serenitybdd.screenplay.Actor @@ -100,7 +96,7 @@ class ManageIssuerSteps { ), ), ), - Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_OK) + Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_OK), ) } @@ -113,7 +109,7 @@ class ManageIssuerSteps { val gson = GsonBuilder().serializeNulls().create() issuer.attemptsTo( - Patch.to("/oid4vci/issuers/${credentialIssuer.id}").body(gson.toJson(body)) + Patch.to("/oid4vci/issuers/${credentialIssuer.id}").body(gson.toJson(body)), ) } @@ -132,7 +128,7 @@ class ManageIssuerSteps { id: String, url: String, clientId: String, - clientSecret: String + clientSecret: String, ) { val idProperty = if (id == "null") { null @@ -167,7 +163,7 @@ class ManageIssuerSteps { val gson = GsonBuilder().serializeNulls().create() issuer.attemptsTo( - Post.to("/oid4vci/issuers").body(gson.toJson(body)) + Post.to("/oid4vci/issuers").body(gson.toJson(body)), ) } @@ -176,7 +172,7 @@ class ManageIssuerSteps { SerenityRest.lastResponse().body.prettyPrint() issuer.attemptsTo( Ensure.that(SerenityRest.lastResponse().statusCode).isEqualTo(httpStatus), - Ensure.that(SerenityRest.lastResponse().body.asString()).contains(errorDetail) + Ensure.that(SerenityRest.lastResponse().body.asString()).contains(errorDetail), ) }