diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-06 14:09:53 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-06 14:09:53 +0000 |
commit | 83ab008674af1a1240111fa806517b73f23b1b23 (patch) | |
tree | 7292a7a87fbcfe286ff52c2b8423b7948f503944 /yarns/0040-generations.yarn | |
parent | cfb79fc07a9c0ba3ec93a0f25b5e02369b281cc8 (diff) | |
download | obnam-83ab008674af1a1240111fa806517b73f23b1b23.tar.gz |
Add a scenario test for "obnam forget"
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r-- | yarns/0040-generations.yarn | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn index a5ac5fa2..ccf9994f 100644 --- a/yarns/0040-generations.yarn +++ b/yarns/0040-generations.yarn @@ -103,7 +103,24 @@ We'll assume the diff works, we'll just check whether it's empty. Forgetting a specific generation (`obnam forget`) -------------------------------- -FIXME. +We need to be able to remove any generation. As a corner case, we +should be able to remove the only generation. We'll test by making two +generations, then removing both, and after removing the first one, +checking that the remaining one is the one we want. + + SCENARIO remove specific generations + GIVEN 1kB of new data in directory L + AND a manifest of directory L in M1 + WHEN user backs up directory L + GIVEN 1kB of new data in directory L + AND a manifest of directory L in M2 + WHEN user backs up directory L + AND user forgets the oldest generation + THEN user sees 1 generation + WHEN user restores their latest generation into X + THEN L, restored to X, matches manifest M2 + WHEN user forgets the oldest generation + THEN user sees 0 generations Forgetting generations according to a schedule (`obnam forget --keep`) ------------------------------------------------------------- |