From 0c22cdda2e2dac3168ee1b64bd01011638357757 Mon Sep 17 00:00:00 2001 From: Craig Dunn Date: Thu, 27 Apr 2017 14:17:35 +0200 Subject: [PATCH] added tests for #23 --- spec/defines/install_spec.rb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/spec/defines/install_spec.rb b/spec/defines/install_spec.rb index ead31ff..8a43b97 100644 --- a/spec/defines/install_spec.rb +++ b/spec/defines/install_spec.rb @@ -30,6 +30,7 @@ it do is_expected.to contain_file('/var/puppet_db2/universal').with( :ensure => :absent, + :backup => :false, :purge => :true, :force => :true ).that_requires('Exec[db2::install::11.1]') @@ -37,7 +38,8 @@ it do is_expected.to contain_file('/var/puppet_db2/v11.1_linux64_expc.tar.gz').with( - :ensure => :absent + :ensure => :absent, + :backup => :false ).that_requires('Exec[db2::install::11.1]') end end @@ -64,6 +66,7 @@ it do is_expected.to contain_file('/var/puppet_db2/universal').with( :ensure => :absent, + :backup => :false, :purge => :true, :force => :true ).that_requires('Exec[db2::install::12.1]') @@ -71,7 +74,8 @@ it do is_expected.to contain_file('/var/puppet_db2/v12.1_linux64_expc.tar.gz').with( - :ensure => :absent + :ensure => :absent, + :backup => :false ).that_requires('Exec[db2::install::12.1]') end end @@ -99,6 +103,7 @@ it do is_expected.to contain_file('/var/puppet_db2/universal').with( :ensure => :absent, + :backup => false, :purge => :true, :force => :true ).that_requires('Exec[db2::install::db2_install]') @@ -106,7 +111,8 @@ it do is_expected.to contain_file('/var/puppet_db2/v12.1_linux64_expc.tar.gz').with( - :ensure => :absent + :ensure => :absent, + :backup => false ).that_requires('Exec[db2::install::db2_install]') end end @@ -122,6 +128,7 @@ is_expected.to contain_file('/var/puppet_db2/server_t').with( :ensure => :absent, :purge => :true, + :backup => :false, :force => :true ).that_requires('Exec[db2::install::11.1]') end @@ -146,13 +153,15 @@ is_expected.to contain_file('/var/puppet_db2/universal').with( :ensure => :absent, :purge => :true, - :force => :true + :force => :true, + :backup => :false, ).that_requires('Exec[db2::install::11.1]') end it do is_expected.to contain_file('/var/puppet_db2/db2.tar.gz').with( - :ensure => :absent + :ensure => :absent, + :backup => false, ).that_requires('Exec[db2::install::11.1]') end end