diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2014-10-20 15:52:29 +0200 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2014-10-20 15:52:29 +0200 |
commit | 12ab2c89f7968558a7d39aa6ed0cca3577ea8156 (patch) | |
tree | c05841dd5459214b952af915a5d2ec8d2049598b /spec/classes/dhcp_spec.rb | |
parent | ede73fda1f089fba7fd8b519e3d5caa764d608f0 (diff) | |
download | puppet-dhcp-12ab2c89f7968558a7d39aa6ed0cca3577ea8156.tar.gz puppet-dhcp-12ab2c89f7968558a7d39aa6ed0cca3577ea8156.tar.bz2 |
Fix missing facts in specs
Diffstat (limited to 'spec/classes/dhcp_spec.rb')
-rw-r--r-- | spec/classes/dhcp_spec.rb | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/spec/classes/dhcp_spec.rb b/spec/classes/dhcp_spec.rb index 9db478c..5bc4a5b 100644 --- a/spec/classes/dhcp_spec.rb +++ b/spec/classes/dhcp_spec.rb @@ -5,7 +5,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'RedHat', :osfamily => 'Redhat', - :lsbdistcodename => 'Santiago' + :lsbdistcodename => 'Santiago', + :id => 'root', + :path => '/foo/bar' } } it 'should fail' do @@ -19,7 +21,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'lenny' + :lsbdistcodename => 'lenny', + :id => 'root', + :path => '/foo/bar' } } # Package @@ -54,7 +58,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } # Package @@ -90,7 +96,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_ddns_update => true @@ -107,7 +115,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_ddns_update => 'foo' @@ -127,7 +137,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_authoritative => 'foo' @@ -144,7 +156,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_authoritative => true @@ -164,7 +178,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_opts => 'foo' @@ -181,7 +197,9 @@ describe 'dhcp' do let (:facts) { { :operatingsystem => 'Debian', :osfamily => 'Debian', - :lsbdistcodename => 'squeeze' + :lsbdistcodename => 'squeeze', + :id => 'root', + :path => '/foo/bar' } } let (:params) { { :server_opts => ['foo', 'bar', 'baz'] |