aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorMickaël Canévet <mickael.canevet@camptocamp.com>2015-11-04 08:56:14 +0100
committerMickaël Canévet <mickael.canevet@camptocamp.com>2015-11-04 09:57:05 +0100
commit3d06981f4037ca508666a8818e88005d013427a4 (patch)
treec43d03d048497e63f333462653a280f9b9cd7831 /spec/acceptance
parent0330b3744275b6a35be5590eec4bfb36d0c928fd (diff)
downloadpuppet-dhcp-3d06981f4037ca508666a8818e88005d013427a4.tar.gz
puppet-dhcp-3d06981f4037ca508666a8818e88005d013427a4.tar.bz2
Add acceptance tests
Diffstat (limited to 'spec/acceptance')
-rw-r--r--spec/acceptance/dhcp_server_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/acceptance/dhcp_server_spec.rb b/spec/acceptance/dhcp_server_spec.rb
new file mode 100644
index 0000000..ae54c9f
--- /dev/null
+++ b/spec/acceptance/dhcp_server_spec.rb
@@ -0,0 +1,20 @@
+require 'spec_helper_acceptance'
+
+describe 'dhcp::server' do
+ describe 'running puppet code' do
+ it 'should work with no errors' do
+ pp = <<-EOS
+ class { 'dhcp::server': }
+ dhcp::subnet { '172.17.0.0':
+ ensure => present,
+ broadcast => '172.17.0.255',
+ other_opts => ['range 172.17.0.100 172.17.0.250'],
+ }
+ EOS
+
+ # Run it twice and test for idempotency
+ apply_manifest(pp, :catch_failures => true)
+ apply_manifest(pp, :catch_changes => true)
+ end
+ end
+end