Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Dec 13, 2022
1 parent 971da81 commit 1e80937
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
14 changes: 14 additions & 0 deletions tests/e2e-tests/src/test/kotlin/common/CredentialSchemas.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package common

import api_models.CredentialSchema

object CredentialSchemas {
val STUDENT_SCHEMA = CredentialSchema(
author = "University",
name = "Student schema",
description = "Simple student credentials schema",
attributes = listOf("name", "age"),
tags = listOf("school", "students"),
version = "1.0"
)
}
12 changes: 0 additions & 12 deletions tests/e2e-tests/src/test/kotlin/common/TestConstants.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
package common

import api_models.CredentialSchema
import java.util.UUID

object TestConstants {
val CREDENTIAL_SCHEMAS = CredentialSchemas
val RANDOM_CONSTAND_UUID = UUID.randomUUID().toString()
}

object CredentialSchemas {
val STUDENT_SCHEMA = CredentialSchema(
author = "University",
name = "Student schema",
description = "Simple student credentials schema",
attributes = listOf("name", "age"),
tags = listOf("school", "students"),
version = "1.0"
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ConnectionSteps {
inviter.attemptsTo(
Post.to("/connections")
.with {
it.header("Content-Type", "application/json")
it.body("""{"label": "$connectionLabel"}""")
}
)
Expand Down Expand Up @@ -73,7 +72,6 @@ class ConnectionSteps {
invitee.attemptsTo(
Post.to("/connection-invitations")
.with {
it.header("Content-Type", "application/json")
it.body("""{"invitation": "${invitee.recall<String>("invitationUrl")}"}""")
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class CredentialSchemasSteps {
actor.attemptsTo(
Post.to("/schema-registry/schemas")
.with {
it.header("Content-Type", "application/json")
it.body(TestConstants.CREDENTIAL_SCHEMAS.STUDENT_SCHEMA)
}
)
Expand Down Expand Up @@ -58,7 +57,6 @@ class CredentialSchemasSteps {
actor.attemptsTo(
Post.to("/schema-registry/schemas")
.with {
it.header("Content-Type", "application/json")
it.body(TestConstants.CREDENTIAL_SCHEMAS.STUDENT_SCHEMA)
}
)
Expand Down Expand Up @@ -93,7 +91,6 @@ class CredentialSchemasSteps {
actor.attemptsTo(
Post.to("/schema-registry/schemas")
.with {
it.header("Content-Type", "application/json")
it.body(wrongSchema)
}
)
Expand All @@ -111,7 +108,6 @@ class CredentialSchemasSteps {
actor.attemptsTo(
Post.to("/schema-registry/schemas")
.with {
it.header("Content-Type", "application/json")
it.body(wrongSchema)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class IssueCredentialsSteps {
issuer.attemptsTo(
Post.to("/issue-credentials/credential-offers")
.with {
it.header("Content-Type", "application/json")
it.body(newCredential)
}
)
Expand Down

0 comments on commit 1e80937

Please sign in to comment.