From ac8ac9a8ac9c205975138a9eebcb2123580ba599 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 29 Aug 2019 16:43:15 -0400 Subject: tests/timeout: test actions on an expired keyring as well Signed-off-by: Ben Boeckel Signed-off-by: David Howells --- tests/keyctl/timeout/valid/runtest.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/keyctl/timeout/valid/runtest.sh b/tests/keyctl/timeout/valid/runtest.sh index 5f7f2f3..f0f954c 100644 --- a/tests/keyctl/timeout/valid/runtest.sh +++ b/tests/keyctl/timeout/valid/runtest.sh @@ -117,6 +117,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 -- cgit v1.2.1