I wonder if anyone has or can create a sample code which demonstrates how to execute a shell script after (or before) InSpec test.
The primary idea is to use RSpec after block to clean up resources allocated during the test run.
I wonder if anyone has or can create a sample code which demonstrates how to execute a shell script after (or before) InSpec test.
The primary idea is to use RSpec after block to clean up resources allocated during the test run.
If you are using GitLab, then you can use the CI pipeline to do this. Your script
section could do any setup required, run the InSpec tests, and then do any cleanup required.
You can find more about GitLab CI here: