From dff58cd5e33003fdf3eb73549c450b76838c6cbe Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 12 Jan 2014 10:29:02 +0000 Subject: Add test for multiple clients sharing a repository As part of this, make every repository operation step require an explicit client name. The v6 reference formats have a client name embedded that is the hostname of my laptop, so make those tests use that name. This fixes what would not have run previously on any system that isn't named havelock. Oops. --- yarns/0030-basics.yarn | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'yarns/0030-basics.yarn') diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index e5007487..3324dc45 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -20,10 +20,10 @@ program must be able to handle. SCENARIO backup simple data GIVEN 100kB of new data in directory L AND a manifest of directory L in M - WHEN user backs up directory L to repository R - AND user restores their latest generation in repository R into X + 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 can fsck the repository R + AND user U can fsck the repository R Backup sparse files ------------------- @@ -47,8 +47,8 @@ more disk space than the one in live data. SCENARIO backup a sparse file GIVEN a file S in L, with a hole, data, a hole AND a manifest of directory L in M - WHEN user backs up directory L to repository R - AND user restores their latest generation in repository R into X + 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 file S from L, restored in X doesn't use more disk @@ -82,8 +82,8 @@ duplication. SCENARIO backup non-basic filesystem objects GIVEN directory L with interesting filesystem objects AND a manifest of directory L in M - WHEN user backs up directory L to repository R - AND user restores their latest generation in repository R into X + 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 Pretend backing up: the `--pretend` setting @@ -96,8 +96,8 @@ than a real one. SCENARIO a pretend backup GIVEN directory L with interesting filesystem objects - WHEN user backs up directory L to repository R + WHEN user U backs up directory L to repository R GIVEN a manifest of directory R in M1 - WHEN user pretends to back up directory L to repository R + WHEN user U pretends to back up directory L to repository R GIVEN a manifest of directory R in M2 THEN manifests M1 and M2 match -- cgit v1.2.1