summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorroot <root@collector.localdomain>2010-03-11 20:23:27 -0600
committerroot <root@collector.localdomain>2010-03-11 20:23:27 -0600
commit9882c5ddb540ce1e36e7b72a47fe578abe79c9b4 (patch)
treecd117f327dd1d37526edc7a906aaa96d3db210cd /tests
First commit for sudoers module.
This doesnt work... yet.
Diffstat (limited to 'tests')
-rw-r--r--tests/sudo.pp1
-rw-r--r--tests/sudoers-delete.pp21
-rw-r--r--tests/sudoers.pp21
3 files changed, 43 insertions, 0 deletions
diff --git a/tests/sudo.pp b/tests/sudo.pp
new file mode 100644
index 0000000..a27b70b
--- /dev/null
+++ b/tests/sudo.pp
@@ -0,0 +1 @@
+include sudo
diff --git a/tests/sudoers-delete.pp b/tests/sudoers-delete.pp
new file mode 100644
index 0000000..3085a63
--- /dev/null
+++ b/tests/sudoers-delete.pp
@@ -0,0 +1,21 @@
+sudoers{'blah1':
+ target => '/tmp/sudoers',
+ ensure => absent,
+ alias => 'Cmnd_Alias',
+ items => ['blah4', 'blah2'],
+ linetype => 'alias',
+}
+#sudoers{'blah2':
+# target => '/tmp/sudoers',
+## ensure => present,
+# alias => 'Host_Alias',
+# items => ['blah2', 'blah3'],
+# type => 'alias',
+#}
+##sudoers{'blah3':
+# target => '/tmp/sudoers',
+## ensure => present,
+# users => 'dan',
+# hosts => 'localhost',
+# type => 'spec',
+#}
diff --git a/tests/sudoers.pp b/tests/sudoers.pp
new file mode 100644
index 0000000..ee829d1
--- /dev/null
+++ b/tests/sudoers.pp
@@ -0,0 +1,21 @@
+sudoers{'blah1':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Cmnd_Alias',
+ items => ['blah4', 'blah2'],
+ type => 'alias',
+}
+sudoers{'blah2':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Host_Alias',
+ items => ['blah2', 'blah3'],
+ type => 'alias',
+}
+#sudoers{'blah3':
+# target => '/tmp/sudoers',
+# ensure => present,
+# users => 'dan',
+# hosts => 'localhost',
+# type => 'spec',
+#}