/usr/share/augeas/lenses/dist/tests/test_updatedb.aug is in augeas-lenses 1.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | (*
Module: Test_UpdateDB
Provides unit tests and examples for the <UpdateDB> lens.
*)
module Test_UpdateDB =
(* Test: UpdateDB.lns
Simple get test *)
test UpdateDB.lns get "# A comment
PRUNEPATHS=\"/tmp /var/spool /media /home/.ecryptfs\"
PRUNEFS= \"NFS nfs nfs4 rpc_pipefs\"
PRUNE_BIND_MOUNTS = \"yes\"\n" =
{ "#comment" = "A comment" }
{ "PRUNEPATHS"
{ "entry" = "/tmp" }
{ "entry" = "/var/spool" }
{ "entry" = "/media" }
{ "entry" = "/home/.ecryptfs" }
}
{ "PRUNEFS"
{ "entry" = "NFS" }
{ "entry" = "nfs" }
{ "entry" = "nfs4" }
{ "entry" = "rpc_pipefs" }
}
{ "PRUNE_BIND_MOUNTS" = "yes" }
(* Test: UpdateDB.lns
Adding to a list *)
test UpdateDB.lns put "PRUNEFS=\"NFS nfs nfs4 rpc_pipefs\"\n"
after set "/PRUNEFS/entry[last()+1]" "ecryptfs" =
"PRUNEFS=\"NFS nfs nfs4 rpc_pipefs ecryptfs\"\n"
|