diff --git a/spec/defines/network_alias_range_spec.rb b/spec/defines/network_alias_range_spec.rb index dae546fb..3abc9512 100644 --- a/spec/defines/network_alias_range_spec.rb +++ b/spec/defines/network_alias_range_spec.rb @@ -48,6 +48,7 @@ context 'required parameters: ensure => up' do + let(:pre_condition) { "file { 'ifcfg-eth99': }" } let(:title) { 'eth99' } let :params do { :ensure => 'up', @@ -80,6 +81,7 @@ end context 'required parameters: ensure => up, restart => false' do + let(:pre_condition) { "file { 'ifcfg-eth99': }" } let(:title) { 'eth99' } let :params do { :ensure => 'up', @@ -112,6 +114,7 @@ end context 'required parameters: ensure => down' do + let(:pre_condition) { "file { 'ifcfg-bond7': }" } let(:title) { 'bond7' } let :params do { :ensure => 'down', @@ -144,6 +147,7 @@ end context 'required parameters: ensure => absent' do + let(:pre_condition) { "file { 'ifcfg-bond6': }" } let(:title) { 'bond6' } let :params do { :ensure => 'absent', @@ -162,6 +166,7 @@ end context 'optional parameters' do + let(:pre_condition) { "file { 'ifcfg-eth8': }" } let(:title) { 'eth8' } let :params do { :ensure => 'up', diff --git a/spec/defines/network_bond_slave_spec.rb b/spec/defines/network_bond_slave_spec.rb index 8e5bdbec..d8840dae 100644 --- a/spec/defines/network_bond_slave_spec.rb +++ b/spec/defines/network_bond_slave_spec.rb @@ -17,6 +17,7 @@ end context 'required parameters' do + let(:pre_condition) { "file { 'ifcfg-bond0': }" } let(:title) { 'eth1' } let :params do { :master => 'bond0', @@ -51,6 +52,7 @@ end context 'required parameters, restart => false' do + let(:pre_condition) { "file { 'ifcfg-bond0': }" } let(:title) { 'eth1' } let :params do { :macaddress => 'fe:fe:fe:aa:aa:a1', @@ -85,6 +87,7 @@ end context 'optional parameters' do + let(:pre_condition) { "file { 'ifcfg-bond0': }" } let(:title) { 'eth3' } let :params do { :macaddress => 'ef:ef:ef:ef:ef:ef', diff --git a/spec/defines/network_route_spec.rb b/spec/defines/network_route_spec.rb index dd4d0541..8908418a 100644 --- a/spec/defines/network_route_spec.rb +++ b/spec/defines/network_route_spec.rb @@ -5,6 +5,7 @@ describe 'network::route', :type => 'define' do context 'singular parameters' do + let(:pre_condition) { "file { 'ifcfg-eth1': }" } let(:title) { 'eth1' } let :params do { :ipaddress => [ '192.168.2.1', ], @@ -32,6 +33,7 @@ end context 'singular parameters, restart => false' do + let(:pre_condition) { "file { 'ifcfg-eth1': }" } let(:title) { 'eth1' } let :params do { :ipaddress => [ '192.168.2.1', ], @@ -60,6 +62,7 @@ end context 'array parameters' do + let(:pre_condition) { "file { 'ifcfg-eth2': }" } let(:title) { 'eth2' } let :params do { :ipaddress => [ '192.168.2.0', '10.0.0.0', ],