Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Jan 10, 2023
1 parent d7140d3 commit a642039
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package api_models
data class PresentationProof(
var presentationId: String? = null,
var status: String? = null,
var proofs: List<String>? = null
var proofs: List<String>? = null,
var data: List<String>? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ class ConnectionSteps {
@When("{actor} receives the connection response")
fun inviteeReceivesTheConnectionResponse(invitee: Actor) {
// Bob (Holder) receives final connection response
invitee.attemptsTo(
Get.resource("/connections")
)
println(SerenityRest.lastResponse().prettyPrint())
wait(
{
invitee.attemptsTo(
Expand All @@ -151,9 +147,7 @@ class ConnectionSteps {
it.statusCode(SC_OK)
}
)
println(lastResponseObject("", Connection::class).state)
lastResponseObject("", Connection::class).state == "ConnectionResponseReceived" ||
lastResponseObject("", Connection::class).state == "ConnectionResponseSent"
lastResponseObject("", Connection::class).state == "ConnectionResponseReceived"
},
"Invitee connection didn't reach ConnectionResponseReceived state: state is ${lastResponseObject("", Connection::class).state}"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@ class PresentProofSteps {
val presentation = lastResponseList("", PresentationProof::class).find {
it.presentationId == faber.recall<String>("presentationId")
}
presentation!= null &&
(presentation.status == "PresentationReceived"|| presentation.status == "PresentationVerified")
presentation != null &&
(presentation.status == "PresentationReceived" || presentation.status == "PresentationVerified")
},
"ERROR: Faber did not receive presentation from Bob!",
timeout = Duration.ofSeconds(300L)
"ERROR: Faber did not receive presentation from Bob!"
)

}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-tests/src/test/kotlin/runners/E2eTestsRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.junit.runner.RunWith

@CucumberOptions(
features = [
"src/test/resources/features/present_proof"
"src/test/resources/features"
],
glue = ["features"],
snippets = CucumberOptions.SnippetType.CAMELCASE,
Expand Down

0 comments on commit a642039

Please sign in to comment.