Skip to contentSkip to conversation

tests/timeout: test actions on an expired keyring as well

PATCH New Ben Boeckel 1 participant 1 message Aug 29, 2019 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH 5/9 tests/timeout: test actions on an expired keyring as well

---
 tests/keyctl/timeout/valid/runtest.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
tests/keyctl/timeout/valid/runtest.sh +15 -0
index 01dc48f..9c98309 100644
@@ -103,6 +103,21 @@ marker "CHECK NO VALIDATE KEYRING"
 describe_key --fail $keyringid
 expect_error EKEYEXPIRED
 
+# validating the new keyring's name and type should also fail
+marker "CHECK NO SET KEYRING TIMEOUT"
+timeout_key --fail $keyringid 20
+expect_error EKEYEXPIRED
+
+# validating the new keyring's name and type should also fail
+marker "CHECK NO INVALIDATE KEYRING"
+invalidate_key --fail $keyringid
+expect_error EKEYEXPIRED
+
+# validating the new keyring's name and type should also fail
+marker "CHECK NO REVOKE KEYRING"
+revoke_key --fail $keyringid
+expect_error EKEYEXPIRED
+
 # remove the keyring we added
 marker "UNLINK KEYRING"
 unlink_key $keyringid @s
Signature · 1 line
2.21.0