Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391119
1_init_spec.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
706 B
Subscribers
None
1_init_spec.rb
View Options
#! /usr/bin/env ruby -S rspec
require
'spec_helper_acceptance'
# These tests are designed to ensure that the module, when ran with defaults,
# sets up everything correctly.
describe
'icingaweb2'
do
it
'with basic settings for package installation'
do
pp
=
<<-
EOS
class { '::icingaweb2':
manage_repo => true,
}
EOS
apply_manifest
(
pp
,
catch_failures
:
true
,
debug
:
false
,
trace
:
true
)
apply_manifest
(
pp
,
catch_changes
:
true
,
debug
:
false
,
trace
:
true
)
end
describe
package
(
'icingaweb2'
)
do
it
{
is_expected
.
to
be_installed
}
end
if
fact
(
'osfamily'
)
==
'Debian'
describe
service
(
'apache2'
)
do
it
{
is_expected
.
to
be_running
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:38 PM (14 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398677
Attached To
R118 Puppet module to manage Icinga Web 2
Event Timeline
Log In to Comment