Commit 08872633 authored by Sietse Ringers's avatar Sietse Ringers

test: add Verify subtest

parent 277b5a9f
Pipeline #33679 passed with stages
in 7 minutes and 59 seconds
......@@ -77,6 +77,15 @@ func TestVerify(t *testing.T) {
require.NoError(t, err)
require.Equal(t, irma.ProofStatusMissingAttributes, status)
})
t.Run("wrong nonce", func(t *testing.T) {
client, request, disclosure := parseDisclosure(t)
request.Nonce = big.NewInt(100)
_, status, err := disclosure.Verify(client.Configuration, request)
require.NoError(t, err)
require.Equal(t, irma.ProofStatusInvalid, status)
})
}
func verifyClientIsUnmarshaled(t *testing.T, client *Client) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment