2. Why do we care
about infra
testing?
we have ~50 ansible roles
3. The 3 Tools
Test Kitchen
This is what we use to spin
up a consistent virtual
environment to run our tests
on.
Serverspec
This is like rspec for
servers. We use it to test
that our infrastructure
does what we want it to.
describe file('/etc/passwd') do
it { should be_file }
end
Travis-ci
This is a hosted CI tool
that we use to spin up a
virtual env with test
kitchen and run tests
with serverspec.
5. 1.Drivers
Test Kitchen
Drivers allow you to run your tests on cloud
providers or locally with virtualization.
e.g docker, vagrant, azure, aws, and more.