On my last couple of projects I’ve generally been using test-kitchen with chef.
Recently I’ve been working on porting my collections of chef cookbooks to ansible
and as there is a
kitchen-ansble module, I might as well use
inspec for testing
as I have a body of working configurations for test-kitchen.
On the other hand, as soon as I start digging into the cookbooks, I’ve realised that I don’t have much understanding on how the inspec matchers work.
The documentation says use
match for regular expressions, and
cmp for less
restrictive comparisons, but the examples seem to mix them up arbitrarily.