Skip to content

Commit

Permalink
Merge pull request #347 from bastelfreak/cleanup
Browse files Browse the repository at this point in the history
Cleanup acceptance tests
  • Loading branch information
bastelfreak authored Jul 15, 2019
2 parents c7b59dc + 75c9fdc commit 5ab2695
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 40 deletions.
4 changes: 0 additions & 4 deletions spec/acceptance/apache_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus apache exporter' do
it 'apache_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::apache_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/collectd_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus collectd exporter' do
it 'collectd_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::collectd_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/haproxy_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus haproxy_exporter' do
it 'haproxy_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::haproxy_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/mysqld_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus mysqld exporter' do
it 'mysqld_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::mysqld_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/nginx_vts_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus nginx_vts_exporter' do
it 'nginx_vts_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::nginx_vts_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/node_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus node_exporter' do
it 'node_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::node_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/postgres_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus postgres exporter' do
it 'postgres_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = "class{'prometheus::postgres_exporter': postgres_pass => 'password', postgres_user => 'username' }"
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/prometheus_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus exporter' do
it 'graphite_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::graphite_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/prometheus_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus server basics' do
it 'prometheus server via main class works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = "class{'prometheus': manage_prometheus_server => true, version => '1.5.2' }"

# Run it twice and test for idempotency
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/redis_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

describe 'prometheus redis exporter' do
it 'redis_exporter works idempotently with no errors' do
if default[:platform] =~ %r{ubuntu-18.04-amd64}
pp = "package{'iproute2': ensure => present}"
apply_manifest(pp, catch_failures: true)
end
pp = 'include prometheus::redis_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down

0 comments on commit 5ab2695

Please sign in to comment.