From b75aa11d2ed55ac92aba789da66333d0e48345dd Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 6 Mar 2015 20:59:05 +0200 Subject: Add scenario for verifying file that has been appended to --- yarns/0080-verify.yarn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'yarns/0080-verify.yarn') diff --git a/yarns/0080-verify.yarn b/yarns/0080-verify.yarn index 8bc2c239..1859abe4 100644 --- a/yarns/0080-verify.yarn +++ b/yarns/0080-verify.yarn @@ -36,3 +36,20 @@ Verify one file randomly WHEN user U backs up directory L to repository R AND user U attempts to verify a random file in L against repository R THEN the attempt succeeded + + +Verify notices when live data file has been appended to +------------------------------------------------------- + +In March, 2015, Thomas Waldemann noticed that `obnam verify` would +fail to notice if the live data file had been appened to. This +regression test catches the problem. + + SCENARIO verify file that has been appended to + GIVEN 0B of data in file L/foo + AND file L/foo has Unix timestamp 0 + WHEN user U backs up directory L to repository R + GIVEN 1B of data in file L/foo + AND file L/foo has Unix timestamp 0 + WHEN user U attempts to verify L against repository R + THEN the attempt failed with exit code 1 -- cgit v1.2.1