diff options
author | Micah <micah@leap.se> | 2016-07-12 16:46:10 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-07-12 16:46:10 -0400 |
commit | f5775156d8d8800247b8917ab6212c7eed16a124 (patch) | |
tree | cbfb53e2a37dbc9f5f8132819b9b03d5839d510e /puppet/modules/unbound/tests | |
parent | 40ea2656f072e23bbbccd22c39fb29a36390fa3a (diff) |
git subrepo clone https://leap.se/git/puppet_unbound puppet/modules/unbound
subrepo:
subdir: "puppet/modules/unbound"
merged: "a26b91d"
upstream:
origin: "https://leap.se/git/puppet_unbound"
branch: "master"
commit: "a26b91d"
git-subrepo:
version: "0.3.0"
origin: "https://github.com/ingydotnet/git-subrepo"
commit: "1e79595"
Change-Id: I83719264de2c716035d34599d541cadd42319b74
Diffstat (limited to 'puppet/modules/unbound/tests')
-rw-r--r-- | puppet/modules/unbound/tests/anchor.pp | 2 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/forward.pp | 7 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/init.pp | 26 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/package.pp | 2 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/params.pp | 1 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/root_hints.pp | 2 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/service.pp | 2 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/service/openbsd.pp | 1 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/ssl.pp | 2 | ||||
-rw-r--r-- | puppet/modules/unbound/tests/stub.pp | 7 |
10 files changed, 52 insertions, 0 deletions
diff --git a/puppet/modules/unbound/tests/anchor.pp b/puppet/modules/unbound/tests/anchor.pp new file mode 100644 index 00000000..ce73902a --- /dev/null +++ b/puppet/modules/unbound/tests/anchor.pp @@ -0,0 +1,2 @@ +include unbound::params +include unbound::anchor diff --git a/puppet/modules/unbound/tests/forward.pp b/puppet/modules/unbound/tests/forward.pp new file mode 100644 index 00000000..0d245e61 --- /dev/null +++ b/puppet/modules/unbound/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/puppet/modules/unbound/tests/init.pp b/puppet/modules/unbound/tests/init.pp new file mode 100644 index 00000000..89af1770 --- /dev/null +++ b/puppet/modules/unbound/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/puppet/modules/unbound/tests/package.pp b/puppet/modules/unbound/tests/package.pp new file mode 100644 index 00000000..0360b52f --- /dev/null +++ b/puppet/modules/unbound/tests/package.pp @@ -0,0 +1,2 @@ +include unbound::params +include unbound::package diff --git a/puppet/modules/unbound/tests/params.pp b/puppet/modules/unbound/tests/params.pp new file mode 100644 index 00000000..7cd72bd3 --- /dev/null +++ b/puppet/modules/unbound/tests/params.pp @@ -0,0 +1 @@ +include unbound::params diff --git a/puppet/modules/unbound/tests/root_hints.pp b/puppet/modules/unbound/tests/root_hints.pp new file mode 100644 index 00000000..3ce21ed1 --- /dev/null +++ b/puppet/modules/unbound/tests/root_hints.pp @@ -0,0 +1,2 @@ +include unbound::params +include unbound::root_hints diff --git a/puppet/modules/unbound/tests/service.pp b/puppet/modules/unbound/tests/service.pp new file mode 100644 index 00000000..0fb73df1 --- /dev/null +++ b/puppet/modules/unbound/tests/service.pp @@ -0,0 +1,2 @@ +include unbound::params +include unbound::service diff --git a/puppet/modules/unbound/tests/service/openbsd.pp b/puppet/modules/unbound/tests/service/openbsd.pp new file mode 100644 index 00000000..3e8696c0 --- /dev/null +++ b/puppet/modules/unbound/tests/service/openbsd.pp @@ -0,0 +1 @@ +include unbound::service::openbsd diff --git a/puppet/modules/unbound/tests/ssl.pp b/puppet/modules/unbound/tests/ssl.pp new file mode 100644 index 00000000..d7111977 --- /dev/null +++ b/puppet/modules/unbound/tests/ssl.pp @@ -0,0 +1,2 @@ +include unbound::params +include unbound::ssl diff --git a/puppet/modules/unbound/tests/stub.pp b/puppet/modules/unbound/tests/stub.pp new file mode 100644 index 00000000..b1477f9d --- /dev/null +++ b/puppet/modules/unbound/tests/stub.pp @@ -0,0 +1,7 @@ +include concat::setup +include unbound::params +unbound::stub { 'example.com': + settings => { + stub-addr => '127.0.0.1', + }, +} |