Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_mdadm_conf.aug
1 module Test_mdadm_conf =
2
3 let conf = "
4 # Comment
5 device containers
6  # Comment
7 DEVICE partitions  \ndev
8         /dev/hda*  \n  /dev/hdc*
9 deVI
10 ARRAY /dev/md0 UUID=c3d3134f-2aa9-4514-9da3-82ccd1cccc7b Name=foo=bar
11     supeR-minor=3 devicEs=/dev/hda,/dev/hdb Level=1 num-devices=5 spares=2
12     spare-group=bar auTo=yes BITMAP=/path/to/bitmap metadata=frob
13     container=/dev/sda member=1
14 MAIL # Initial comment
15     user@example.com # End of line comment
16 MAILF user@example.com # MAILFROM can only be abbreviated to 5 characters
17 PROGRA /usr/sbin/handle-mdadm-events
18 CREA group=system mode=0640 auto=part-8
19 HOME <system>
20 AUT +1.x Homehost -all
21 POL domain=domain1 metadata=imsm path=pci-0000:00:1f.2-scsi-*
22            action=spare
23 PART domain=domain1 metadata=imsm path=pci-0000:04:00.0-scsi-[01]*
24            action=include
25 "
26
27 test Mdadm_conf.lns get conf =
28     {}
29     { "#comment" = "Comment" }
30     { "device"
31         { "containers" }
32     }
33     { "#comment" = "Comment" }
34     { "device"
35         { "partitions" }
36     }
37     { "device"
38         { "name" = "/dev/hda*" }
39         { "name" = "/dev/hdc*" }
40     }
41     { "device" }
42     { "array"
43         { "devicename" = "/dev/md0" }
44         { "uuid" = "c3d3134f-2aa9-4514-9da3-82ccd1cccc7b" }
45         { "name" = "foo=bar" }
46         { "super-minor" = "3" }
47         { "devices" = "/dev/hda,/dev/hdb" }
48         { "level" = "1" }
49         { "num-devices" = "5" }
50         { "spares" = "2" }
51         { "spare-group" = "bar" }
52         { "auto" = "yes" }
53         { "bitmap" = "/path/to/bitmap" }
54         { "metadata" = "frob" }
55         { "container" = "/dev/sda" }
56         { "member" = "1" }
57     }
58     { "mailaddr"
59         { "#comment" = "Initial comment" }
60         { "value" = "user@example.com" }
61         { "#comment" = "End of line comment" }
62     }
63     { "mailfrom"
64         { "value" = "user@example.com" }
65         { "#comment" = "MAILFROM can only be abbreviated to 5 characters" }
66     }
67     { "program"
68         { "value" = "/usr/sbin/handle-mdadm-events" }
69     }
70     { "create"
71         { "group" = "system" }
72         { "mode" = "0640" }
73         { "auto" = "part-8" }
74     }
75     { "homehost"
76         { "value" = "<system>" }
77     }
78     { "auto"
79         { "+" = "1.x" }
80         { "homehost" }
81         { "-" = "all" }
82     }
83     { "policy"
84         { "domain" = "domain1" }
85         { "metadata" = "imsm" }
86         { "path" = "pci-0000:00:1f.2-scsi-*" }
87         { "action" = "spare" }
88     }
89     { "part-policy"
90         { "domain" = "domain1" }
91         { "metadata" = "imsm" }
92         { "path" = "pci-0000:04:00.0-scsi-[01]*" }
93         { "action" = "include" }
94     }