diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-27 20:47:02 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-27 20:47:02 +0000 |
commit | 4bae8d8b01bbbc816f202d79e50135bf0bf26d5d (patch) | |
tree | 33cce20d5752f547b4f61e345cc0c680666954e6 /yarns/0030-basics.yarn | |
parent | a17cdfe3eca1aa308809697ddc2c170a7cc6b501 (diff) | |
download | obnam-4bae8d8b01bbbc816f202d79e50135bf0bf26d5d.tar.gz |
Convert unreadable-dir cmdtest to yarn
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r-- | yarns/0030-basics.yarn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index 0a04c98b..22ca0f1d 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -141,6 +141,21 @@ Create some live data, and a file that is unreadable. AND file L/unreadable-file with permissions 000 WHEN user U attempts to back up directory L to repository R THEN the error message matches "RCE08AX.*L/unreadable-file" + WHEN user U attempts to verify L against repository R + THEN the attempt succeeded + +Next, let's do the same thing again, but with an unreadable directory +instead of a file. + + SCENARIO unreadable live data directory + ASSUMING not running as root + GIVEN 1k of new data in directory L + AND directory L/unreadable-dir with permissions 000 + WHEN user U attempts to back up directory L to repository R + THEN the error message matches "RD5FA4X.*L/unreadable-dir" + WHEN user U attempts to verify L against repository R + THEN the attempt succeeded + Backup to roots at once ----------------------- |