31 points · by mountainview · 8y ago · 16 comments
What I don't quite like is the fact that as one's expectations become more complex, one has to start encoding that logic into YAML with this custom assertion/pattern matching DSL as shown in the README. I think this might be more easily adopted if it could be integrated into an existing testing framework, allowing to developers to use our familiar patterns of assertions, and use the tools that we're already familiar with.
Why add goss to the equation?
can all be done with straight Ansible as well.
I'm just having a hard time understanding the real added value to a goss / ansible combo.
Plus: If you do this after installing with ansible. It's basically a check right? Like: Nagios or other monitoring.
I'd rather that just use THAT and spend time in creating checks in those systems instead of spending time in goss?
I'm already declaring things with Ansible. Unless I got the syntax wrong ansible will finish a playbook and the server will be as I ordered ansible to make it.
So why add another check?
The tests can be run independently at any later date, helping to ensure that admins haven't messed with important files, upgraded random RPM's or that the servers haven't suffered any other type of configuration drift.
But then I build/run emergency services infrastructure with 99.999% availability targets.
Once you are writing tests alongside your Ansible playbooks and committing them to source control, it doesn't really take a lot longer and eventually you have a test suite you can run across your entire environment at a moments notice.