Skip to content

Commit

Permalink
make lint tests happy
Browse files Browse the repository at this point in the history
  • Loading branch information
trefzer committed Nov 22, 2021
1 parent 76ced1a commit 3d4dbaf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# == Class: prosody::service
class prosody::service(
#
class prosody::service (
Optional[Boolean] $hasstatus = undef,
Optional[String] $restart = undef,
) {

if pick($prosody::manage_service, $prosody::daemonize) {
service { 'prosody':
ensure => running,
Expand Down
34 changes: 17 additions & 17 deletions spec/classes/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
if facts[:os]['name'] == 'Debian'
is_expected.not_to contain_service('prosody')
else
is_expected.to contain_service('prosody')
.with_ensure('running')
.with_enable(true)
.without_hasstatus
.without_restart
is_expected.to contain_service('prosody').
with_ensure('running').
with_enable(true).
without_hasstatus.
without_restart
end

elsif facts[:os]['family'] == 'OpenBSD'
is_expected.not_to contain_service('prosody')
.with_ensure('running')
.with_enable(true)
.without_hasstatus
.without_restart
is_expected.not_to contain_service('prosody').
with_ensure('running').
with_enable(true).
without_hasstatus.
without_restart
else
is_expected.to contain_service('prosody')
.with_ensure('running')
.with_hasstatus(false)
.with_restart('/usr/bin/prosodyctl reload')
is_expected.to contain_service('prosody').
with_ensure('running').
with_hasstatus(false).
with_restart('/usr/bin/prosodyctl reload')
end
}
end
Expand All @@ -51,9 +51,9 @@
end

it {
is_expected.to contain_service('prosody')
.with_ensure('running')
.with_enable(true)
is_expected.to contain_service('prosody').
with_ensure('running').
with_enable(true)
}
end
context 'with manage => false' do
Expand Down

0 comments on commit 3d4dbaf

Please sign in to comment.