From 085919ac9dd04af99e48f73151a912b94c0c5cc7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 26 Mar 2014 20:47:32 +0000 Subject: Add missing implementations --- yarns/9000-implements.yarn | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'yarns') 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" + -- cgit v1.2.1