Skip to content

Commit

Permalink
ATL-6775: integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Bassam Riman <[email protected]>
  • Loading branch information
CryptoKnightIOG committed Apr 30, 2024
1 parent 9509320 commit 57ad9bb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 78 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

package org.hyperledger.identus.client.models

import org.hyperledger.identus.client.models.DateTimeParameter
import org.hyperledger.identus.client.models.DidParameter

import com.google.gson.annotations.SerializedName

/**
Expand All @@ -28,10 +25,10 @@ import com.google.gson.annotations.SerializedName
*/


open class VcVerificationParameter (
data class VcVerificationParameter (

@SerializedName("dateTime")
val dateTime: java.time.OffsetDateTime? = null,
var dateTime: java.time.OffsetDateTime? = null,

@SerializedName("aud")
val aud: kotlin.String? = null
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies {
testImplementation("io.ktor:ktor-server-netty:2.3.0")
testImplementation("io.ktor:ktor-client-apache:2.3.0")
// RestAPI client
testImplementation("org.hyperledger.identus:cloud-agent-client-kotlin:1.32.0")
testImplementation("org.hyperledger.identus:cloud-agent-client-kotlin:1.32.0-SNAPSHOT")
// Test helpers library
testImplementation("io.iohk.atala:atala-automation:0.3.2")
// Hoplite for configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import net.serenitybdd.cucumber.CucumberWithSerenity
import org.junit.runner.RunWith

@CucumberOptions(
features = ["src/test/resources/features"],
features = ["src/test/resources/features/verification"],
snippets = CucumberOptions.SnippetType.CAMELCASE,
plugin = ["pretty"],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class VcVerificationSteps {
ParameterizableVcVerification(VcVerification.SIGNATURE_VERIFICATION),
ParameterizableVcVerification(
VcVerification.NOT_BEFORE_CHECK,
DateTimeParameter(OffsetDateTime.now()),
VcVerificationParameter(dateTime = OffsetDateTime.now()),
),
ParameterizableVcVerification(
VcVerification.EXPIRATION_CHECK,
DateTimeParameter(OffsetDateTime.now()),
VcVerificationParameter(dateTime = OffsetDateTime.now()),
),
),
),
Expand All @@ -37,7 +37,7 @@ class VcVerificationSteps {
listOf(
ParameterizableVcVerification(
VcVerification.AUDIENCE_CHECK,
DidParameter("did:prism:verifier") as VcVerificationParameter,
VcVerificationParameter(aud = "did:prism:verifier"),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Feature: Vc Verification schemas

Background:
When Issuer creates unpublished DID

Scenario: Successful Verifies VcVerificationRequest
When Issuer verifies VcVerificationRequest

0 comments on commit 57ad9bb

Please sign in to comment.