Skip to content

Commit

Permalink
Add pushgateway spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebruyn-trip committed Oct 13, 2017
1 parent 217aa8c commit b394e58
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/classes/pushgateway_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
require 'spec_helper'

describe 'prometheus::pushgateway' 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.4.0',
arch: 'amd64',
os: 'linux'
}
end

describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/pushgateway').with('target' => '/opt/pushgateway-0.4.0.linux-amd64/pushgateway') }
end
end
end
end
end

0 comments on commit b394e58

Please sign in to comment.