Skip to content

Commit b566b13

Browse files
committed
Test fix
1 parent 8f5f78d commit b566b13

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

manifests/repo/apt.pp

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
} else {
2323
$url = 'http://repos.sensuapp.org/apt'
2424
}
25-
2625
if $ensure == 'present' {
2726
apt::key { 'sensu':
2827
key => '7580C77F',

spec/classes/sensu_package_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
let(:params) { { :repo_source => 'http://repo.mydomain.com/apt' } }
6363
it { should contain_apt__source('sensu').with( :location => 'http://repo.mydomain.com/apt') }
6464

65-
it { should contain_apt__key('sensu').with(
65+
it { should_not contain_apt__key('sensu').with(
6666
:key => '7580C77F',
6767
:key_source => 'http://repo.mydomain.com/apt/pubkey.gpg'
6868
) }
@@ -72,7 +72,7 @@
7272
let(:params) { { :install_repo => false, :repo => 'main' } }
7373
it { should contain_apt__source('sensu').with_ensure('absent') }
7474

75-
it { should contain_apt__key('sensu').with(
75+
it { should_not contain_apt__key('sensu').with(
7676
:key => '7580C77F',
7777
:key_source => 'http://repos.sensuapp.org/apt/pubkey.gpg'
7878
) }

0 commit comments

Comments
 (0)