diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2019-08-29 16:43:15 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-09-04 10:47:36 +0100 |
commit | ac8ac9a8ac9c205975138a9eebcb2123580ba599 (patch) | |
tree | a859b3cebd891f138bfabcccb8d039640b4b8a9a | |
parent | 0a4a38780d94b74c85744c9dee0588aeeafd80a5 (diff) | |
download | keyutils-ac8ac9a8ac9c205975138a9eebcb2123580ba599.tar.gz |
tests/timeout: test actions on an expired keyring as well
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | tests/keyctl/timeout/valid/runtest.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |