From 4e8c69f72bb16d9da5031428dfab67d173e6913e Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Mon, 24 Aug 2020 17:13:03 +0200 Subject: [PATCH] fix(test): add tests on node_exporter service --- test/integration/default/controls/service_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/integration/default/controls/service_spec.rb diff --git a/test/integration/default/controls/service_spec.rb b/test/integration/default/controls/service_spec.rb new file mode 100644 index 00000000..42bd3606 --- /dev/null +++ b/test/integration/default/controls/service_spec.rb @@ -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