From 6010cc32b8dba5b5b754fce99567da292370eb6f Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Mon, 24 Aug 2020 17:37:06 +0200 Subject: [PATCH] fix(test): add tests on prometheus-node-exporter --- test/integration/repo/controls/service_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/integration/repo/controls/service_spec.rb diff --git a/test/integration/repo/controls/service_spec.rb b/test/integration/repo/controls/service_spec.rb new file mode 100644 index 0000000..2e4803a --- /dev/null +++ b/test/integration/repo/controls/service_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +control 'prometheus services' do + title 'should be running' + + describe service('prometheus-node-exporter') do + it { should be_enabled } + it { should be_running } + end + + # prometheus-node-exporter port + describe port(9100) do + it { should be_listening } + end +end