diff options
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/redacted_send/redacted_negative.ksh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/zfs-tests/tests/functional/redacted_send/redacted_negative.ksh b/tests/zfs-tests/tests/functional/redacted_send/redacted_negative.ksh index e27eb601e..8eafc4706 100755 --- a/tests/zfs-tests/tests/functional/redacted_send/redacted_negative.ksh +++ b/tests/zfs-tests/tests/functional/redacted_send/redacted_negative.ksh @@ -77,4 +77,12 @@ log_mustnot zfs redact $recvfs@snap book5 $clone3@snap # Nor may a redacted dataset appear in the redaction list. log_mustnot zfs redact testpool2/recvfs@snap2 book7 testpool2/recvfs@snap +# Error messages for common usage errors +log_mustnot_expect "not contain '#'" zfs redact $sendfs@snap1 \#book $sendfs@snap2 +log_mustnot_expect "not contain '#'" zfs redact $sendfs@snap1 $sendfs#book $sendfs@snap2 +log_mustnot_expect "full dataset names" zfs redact $sendfs@snap1 book @snap2 +log_mustnot_expect "full dataset names" zfs redact $sendfs@snap1 book @snap2 +log_mustnot_expect "full dataset names" zfs redact $sendfs@snap1 \#book @snap2 +log_mustnot_expect "descendent of snapshot" zfs redact $sendfs@snap2 book $sendfs@snap1 + log_pass "Verify that redacted send correctly detects invalid arguments." |