From 989d4c58694389e6011d8276c8a14f368c3786e9 Mon Sep 17 00:00:00 2001 From: Sonu Saha Date: Mon, 11 Apr 2022 16:49:40 +0530 Subject: [PATCH] CFINSPEC-93: Extend documentation for introduced matcher Signed-off-by: Sonu Saha --- docs-chef-io/content/inspec/resources/service.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs-chef-io/content/inspec/resources/service.md b/docs-chef-io/content/inspec/resources/service.md index 4a2a0bb19..915569bf8 100644 --- a/docs-chef-io/content/inspec/resources/service.md +++ b/docs-chef-io/content/inspec/resources/service.md @@ -129,3 +129,15 @@ The `be_installed` matcher tests if the named service is installed: The `be_running` matcher tests if the named service is running: it { should be_running } + +### be_monitored_by + +The `be_monitored_by` matcher accepts name of a monitoring tool as an input and tests if the named service is monitored by the given monitoring tool. The monitoring tools currently supported by this resource are: `monit` and `god`. + + it { should be_monitored_by("god") } + +### have_start_mode + +The `have_start_mode` matcher tests accepts a mode as an input and tests if the named service's start mode is the same as specified in the input. This matcher is currently supported only on Windows system. + + it { should have_start_mode('Manual') }