Replaced -s
with -f
in ppa rspec tests
See 38263ac768
. The previous commit makes the tests fail.
This commit is contained in:
parent
38263ac768
commit
fcdd54de1d
1 changed files with 9 additions and 9 deletions
|
@ -21,7 +21,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:needs/such.substitution/wow+type').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => [],
|
||||
:command => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow+type',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow_type-natty.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow_type-natty.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
@ -44,7 +44,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/foo').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => [],
|
||||
:command => '/usr/bin/add-apt-repository -y ppa:user/foo',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/user-ubuntu-foo-wily.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/user-ubuntu-foo-wily.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
@ -83,7 +83,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:needs/such.substitution/wow').that_notifies('Class[Apt::Update]').with({
|
||||
'environment' => [],
|
||||
'command' => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow',
|
||||
'unless' => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
|
||||
'unless' => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
|
||||
'user' => 'root',
|
||||
'logoutput' => 'on_failure',
|
||||
})
|
||||
|
@ -123,7 +123,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/bar').that_notifies('Class[Apt::Update]').with({
|
||||
'environment' => [],
|
||||
'command' => '/usr/bin/add-apt-repository -y ppa:user/bar',
|
||||
'unless' => '/usr/bin/test -s /etc/apt/sources.list.d/user-bar-natty.list',
|
||||
'unless' => '/usr/bin/test -f /etc/apt/sources.list.d/user-bar-natty.list',
|
||||
'user' => 'root',
|
||||
'logoutput' => 'on_failure',
|
||||
})
|
||||
|
@ -160,7 +160,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:needs/such.substitution/wow').that_notifies('Class[Apt::Update]').with({
|
||||
'environment' => [],
|
||||
'command' => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow',
|
||||
'unless' => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
|
||||
'unless' => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
|
||||
'user' => 'root',
|
||||
'logoutput' => 'on_failure',
|
||||
})
|
||||
|
@ -201,7 +201,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/foo').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => [],
|
||||
:command => '/usr/bin/add-apt-repository ppa:user/foo',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
@ -235,7 +235,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/foo').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => ['http_proxy=http://localhost:8080'],
|
||||
:command => '/usr/bin/add-apt-repository ppa:user/foo',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
@ -269,7 +269,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/foo').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => ['http_proxy=http://localhost:8180'],
|
||||
:command => '/usr/bin/add-apt-repository ppa:user/foo',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
@ -303,7 +303,7 @@ describe 'apt::ppa' do
|
|||
it { is_expected.to contain_exec('add-apt-repository-ppa:user/foo').that_notifies('Class[Apt::Update]').with({
|
||||
:environment => ['http_proxy=http://localhost:8180', 'https_proxy=https://localhost:8180'],
|
||||
:command => '/usr/bin/add-apt-repository ppa:user/foo',
|
||||
:unless => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:unless => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
|
||||
:user => 'root',
|
||||
:logoutput => 'on_failure',
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue