<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/tests/util, branch v0.4.0-alpha.0</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=v0.4.0-alpha.0</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=v0.4.0-alpha.0'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2019-01-23T15:33:26Z</updated>
<entry>
<title>Add license and copyright information</title>
<updated>2019-01-23T15:33:26Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-23T15:33:26Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=fdb7bac3063e62776bfc13f184cf786da19f42d1'/>
<id>urn:sha1:fdb7bac3063e62776bfc13f184cf786da19f42d1</id>
<content type='text'>
This patch adds license and copyright information to all files to make
nitrokey-rs compliant with the REUSE practices [0].

[0] https://reuse.software/practices/2.0/
</content>
</entry>
<entry>
<title>Check specific error codes in the tests</title>
<updated>2019-01-20T21:15:29Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-17T14:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d87859975dc158919ecd5bf11a1111a2da5fcb30'/>
<id>urn:sha1:d87859975dc158919ecd5bf11a1111a2da5fcb30</id>
<content type='text'>
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`.
</content>
</entry>
<entry>
<title>Refactor library errors into LibraryError enum</title>
<updated>2019-01-20T21:08:50Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-17T12:47:52Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=5e258d26b55af6bed7c316b1c7ac12e20946702d'/>
<id>urn:sha1:5e258d26b55af6bed7c316b1c7ac12e20946702d</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add assert_cmd_err and assert_ok macros to tests</title>
<updated>2019-01-20T21:08:26Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-17T03:49:13Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=c43b63b70ee32f9fa8e980d89eff5383931f5c39'/>
<id>urn:sha1:c43b63b70ee32f9fa8e980d89eff5383931f5c39</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Move the update PIN from tests/util to tests/device</title>
<updated>2019-01-12T15:03:32Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-12T15:00:11Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=87e742b4746e1dc261825f0ca87c64a1ea454b1d'/>
<id>urn:sha1:87e742b4746e1dc261825f0ca87c64a1ea454b1d</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Adjust PWS tests to use nitrokey-test crate</title>
<updated>2019-01-05T09:28:43Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2019-01-03T19:07:07Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=7645f3964cf8060181b8fac130686e09959f00e1'/>
<id>urn:sha1:7645f3964cf8060181b8fac130686e09959f00e1</id>
<content type='text'>
This change adjusts the PWS tests to use the nitrokey-test crate.
</content>
</entry>
<entry>
<title>Add Storage::change_update_pin method</title>
<updated>2019-01-03T12:17:54Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T12:16:21Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d60e03b46a6af75056f07394ef66ecaa35f32d77'/>
<id>urn:sha1:d60e03b46a6af75056f07394ef66ecaa35f32d77</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Remove test-no-device feature</title>
<updated>2018-12-16T16:04:59Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2018-12-16T15:49:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=9c5364a63e363a6f69afddb29453efc5e4b12cc0'/>
<id>urn:sha1:9c5364a63e363a6f69afddb29453efc5e4b12cc0</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Refactor tests into the top-level tests directory</title>
<updated>2018-12-16T16:04:07Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2018-12-16T15:42:33Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=7d64de856294a21fa3da560aefbff12271fb0146'/>
<id>urn:sha1:7d64de856294a21fa3da560aefbff12271fb0146</id>
<content type='text'>
Newer Rust versions support integration tests in a top-level tests
directory.  This patch refactors the existing unit tests into
integration tests.
</content>
</entry>
</feed>
