tests/timeout: test actions on an expired keyring as well
PATCH v2 7/13 tests/timeout: test actions on an expired keyring as well
Signed-off-by Ben Boeckel <[email protected]>
--- tests/keyctl/timeout/valid/runtest.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
tests/keyctl/timeout/valid/runtest.sh +15 -0
@@ -100,6 +100,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