Closed arm4b closed 5 years ago
My vote goes for InSpec over Serverspec, because it opens the possibility of reusing the tests for auditing.
I got started with InSpec tests for the 'stackstorm::user' recipe, see #47
Some thoughts from #47:
I think in future it would be fine to Test installations with custom settings: somehow re-use initial attributes passed by user OR another approach, - read /etc/st2/st2.conf
settings like [system_user]
and more.
So the Integration Test could be self-sufficient and applied not only just for stackstorm::bundle
with all default parameters but for custom installations.
In future I expect users to run InSpec
tests for troubleshooting when they experience any Issues with StackStorm Installation.
~On related note, it may be nice to configure the following directory structure for tests:~
test/unit/...
- ChefSpec~test/integration/...
- InSpec~
~This will make things more straightforward.~FWIW, test/unit/...
is not typically the standard path. Some cookbooks do it, but most are in the current place (spec/...
)
Serverspec
/Inspec
Integration tests would be nice.There are already some examples to re-use from the: https://github.com/StackStorm/st2-packages/blob/master/rake/spec/default/60-st2_all-services-ok_spec.rb