diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-21 07:32:49 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-21 07:32:49 +0000 |
commit | d5973757f5be3704823c36567dba31c04d12b733 (patch) | |
tree | 1c44870dd2091d6b1f9b8a7de6714d7e93c1371f /yarns/0080-verify.yarn | |
parent | 8e50f17903c2c173c3b812022c8e3e5633a9ada9 (diff) | |
download | obnam-d5973757f5be3704823c36567dba31c04d12b733.tar.gz |
Convert verify-notices-changes cmdtest to yarn
Diffstat (limited to 'yarns/0080-verify.yarn')
-rw-r--r-- | yarns/0080-verify.yarn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/yarns/0080-verify.yarn b/yarns/0080-verify.yarn new file mode 100644 index 00000000..68a508ba --- /dev/null +++ b/yarns/0080-verify.yarn @@ -0,0 +1,24 @@ +Verify backed up data +===================== + +The user may want to verify that all their live data is still intact. +This is done with `obnam verify`. + + SCENARIO verify live data + GIVEN 100kB of new data in directory L + AND file L/foo has Unix timestamp 0 + WHEN user U backs up directory L to repository R + AND user U attempts to verify L against repository R + THEN the attempt succeeded + +However, if there have been any changes, such as for a timestamp, then +the verification should find a problem. + + GIVEN file L/foo has Unix timestamp 1 + WHEN user U attempts to verify L against repository R + THEN the attempt failed with exit code 1 + +RDF30DX is the error code for metadata change, of which modification +time is one. + + THEN the error message matches "RDF30DX.*st_mtime_sec" |