Skip to content

Commit

Permalink
feat(prism-agent): fix e2e tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
yshyn-iohk committed Mar 17, 2023
1 parent 3a795a3 commit 262c374
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/e2e-tests/src/test/kotlin/common/CredentialSchemas.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,23 @@ object CredentialSchemas {

fun generate_with_name_suffix(suffix: String): CredentialSchema {
return CredentialSchema(
author = "University",
author = "did:prism:agent",
name = "${UUID.randomUUID()} $suffix",
description = "Simple student credentials schema",
type = CREDENTIAL_SCHEMA_TYPE,
schema = ObjectMapper().readTree(JSON_SCHEMA),
tags = listOf("school", "students"),
version = "1.0.0",
authored = "did:prism:agent"
version = "1.0.0"
)
}

val STUDENT_SCHEMA = CredentialSchema(
author = "University",
author = "did:prism:agent",
name = UUID.randomUUID().toString(),
description = "Simple student credentials schema",
type = CREDENTIAL_SCHEMA_TYPE,
schema = ObjectMapper().readTree(JSON_SCHEMA),
tags = listOf("school", "students"),
version = "1.0.0",
authored = "did:prism:agent"
version = "1.0.0"
)
}

0 comments on commit 262c374

Please sign in to comment.