summaryrefslogtreecommitdiff
path: root/tests/sudoers/sudo-bad.pp
diff options
context:
space:
mode:
authorDan Bode <dan@bodepd.com>2010-06-02 11:45:37 -0500
committerDan Bode <dan@bodepd.com>2010-06-02 11:45:37 -0500
commit2f983bc4253bf5ca7ee641c8db9e8ccd96c0401d (patch)
tree918f2948c98b4fc4f84f4d2f9a42dadb3d717a5f /tests/sudoers/sudo-bad.pp
parent37099d6d140f073522f9f9b37ba2a9b429433f25 (diff)
Committing all of the tests that I ran to validate the behavior of the sudoers type. I understand they are not proper unit tests. sorry :(
Diffstat (limited to 'tests/sudoers/sudo-bad.pp')
-rw-r--r--tests/sudoers/sudo-bad.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/sudoers/sudo-bad.pp b/tests/sudoers/sudo-bad.pp
new file mode 100644
index 0000000..4bca785
--- /dev/null
+++ b/tests/sudoers/sudo-bad.pp
@@ -0,0 +1,18 @@
+sudoers{'BLAH':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Cmnd_Alias',
+ items => ['/bin/blah3', '/bin/blah4', '/bin/blah2'],
+ require => Sudoers['Defaults@host'],
+ type => 'alias',
+}
+sudoers{'Defaults@host':
+ parameters => ['x=z', 'one=1', 'two=2'],
+ type => 'default',
+}
+sudoers{'TEST':
+ users => 'dan1',
+ hosts => 'localhost',
+ commands => '/bin/true',
+ type => 'user_spec',
+}