Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_cron_user.aug
1 module Test_Cron_User =
2
3 let s = "MAILTO=cron@example.com
4 31 * * * * ${HOME}/bin/stuff
5 54 16 * * * /usr/sbin/tmpwatch -umc 30d ${HOME}/tmp\n"
6
7 let lns = Cron_User.lns
8
9 test lns get s =
10   { "MAILTO" = "cron@example.com" }
11   { "entry" = "${HOME}/bin/stuff"
12     { "time"
13       { "minute" = "31" }
14       { "hour" = "*" }
15       { "dayofmonth" = "*" }
16       { "month" = "*" }
17       { "dayofweek" = "*" }
18     }
19   }
20   { "entry" = "/usr/sbin/tmpwatch -umc 30d ${HOME}/tmp"
21     { "time"
22       { "minute" = "54" }
23       { "hour" = "16" }
24       { "dayofmonth" = "*" }
25       { "month" = "*" }
26       { "dayofweek" = "*" }
27     }
28   }
29
30 test lns put s after
31 rm "/MAILTO";
32 rm "/entry[time/minute = '54']";
33 set "/entry[. = '${HOME}/bin/stuff']/time/minute" "24" =
34   "24 * * * * ${HOME}/bin/stuff\n"