Add tests for required_packages change
This updates the tests for the apt::source defined type to use the new name for the exec resource and the new parameter for the same exec.
This commit is contained in:
parent
f3735d2ba2
commit
1dcbf3d303
1 changed files with 4 additions and 2 deletions
|
@ -89,12 +89,14 @@ describe 'apt::source', :type => :define do
|
|||
|
||||
it {
|
||||
if param_hash[:required_packages]
|
||||
should contain_exec("/usr/bin/apt-get -y install #{param_hash[:required_packages]}").with({
|
||||
should contain_exec("Required packages: '#{param_hash[:required_packages]}' for #{title}").with({
|
||||
"command" => "/usr/bin/apt-get -y install #{param_hash[:required_packages]}",
|
||||
"subscribe" => "File[#{title}.list]",
|
||||
"refreshonly" => true
|
||||
})
|
||||
else
|
||||
should_not contain_exec("/usr/bin/apt-get -y install #{param_hash[:required_packages]}").with({
|
||||
should_not contain_exec("Required packages: '#{param_hash[:required_packages]}' for #{title}").with({
|
||||
"command" => "/usr/bin/apt-get -y install #{param_hash[:required_packages]}",
|
||||
"subscribe" => "File[#{title}.list]",
|
||||
"refreshonly" => true
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue