News for hackers. Stuff that matters.
Re:Babushka – Test-Driven Sysadmin by CraigJPerry on Wednesday April 20, 2016 @06:27AM (#11533374)
Yeah i agree. Although I still haven't found a test framework I like for this so any pointers appreciated!

I tried it all ansible based: https://github.com/CraigJPerry/ansible-users/tree/test-cases...

I tried it using Python's unittest2 module: https://github.com/CraigJPerry/home-network/blob/v0.1.5/test...

I like the idea that ansible playbooks should be self testing.

Re:Babushka – Test-Driven Sysadmin by falcolas on Wednesday April 20, 2016 @09:15AM (#11534097)
I'm working from a memory of a podcast, so pull out those pinches of salt: Chef offers a testing suite - it basically offers a running mode which does an audit of what current conforms to the recipes you've passed it, and outputs a list of actions it would take to remedy this.

Combined with VMs, this lets you do some basic automated testing to ensure that your script is doing what you intend it to do.

I could swear that they also some kind of automated validation against an "inventory", which would make it possible to do automated tests against a known, unchanging target, but at this point I'm probably mis-remembering. They may have just advocated using VMs, images, and audits as validation.

Re:Babushka – Test-Driven Sysadmin by otterley on Wednesday April 20, 2016 @09:50PM (#11539105)
Have you tried Serverspec?