From 95093207be804ebcc9fd1fc539c0904f5eee0457 Mon Sep 17 00:00:00 2001 From: Bassam Riman Date: Tue, 30 Apr 2024 10:59:04 -0400 Subject: [PATCH] ATL-6775: integration test Signed-off-by: Bassam Riman --- .../client/kotlin/.openapi-generator-ignore | 4 ++ .../client/models/DateTimeParameter.kt | 34 ++++++++++++++++ .../identus/client/models/DidParameter.kt | 34 ++++++++++++++++ .../client/models/VcVerificationParameter.kt | 39 +++++++++++++++++++ .../steps/verification/VcVerificationSteps.kt | 4 +- 5 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt create mode 100644 cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt create mode 100644 cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt diff --git a/cloud-agent/client/kotlin/.openapi-generator-ignore b/cloud-agent/client/kotlin/.openapi-generator-ignore index 6d1ca9e7b9..2f78a69926 100644 --- a/cloud-agent/client/kotlin/.openapi-generator-ignore +++ b/cloud-agent/client/kotlin/.openapi-generator-ignore @@ -11,3 +11,7 @@ src/main/kotlin/org/hyperledger/identus/client/models/ServiceType.kt src/main/kotlin/org/hyperledger/identus/client/models/StatusPurpose.kt src/main/kotlin/org/hyperledger/identus/client/models/CredentialSubject.kt + +src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt +src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt +src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt diff --git a/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt new file mode 100644 index 0000000000..8016c0640d --- /dev/null +++ b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt @@ -0,0 +1,34 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.hyperledger.identus.client.models + + +import com.google.gson.annotations.SerializedName + +/** + * + * + * @param dateTime + */ + + +data class DateTimeParameter : VcVerificationParameter(dateTime, null) ( + + @SerializedName("dateTime") + val dateTime: java.time.OffsetDateTime + +) + diff --git a/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt new file mode 100644 index 0000000000..180525d147 --- /dev/null +++ b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt @@ -0,0 +1,34 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.hyperledger.identus.client.models + + +import com.google.gson.annotations.SerializedName + +/** + * + * + * @param aud + */ + + +data class DidParameter : VcVerificationParameter(null, aud)( + + @SerializedName("aud") + val aud: kotlin.String + +) + diff --git a/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt new file mode 100644 index 0000000000..fbf9ea3860 --- /dev/null +++ b/cloud-agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt @@ -0,0 +1,39 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +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 + +/** + * + * + * @param dateTime + * @param aud + */ + + +open class VcVerificationParameter ( + + @SerializedName("dateTime") + val dateTime: java.time.OffsetDateTime? = null, + + @SerializedName("aud") + val aud: kotlin.String? = null +) + diff --git a/tests/integration-tests/src/test/kotlin/steps/verification/VcVerificationSteps.kt b/tests/integration-tests/src/test/kotlin/steps/verification/VcVerificationSteps.kt index 9e0d2f8037..a2ea92e969 100644 --- a/tests/integration-tests/src/test/kotlin/steps/verification/VcVerificationSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/verification/VcVerificationSteps.kt @@ -24,11 +24,11 @@ class VcVerificationSteps { ParameterizableVcVerification(VcVerification.SIGNATURE_VERIFICATION), ParameterizableVcVerification( VcVerification.NOT_BEFORE_CHECK, - DateTimeParameter(OffsetDateTime.now()) as VcVerificationParameter, + DateTimeParameter(OffsetDateTime.now()), ), ParameterizableVcVerification( VcVerification.EXPIRATION_CHECK, - DateTimeParameter(OffsetDateTime.now()) as VcVerificationParameter, + DateTimeParameter(OffsetDateTime.now()), ), ), ),