diff options
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 20 |
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" + |