Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343999
nginx_vts_exporter_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
660 B
Subscribers
None
nginx_vts_exporter_spec.rb
View Options
require
'spec_helper'
describe
'prometheus::nginx_vts_exporter'
do
on_supported_os
.
each
do
|
os
,
facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
do
facts
end
context
'with version specified'
do
let
(
:params
)
do
{
version
:
'0.6'
,
arch
:
'amd64'
,
os
:
'linux'
}
end
describe
'install correct binary'
do
it
{
is_expected
.
to
contain_file
(
'/usr/local/bin/nginx-vts-exporter'
)
.
with
(
'target'
=>
'/opt/nginx-vts-exporter-0.6.linux-amd64/nginx-vts-exporter'
)
}
it
{
is_expected
.
to
compile
.
with_all_deps
}
end
end
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Jul 4, 2:02 PM (5 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3284688
Attached To
R141 puppet-puppet-prometheus
Event Timeline
Log In to Comment