Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8390938
TESTING.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
TESTING.md
View Options
#
TESTING
##
Prerequisites
Before
starting
any
test
,
you
should
make
sure
you
have
installed
all
dependent
puppet
modules
.
Find
a
list
of
all
dependencies
in
[
README
.
md
]
or
[
metadata
.
json
].
Required
gems
are
installed
with
`
bundler
`
:
```
cd
puppet
-
icinga2
-
rewrite
bundle
install
```
##
Validation
tests
Validation
tests
will
check
all
manifests
,
templates
and
ruby
files
against
syntax
violations
and
style
guides
.
Run
validation
tests
:
```
cd
puppet
-
icinga2
-
rewrite
rake
validate
```
##
Unit
tests
For
unit
testing
we
use
[
RSpec
].
All
classes
,
defined
resource
types
and
functions
should
have
appropriate
unit
tests
.
Run
unit
tests
:
```
cd
puppet
-
icinga2
-
rewrite
rake
spec
```
##
Integration
tests
With
integration
tests
this
module
is
tested
on
multiple
platforms
to
check
the
complete
installation
process
.
We
define
these
tests
with
[
ServerSpec
]
and
run
them
on
VMs
by
using
[
Vagrant
].
###
Prerequisites
In
addition
to
Vagrant
,
you
need
to
install
all
dependent
modules
to
run
the
tests
properly
.
Those
modules
are
listed
in
`
serverspec
/
environments
/
production
/
Puppetfile
`
and
can
be
installed
with
[
r10k
]
```
cd
puppet
-
icinga2
-
rewrite
/
serverspec
/
environments
/
production
r10k
puppetfile
install
-
v
```
###
Run
tests
All
available
ServerSpec
tests
are
listed
in
the
`
serverspec
/
spec
`
directory
,
where
each
instance
has
its
own
directory
.
Run
all
integraion
tests
:
```
cd
puppet
-
icinga2
-
rewrite
/
serverspec
rake
spec
```
List
all
available
tasks
/
platforms
:
```
cd
puppet
-
icinga2
-
rewrite
/
serverspec
rake
--
task
```
Run
integration
tests
for
a
single
platform
:
```
cd
puppet
-
icinga2
-
rewrite
/
serverspec
rake
spec
:
i2debian7puppet4
```
[
README
.
md
]:
README
.
md
[
metadata
.
json
]:
metadata
.
json
[
RSpec
]:
http
:
//rspec-puppet.com/
[
Serverspec
]:
http
:
//serverspec.org/
[
Vagrant
]:
https
:
//www.vagrantup.com/
[
R10k
]:
https
:
//github.com/puppetlabs/r10k
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:36 PM (14 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3294718
Attached To
rSPICI Icinga 2 Puppet Module
Event Timeline
Log In to Comment