aboutsummaryrefslogtreecommitdiff
path: root/unittest
Commit message (Collapse)AuthorAge
* Rename #define: s/STICK10/NKPRO and s/STICK20/NKSTORAGEpr_60Elie Tournier2017-05-25
| | | | Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
* Rename devices: s/Stick10/Device_NKPro and s/Stick20/Device_NKStorageElie Tournier2017-05-25
| | | | Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
* Rename functions: s/stick10/NKPro and s/stick20/NKStorageElie Tournier2017-05-25
| | | | Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
* Rename files: s/stick10/NKPro and s/stick20/NKStorageElie Tournier2017-05-25
| | | | Signed-off-by: Elie Tournier <tournier.elie@gmail.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>
* Tests: secret started with null byteSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add test for STATUS_AES_DEC_FAILED errorSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add requirements for running pytest testsSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Detect Pro 0.8Szczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Check firware version in Pro 0.8 testSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Authorize before write in WriteToSlot testSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests - ensure required env is set, fix HOTP constSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Authorization fix: GetTOTP and WriteToTOTPSLot + testSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Authorization fix: GetHOTP and WriteGeneralConfig + testSzczepan Zalega2016-11-26
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>