Skip to content

Commit

Permalink
fix(test): add tests on node_exporter service
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Aug 24, 2020
1 parent 890bfc1 commit 4e8c69f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/integration/default/controls/service_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

control 'prometheus services' do
title 'should be running'

describe service('node_exporter') do
it { should be_enabled }
it { should be_running }
end

# node_exporter port
describe port(9100) do
it { should be_listening }
end
end

0 comments on commit 4e8c69f

Please sign in to comment.