summaryrefslogtreecommitdiff
path: root/yarns/9000-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-21 07:32:49 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-21 07:32:49 +0000
commitd5973757f5be3704823c36567dba31c04d12b733 (patch)
tree1c44870dd2091d6b1f9b8a7de6714d7e93c1371f /yarns/9000-implements.yarn
parent8e50f17903c2c173c3b812022c8e3e5633a9ada9 (diff)
downloadobnam-d5973757f5be3704823c36567dba31c04d12b733.tar.gz
Convert verify-notices-changes cmdtest to yarn
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r--yarns/9000-implements.yarn12
1 files changed, 12 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index 68c852c7..25400662 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -260,6 +260,15 @@ We may need to restore only a single file.
--to "$DATADIR/$MATCH_3" "$DATADIR/$MATCH_2"
+Verifying live data
+-------------------
+
+Run `obnam verify` and remember the output.
+
+ IMPLEMENTS WHEN user (\S+) attempts to verify (\S+) against repository (\S+)
+ attempt run_obnam "$MATCH_1" \
+ verify -r "$DATADIR/$MATCH_3" "$DATADIR/$MATCH_2"
+
Removing (forgetting) generations
---------------------------------
@@ -413,6 +422,9 @@ The `attempt` shell function in `obnam.sh` runs a command, then
captures its stdout, stderr, and exit code. The scenarios can then
test the results in various ways as separate steps.
+ IMPLEMENTS THEN the attempt succeeded
+ attempt_exit_was 0
+
IMPLEMENTS THEN the attempt failed with exit code (\d+)
attempt_exit_was "$MATCH_1"