-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed Apache license identifier * Robocop fixes * Fixing trailing comma * Fixed relative class name * Fixed relative classes name * Trying to fix rspec test cases * Changing allowed failures in travis.yml
- Loading branch information
brutus333
authored
Jan 10, 2017
1 parent
4b8120b
commit a1a6481
Showing
11 changed files
with
34 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include ::prometheus | ||
include ::prometheus::node_exporter | ||
include ::prometheus::alertmanager | ||
include ::prometheus::alerts | ||
include ::prometheus::statsd_exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,26 @@ | ||
require 'spec_helper' | ||
|
||
describe "prometheus::node_exporter" do | ||
let :default_facts do | ||
{ | ||
'operatingsystem' => 'CentOS', | ||
'osfamily' => 'Redhat', | ||
'operatingsystemrelease' => '7.0', | ||
'architecture' => 'amd64', | ||
'kernel' => 'Linux', | ||
} | ||
end | ||
|
||
context 'uses the correct binary path for version' do | ||
let(:facts) { default_facts } | ||
|
||
let(:params) { {:version => '0.10.0', :arch => 'amd64', :os => 'linux'} } | ||
|
||
it do | ||
should contain_file('/usr/local/bin/node_exporter').with({ | ||
'target' => '/opt/staging/node_exporter-0.10.0.linux-amd64/node_exporter' | ||
}) | ||
end | ||
end | ||
|
||
context 'uses the correct binary path for version' do | ||
let(:facts) { default_facts } | ||
|
||
let(:params) { {:version => '0.10.0', :arch => 'amd64', :os => 'linux'} } | ||
describe 'prometheus::node_exporter' do | ||
on_supported_os.each do |os, facts| | ||
context "on #{os}" do | ||
let(:facts) do | ||
facts.merge( | ||
staging_http_get: 'curl' | ||
) | ||
end | ||
|
||
it do | ||
should contain_file('/usr/local/bin/node_exporter').with({ | ||
'target' => '/opt/staging/node_exporter-0.10.0.linux-amd64/node_exporter' | ||
}) | ||
context 'with version specified' do | ||
let(:params) do | ||
{ | ||
version: '0.13.0', | ||
arch: 'amd64', | ||
os: 'linux' | ||
} | ||
end | ||
describe 'install correct binary' do | ||
it { is_expected.to contain_file('/usr/local/bin/node_exporter').with('target' => '/opt/staging/node_exporter-0.13.0.linux-amd64/node_exporter') } | ||
end | ||
end | ||
end | ||
end | ||
end |
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.