Skip to content

Commit

Permalink
added tests for #23
Browse files Browse the repository at this point in the history
  • Loading branch information
crayfishx committed Apr 27, 2017
1 parent 0781679 commit 0c22cdd
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions spec/defines/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
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]')
end

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
Expand All @@ -64,14 +66,16 @@
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]')
end

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
Expand Down Expand Up @@ -99,14 +103,16 @@
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]')
end

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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c22cdd

Please sign in to comment.