summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-01-15 16:58:12 -0500
committerMicah Anderson <micah@riseup.net>2013-01-15 16:58:12 -0500
commitd8bf530ec42fdc4d2281169234964d28d8a689ac (patch)
tree3857de605b8bd3878083ad4071bb94cf405f8ab2 /tests
initial commit
Diffstat (limited to 'tests')
-rw-r--r--tests/anchor.pp2
-rw-r--r--tests/forward.pp7
-rw-r--r--tests/init.pp26
-rw-r--r--tests/package.pp2
-rw-r--r--tests/params.pp1
-rw-r--r--tests/root_hints.pp2
-rw-r--r--tests/service.pp2
-rw-r--r--tests/service/openbsd.pp1
-rw-r--r--tests/ssl.pp2
-rw-r--r--tests/stub.pp7
10 files changed, 52 insertions, 0 deletions
diff --git a/tests/anchor.pp b/tests/anchor.pp
new file mode 100644
index 0000000..ce73902
--- /dev/null
+++ b/tests/anchor.pp
@@ -0,0 +1,2 @@
+include unbound::params
+include unbound::anchor
diff --git a/tests/forward.pp b/tests/forward.pp
new file mode 100644
index 0000000..0d245e6
--- /dev/null
+++ b/tests/forward.pp
@@ -0,0 +1,7 @@
+include concat::setup
+include unbound
+unbound::forward { 'example.com':
+ settings => {
+ forward-addr => '127.0.0.1',
+ },
+}
diff --git a/tests/init.pp b/tests/init.pp
new file mode 100644
index 0000000..89af177
--- /dev/null
+++ b/tests/init.pp
@@ -0,0 +1,26 @@
+# The baseline for module testing used by Puppet Labs is that each manifest
+# should have a corresponding test manifest that declares that class or defined
+# type.
+#
+# Tests are then run by using puppet apply --noop (to check for compilation errors
+# and view a log of events) or by fully applying the test in a virtual environment
+# (to compare the resulting system state to the desired state).
+#
+# Learn more about module testing here: http://docs.puppetlabs.com/guides/tests_smoke.html
+#
+include concat::setup
+include unbound::package
+include unbound::service
+include unbound::anchor
+include unbound::ssl
+
+class { 'unbound':
+ anchor => false,
+ root_hints => false,
+ ssl => false,
+ settings => {
+ server => { },
+ python => { },
+ remote-control => { },
+ },
+}
diff --git a/tests/package.pp b/tests/package.pp
new file mode 100644
index 0000000..0360b52
--- /dev/null
+++ b/tests/package.pp
@@ -0,0 +1,2 @@
+include unbound::params
+include unbound::package
diff --git a/tests/params.pp b/tests/params.pp
new file mode 100644
index 0000000..7cd72bd
--- /dev/null
+++ b/tests/params.pp
@@ -0,0 +1 @@
+include unbound::params
diff --git a/tests/root_hints.pp b/tests/root_hints.pp
new file mode 100644
index 0000000..3ce21ed
--- /dev/null
+++ b/tests/root_hints.pp
@@ -0,0 +1,2 @@
+include unbound::params
+include unbound::root_hints
diff --git a/tests/service.pp b/tests/service.pp
new file mode 100644
index 0000000..0fb73df
--- /dev/null
+++ b/tests/service.pp
@@ -0,0 +1,2 @@
+include unbound::params
+include unbound::service
diff --git a/tests/service/openbsd.pp b/tests/service/openbsd.pp
new file mode 100644
index 0000000..3e8696c
--- /dev/null
+++ b/tests/service/openbsd.pp
@@ -0,0 +1 @@
+include unbound::service::openbsd
diff --git a/tests/ssl.pp b/tests/ssl.pp
new file mode 100644
index 0000000..d711197
--- /dev/null
+++ b/tests/ssl.pp
@@ -0,0 +1,2 @@
+include unbound::params
+include unbound::ssl
diff --git a/tests/stub.pp b/tests/stub.pp
new file mode 100644
index 0000000..b1477f9
--- /dev/null
+++ b/tests/stub.pp
@@ -0,0 +1,7 @@
+include concat::setup
+include unbound::params
+unbound::stub { 'example.com':
+ settings => {
+ stub-addr => '127.0.0.1',
+ },
+}