Skip to content

Commit

Permalink
Basic test for nginx_vts_exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
viq committed Oct 18, 2017
1 parent bb48133 commit 0c8c11b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/classes/nginx_vts_exporter_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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') }
end
end
end
end
end

0 comments on commit 0c8c11b

Please sign in to comment.