Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fixes revoked jwt verification test #164

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions E2E/e2eTests/Source/Workflows/EdgeAgentWorkflow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,16 @@ class EdgeAgentWorkflow {
let presentation = try await edgeAgent.using(ability: UseWalletSdk.self, action: "retrieves presentation message")
.presentationStack.removeFirst()
do {
let result = try await edgeAgent.using(ability: UseWalletSdk.self, action: "")
let result = try await edgeAgent.using(ability: UseWalletSdk.self, action: "verify the presentation")
.sdk.verifyPresentation(message: presentation)
assertThat(result, equalTo(expected))
} catch PolluxError.cannotVerifyPresentationInputs {

print("teste")
// if (e.message.includes("credential is revoked")) {
// assert.isTrue(expected === false)
// } else {
// throw e
// }
} catch let error as PolluxError {
switch error {
case .credentialIsRevoked:
assertThat(expected == false)
default:
throw error
}
}
}
}
Loading