Skip to content

Commit

Permalink
Fix Puppet 5 rspec failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
razorsedge committed Aug 6, 2017
1 parent db83b38 commit 106d300
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/defines/network_alias_range_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@


context 'required parameters: ensure => up' do
let(:pre_condition) { "file { 'ifcfg-eth99': }" }
let(:title) { 'eth99' }
let :params do {
:ensure => 'up',
Expand Down Expand 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',
Expand Down Expand 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',
Expand Down Expand Up @@ -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',
Expand All @@ -162,6 +166,7 @@
end

context 'optional parameters' do
let(:pre_condition) { "file { 'ifcfg-eth8': }" }
let(:title) { 'eth8' }
let :params do {
:ensure => 'up',
Expand Down
3 changes: 3 additions & 0 deletions spec/defines/network_bond_slave_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
end

context 'required parameters' do
let(:pre_condition) { "file { 'ifcfg-bond0': }" }
let(:title) { 'eth1' }
let :params do {
:master => 'bond0',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions spec/defines/network_route_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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', ],
Expand Down Expand Up @@ -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', ],
Expand Down Expand Up @@ -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', ],
Expand Down

0 comments on commit 106d300

Please sign in to comment.