diff options
author | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-11-04 11:24:25 +0100 |
---|---|---|
committer | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-11-04 11:24:25 +0100 |
commit | b5ee63a48adbea3e50300e2c0c26c575ec1b5abb (patch) | |
tree | b5d4822f3c9c048064ab2f20cd70899aba0c16d1 /spec/acceptance | |
parent | 3a974fea4562a9f2afc446b20ddc3fd221e4f8ed (diff) | |
parent | 4dbb5a09e23e56fc8ed7ff04fc1cfcdc17932786 (diff) | |
download | puppet-dhcp-b5ee63a48adbea3e50300e2c0c26c575ec1b5abb.tar.gz puppet-dhcp-b5ee63a48adbea3e50300e2c0c26c575ec1b5abb.tar.bz2 |
Merge pull request #16 from mcanevet/feature/acceptance
Add acceptance tests
Diffstat (limited to 'spec/acceptance')
-rw-r--r-- | spec/acceptance/dhcp_server_spec.rb | 20 |
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 |