~ubuntu-branches/ubuntu/saucy/augeas/saucy-proposed

« back to all changes in this revision

Viewing changes to lenses/tests/test_aliases.aug

  • Committer: Package Import Robot
  • Author(s): Nicolas Valcárcel Scerpella
  • Date: 2011-11-10 09:20:03 UTC
  • mfrom: (1.4.2)
  • Revision ID: package-import@ubuntu.com-20111110092003-532kypb6beba5gmk
Tags: 0.9.0-1
* New upstream release
* Added build-arch and build-indep targets to d/rules. (Closes: #648156)
  Thanks to Niels Thykier for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
postmaster:     root
10
10
 
11
11
# General redirections for pseudo accounts.
12
 
bin:            root, adm
 
12
bin:            root , adm,
 
13
  bob
13
14
daemon:         root
14
15
adm:            root
 
16
file:           /var/foo
 
17
pipe1:          |/bin/ls
 
18
pipe2:          |\"/usr/bin/ls args,\"
15
19
"
16
20
  test Aliases.lns get file =
17
21
    { }
27
31
    { "#comment" = "General redirections for pseudo accounts." }
28
32
    { "3" { "name" = "bin" }
29
33
          { "value" = "root" }
30
 
          { "value" = "adm" } }
 
34
          { "value" = "adm" }
 
35
          { "value" = "bob" } }
31
36
    { "4" { "name" = "daemon" }
32
37
          { "value" = "root" } }
33
38
    { "5" { "name" = "adm" }
34
39
          { "value" = "root" } }
 
40
    { "6" { "name" = "file" }
 
41
          { "value" = "/var/foo" } }
 
42
    { "7" { "name" = "pipe1" }
 
43
          { "value" = "|/bin/ls" } }
 
44
    { "8" { "name" = "pipe2" }
 
45
          { "value" = "|\"/usr/bin/ls args,\"" } }
35
46
 
36
47
  test Aliases.lns put file after
37
 
    rm "/4" ; rm "/5" ;
 
48
    rm "/4" ; rm "/5" ; rm "/6" ; rm "/7" ; rm "/8" ;
38
49
      set "/1/value[2]" "barbar" ;
39
50
      set "/3/value[2]" "ruth"
40
51
    = "#
46
57
postmaster:     root
47
58
 
48
59
# General redirections for pseudo accounts.
49
 
bin:            root, ruth
 
60
bin:            root , ruth,
 
61
  bob
50
62
"
51
63
 
52
64
  (* Schema violation, no 3/name *)