aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/dhcp_server_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/dhcp_server_spec.rb')
-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