diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-03-06 20:59:05 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-03-06 20:59:05 +0200 |
commit | b75aa11d2ed55ac92aba789da66333d0e48345dd (patch) | |
tree | 5071b1111b4e335700ef6497f6a6bb62113f00a2 | |
parent | 1a327fa3b371f8786db50dc5c6b74e1431c439ee (diff) | |
download | obnam-b75aa11d2ed55ac92aba789da66333d0e48345dd.tar.gz |
Add scenario for verifying file that has been appended to
-rw-r--r-- | yarns/0080-verify.yarn | 17 |
1 files changed, 17 insertions, 0 deletions
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 |