diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-29 12:15:47 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-29 12:15:47 +0000 |
commit | fc7c93a5d1eedc69646086753434b9c776f34a42 (patch) | |
tree | 3c77418c7b4e02d879afff7815dae40f32ca94d7 | |
parent | d049bdfbaf4b66e224494c471d0f0c9a3322c783 (diff) | |
download | obnam-fc7c93a5d1eedc69646086753434b9c776f34a42.tar.gz |
Add test scenario for enabling compression later
-rw-r--r-- | yarns/0070-compression.yarn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/yarns/0070-compression.yarn b/yarns/0070-compression.yarn index 4e22ea4a..c976c5e8 100644 --- a/yarns/0070-compression.yarn +++ b/yarns/0070-compression.yarn @@ -31,6 +31,24 @@ accordingly. THEN L, restored to Y, matches manifest M AND user U can fsck the repository R +We would also like to turn compression on after not using it, without +having to do any extra work. This requires a new scenario. + + SCENARIO enable compression later + GIVEN 100kB of new data in directory L + WHEN user U backs up directory L to repository R + +Then enable compression, add some more data, and backup again. The +result should now be verifiable. + + GIVEN user U sets configuration compress-with to deflate + AND 100kB of new data in directory L + AND a manifest of L in M + WHEN user U backs up directory L to repository R + AND user U restores their latest generation in repository R into X + THEN L, restored to X, matches manifest M + AND user U can fsck the repository R + Using both compression and encryption ------------------------------------- |