summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-26 20:47:32 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-26 20:47:32 +0000
commit085919ac9dd04af99e48f73151a912b94c0c5cc7 (patch)
tree127e248d9f6646c0390493390da07e34db3bc756 /yarns
parent1645398749e4a833fe836cb4bd3c1471eb068649 (diff)
downloadobnam-085919ac9dd04af99e48f73151a912b94c0c5cc7.tar.gz
Add missing implementations
Diffstat (limited to 'yarns')
-rw-r--r--yarns/9000-implements.yarn20
1 files changed, 20 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index b62d17f4..121627a6 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -245,6 +245,15 @@ that is unpredictable.
run_obnam "$client" restore -r "$repo" \
--to "$to" --generation "$id"
+We want to match the stdout against a regular expression.
+
+ IMPLEMENTS THEN the output matches "(.+)"
+ echo -----------------------
+ echo stdout being matched:
+ cat "$DATADIR/attempt.stdout"
+ echo -----------------------
+ attempt_matches stdout "$MATCH_1"
+
We may also need to attempt a restore in a situation when we expect it
to fail.
@@ -516,3 +525,14 @@ often is disabled on build servers.
IMPLEMENTS ASSUMING extended attributes are allowed for users
touch "$DATADIR/xattr.test"
setfattr -n user.foo -v bar "$DATADIR/xattr.test"
+
+
+Nagios
+------
+
+Run the Nagios monitoring subcommand.
+
+ IMPLEMENTS WHEN user (\S+) attempts nagios-last-backup-age against repository (\S+)
+ attempt run_obnam "$MATCH_1" nagios-last-backup-age \
+ -r "$DATADIR/$MATCH_2"
+