| Commit message (Collapse) | Author | Age | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
If possible, check specific error codes instead of `is_err()`.  This
makes the code more readable and catches bugs resulting in the wrong
error code.  Also, using the assert_*_err and assert_ok macros yields
error messages containing the expected and the actual value.
To be able to use these macros with the `get_password_safe` method, we
also have to implement `Debug` for `PasswordSafe` and `Device`.
 | 
| | 
| 
| 
| 
| 
|  | 
Previously, library errors were part of the CommandError enum.  As
command errors and library errors are two different error types, they
should be split into two enums.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
These macros allow easier comparisions using the new error type.  This
patch fixes all tests and updates nitrokey-test to 0.2.0 so that it
integrates with the new error structure.
Some tests may still fail until CommunicationError::NotConnected is
actually returned.
 | 
| | 
| 
| 
| 
| 
|  | 
The update PIN is only used in the Storage tests, so it is moved from
the common tests/util module to the tests/device module.  This fixes
compiler warnings when compiling the other test modules.
 | 
| | 
| 
| 
|  | 
This change adjusts the PWS tests to use the nitrokey-test crate.
 | 
| | 
| 
| 
| 
| 
|  | 
This patch adds the change_update_pin method to the Storage struct that
uses the NK_change_update_password function to set the password required
for firmware updates.
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Currently, the test-no-device feature is used for tests that expect no
Nitrokey to be connected.  Yet test-no-device is equivalent to not
test-pro and not test-storage.  Therefore, this patch removes the
test-no-device feature.
 | 
|   
  
  
  
  
   | 
Newer Rust versions support integration tests in a top-level tests
directory.  This patch refactors the existing unit tests into
integration tests.
 |