summaryrefslogtreecommitdiff
path: root/tests/sudoers/default.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/default.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/default.pp')
-rw-r--r--tests/sudoers/default.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sudoers/default.pp b/tests/sudoers/default.pp
new file mode 100644
index 0000000..3383ad7
--- /dev/null
+++ b/tests/sudoers/default.pp
@@ -0,0 +1,9 @@
+#
+# this should fail, cannot have a use called Defaults
+#
+sudoers{'BLAHDDD':
+ # could be a user named defaults
+ users => ['dan', 'Defaults'],
+ hosts => 'ALL',
+ commands => '/bin/ls -la'
+}