Skip to content

Commit

Permalink
test(functional): update ragger (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepdefic1t authored Aug 17, 2023
1 parent abb0104 commit 7eb0ed2
Show file tree
Hide file tree
Showing 94 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/functional/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.3.1
btclib==2023.2.3
ragger[speculos]==1.8.2
ragger[ledgerwallet]==1.8.2
ragger[speculos]==1.11.4
ragger[ledgerwallet]==1.11.4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions tests/functional/test_sign_message_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def test_sign_message_short(firmware, backend, navigator, test_name):
# test_name)
response = client.get_async_response().data

assert ssa.verify(MESSAGE_SHORT.encode("ascii"), public_key, response) is True
msg_short: bytes = b"".join(
[len(MESSAGE_SHORT).to_bytes(2, byteorder="little"), bytes(MESSAGE_SHORT, "ascii")]
)

assert ssa.verify(msg_short, public_key, response) is True


# In this tests we check the behaviour of the device when asked to sign a long message
Expand Down Expand Up @@ -74,7 +78,11 @@ def test_sign_message_long(firmware, backend, navigator, test_name):
# test_name)
response = client.get_async_response().data

assert ssa.verify(MESSAGE_LONG.encode("ascii"), public_key, response) is True
msg_long: bytes = b"".join(
[len(MESSAGE_LONG).to_bytes(2, byteorder="little"), bytes(MESSAGE_LONG, "ascii")]
)

assert ssa.verify(msg_long, public_key, response) is True


# Message signature refused test
Expand Down

0 comments on commit 7eb0ed2

Please sign in to comment.