~ubuntu-branches/ubuntu/natty/augeas/natty

« back to all changes in this revision

Viewing changes to lenses/tests/test_puppetfileserver.aug

  • Committer: Bazaar Package Importer
  • Author(s): Raphaël Pinson
  • Date: 2011-02-24 09:32:22 UTC
  • mfrom: (1.2.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224093222-bfd4fkm6envek6ys
Tags: 0.8.0-0ubuntu1
* New upstream release.
* Remove obsolete ruby Build-Depend.
* Build PDF docs and add them to augeas-doc.
* Build-Depend on texlive-latex-base to build PDF docs.
* Install txt doc files in augeas-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Tests for the PuppetFileserver module *)
 
2
 
 
3
module Test_puppetfileserver =
 
4
 
 
5
let fileserver = "# This a comment
 
6
 
 
7
[mount1]
 
8
  # Mount1 options
 
9
  path /etc/puppet/files/%h
 
10
  allow host.domain1.com
 
11
  allow *.domain2.com
 
12
  deny badhost.domain2.com
 
13
[mount2]
 
14
  allow *
 
15
  deny *.evil.example.com
 
16
  deny badhost.domain2.com
 
17
"
 
18
 
 
19
test PuppetFileserver.lns get fileserver =
 
20
        { "#comment" = "This a comment" }
 
21
        { }
 
22
        { "mount1"
 
23
                { "#comment" = "Mount1 options" }
 
24
                { "path" = "/etc/puppet/files/%h" }
 
25
                { "allow" = "host.domain1.com" }
 
26
                { "allow" = "*.domain2.com" }
 
27
                { "deny" = "badhost.domain2.com" }
 
28
        }
 
29
        { "mount2"
 
30
                { "allow" = "*" }
 
31
                { "deny" = "*.evil.example.com" }
 
32
                { "deny" = "badhost.domain2.com" }
 
33
        }