Convert specs involving runit_service to use ChefSpec matchers
Continuation on #2804 (closed)
In our recipe tests, we are stepping into runit_service
and checking for the contents for sv
related files (run
, log/run
etc.) to match expected values. However, this is not preferred practice and we should be switching to ChefSpec matchers like we did for other services in #2804 (closed). However, there are a few steps needed to complete this
-
Stop using node attributes directly in config files and pass them as variables - #4072. By doing this only will we be able to use matchers effectively. Using node attributes in templates means they are evaluated during execution, so while switching we will need to use
lazy
evaluation on passing variables that are dependent on other services. -
Add tests for
runit_service
custom resource. This will be the only test that steps intorunit_service
. -
Convert tests to use ChefSpec matchers.