summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sudoers-break-test.pp5
-rw-r--r--tests/test-alias-user.pp11
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/sudoers-break-test.pp b/tests/sudoers-break-test.pp
new file mode 100644
index 0000000..dd52f63
--- /dev/null
+++ b/tests/sudoers-break-test.pp
@@ -0,0 +1,5 @@
+sudoers{'blah4':
+ sudo_alias => 'Runas_Alias',
+ items => 'root',
+ command => '/bin/true'
+}
diff --git a/tests/test-alias-user.pp b/tests/test-alias-user.pp
new file mode 100644
index 0000000..a53c0b2
--- /dev/null
+++ b/tests/test-alias-user.pp
@@ -0,0 +1,11 @@
+#sudoers{'BLAH4':
+# sudo_alias => 'Runas_Alias',
+# items => 'root',
+#}
+sudoers{'BLAH4':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ users => ['dan', 'dan4', 'dan3'],
+ hosts => ['localhost', 'localhost2'],
+ commands => ['/bin/true blah', '/bin/false de', '/bin/duder/dude blah'],
+}