Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_updatedb.aug
1 (*
2 Module: Test_UpdateDB
3   Provides unit tests and examples for the <UpdateDB> lens.
4 *)
5 module Test_UpdateDB =
6
7 (* Test: UpdateDB.lns
8      Simple get test *)
9 test UpdateDB.lns get "# A comment
10 PRUNEPATHS=\"/tmp /var/spool /media /home/.ecryptfs\"
11 PRUNEFS= \"NFS nfs nfs4 rpc_pipefs\"
12 PRUNE_BIND_MOUNTS = \"yes\"\n" =
13   { "#comment" = "A comment" }
14   { "PRUNEPATHS"
15     { "entry" = "/tmp" }
16     { "entry" = "/var/spool" }
17     { "entry" = "/media" }
18     { "entry" = "/home/.ecryptfs" }
19   }
20   { "PRUNEFS"
21     { "entry" = "NFS" }
22     { "entry" = "nfs" }
23     { "entry" = "nfs4" }
24     { "entry" = "rpc_pipefs" }
25   }
26   { "PRUNE_BIND_MOUNTS" = "yes" }
27
28 (* Test: UpdateDB.lns
29      Adding to a list *)
30 test UpdateDB.lns put "PRUNEFS=\"NFS nfs nfs4 rpc_pipefs\"\n"
31   after set "/PRUNEFS/entry[last()+1]" "ecryptfs" =
32 "PRUNEFS=\"NFS nfs nfs4 rpc_pipefs ecryptfs\"\n"