From 36f2b672bd3c10abd3aa55fcc08f6f9b81d42fe2 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Mon, 24 Jan 2022 11:41:51 +0100 Subject: [PATCH] more zfs-verify tests --- tests/test_verify.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_verify.py b/tests/test_verify.py index 4e0017e..821d81a 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -10,10 +10,10 @@ from basetest import * # - on snapshots of datasets: # - that are correct # - that are different -# - because of rsync: test local/local, local remote etc # - on snapshots of zvols # - that are correct # - that are different +# - test all directions (local, remote/local, local/remote, remote/remote) # class TestZfsEncryption(unittest2.TestCase): @@ -84,3 +84,7 @@ class TestZfsEncryption(unittest2.TestCase): runchecked("rsync, local", "test test_target1 --verbose --exclude-received") + with self.subTest("no common snapshot"): + #destroy common snapshot, now 3 should fail + shelltest("zfs destroy test_source1/fs1/ok_zvol@test-20101111000000") + self.assertEqual(3, ZfsAutoverify("test test_target1 --verbose --exclude-received".split(" ")).run())