aboutsummaryrefslogtreecommitdiff
path: root/unittest
Commit message (Collapse)AuthorAge
* Add DEBUG_L1 level and set it as default for Python testsSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Make sure hidden volumes are created before unlocking themSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Move library unit tests to Python3Szczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove libnitrokey-log and add a switch to choose version insteadSzczepan Zalega2017-10-04
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Organize tests into categoriesSzczepan Zalega2017-10-04
| | | | | | ... by adding pytest marks. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'windows_MSVC2017' into OSX_merge_cleanedSzczepan Zalega2017-09-20
|\
| * Skip factory reset tests for nowSzczepan Zalega2017-07-03
| | | | | | | | | | | | Not working due to CRC error bug Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Ignore whitespace in C API headerSzczepan Zalega2017-07-03
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Move to Python 3Szczepan Zalega2017-07-03
| | | | | | | | Tested under Windows 8.1 and MSVC 2017 RC
| * Search for Windows DLLsSzczepan Zalega2017-07-03
| |
| * Run compilation using Qt CreatorSzczepan Zalega2017-06-28
| |
* | Tests: do additional authentication for Pro 0.7Szczepan Zalega2017-09-20
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add C++ tests for some current issuesSzczepan Zalega2017-06-27
| | | | | | | | Issues: https://github.com/Nitrokey/nitrokey-storage-firmware/issues/36 https://github.com/Nitrokey/nitrokey-storage-firmware/issues/31 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Return OTP codes as strings to make sure they are zero-filled properlySzczepan Zalega2017-04-03
| | | | | | | | | Adjust Python tests for new OTP codes return value Also remove manual 0-filling Fixes #57 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix compilation warningsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Correct comments and fix firmware version requirementsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Authenticate before factory reset so the command will not timeoutSzczepan Zalega2017-03-11
| | | | | | To investigate later Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update encrypted volume test. Use random password.Szczepan Zalega2017-03-11
| | | | | | Randomizing password to ensure correctness of setting up hidden volume in current iteration Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Prefer to use log-enabled library in testsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add some complex unit tests to find out corruption causeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add oath to Pythons unittest requirementsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove unnecessary extern keyword from C APISzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add script for installing python dependencies for unit testsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove MakefileSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use alias for easy device changeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use CMake instead of MakeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* C++ tests fixedSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: skip edit OTP slot test for NK Storage 0.44Szczepan Zalega2016-12-12
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: clear new SD card warning on factory resetSzczepan Zalega2016-12-12
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add a note regarding Password Safe testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test null started OTP secrets also for 320bit caseSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove old skipping code. Feature comment.Szczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Skip non-Storage and old devices for Storage testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Enable factory reset test for Nitrokey Storage. Comments.Szczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add NK Storage specific reply on running not initialized Password SafeSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Apply firmware versions limits to testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Code reformat in library testSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow to skip test if device is not able to pass itSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Check maximum OTP secret size in new authorization style commandsSzczepan Zalega2016-12-09
| | | | | | | Authenticate before testing invalid hex strings Remove invalid test for empty string for writing otp slot (empty string allows editing) Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: check are long OTP secrets supportedSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add missing newlines to make code format consistentSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test for manual checking of TOTP slot written by Nitrokey AppSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update commentsSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update description for TOTP_RFC_usepin testSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test to configure getting HOTP codes through special key double pressSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Support sending empty OTP secrets for slot edit (+test)Szczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove length field from send_otp_data packetSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Support longer secrets (40 bytes) for NK Pro 0.8Szczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use another OTP writing protocol and test itSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: more OTP, test all slots for read/writeSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>