From fc7c93a5d1eedc69646086753434b9c776f34a42 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 29 Mar 2014 12:15:47 +0000 Subject: Add test scenario for enabling compression later --- yarns/0070-compression.yarn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'yarns/0070-compression.yarn') 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 ------------------------------------- -- cgit v1.2.1