From 1c6df6757c1ca4972e298011c9548c34051fa887 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sun, 20 Jan 2019 14:52:00 -0800 Subject: Add tests for the lock command This change adds tests for the lock command. For the Nitrokey Pro we cannot test too much because the only side-effect is that the password safe is closed and it will be opened automatically again by virtue of our non-interactive testing methodology. For Storage devices we verify that the encrypted volume is closed, which is a documented side-effect. --- nitrocli/src/tests/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'nitrocli/src/tests/mod.rs') diff --git a/nitrocli/src/tests/mod.rs b/nitrocli/src/tests/mod.rs index 0337029..e0b0cf0 100644 --- a/nitrocli/src/tests/mod.rs +++ b/nitrocli/src/tests/mod.rs @@ -37,6 +37,7 @@ const NITROKEY_DEFAULT_USER_PIN: &str = "123456"; fn dummy() {} mod config; +mod lock; mod otp; mod pin; mod pws; -- cgit v1.2.1