Yury Tsarev - TEST DRIVEN INFRASTRUCTURE FOR HIGHLY PERFORMING DEVOPS/SRE TEAMS
In this presentation Yury Tsarev will review practical examples of how to build infrastructure-as-code with a strong test-driven approach.
While equipped with an opinionated tools selection, the audience will be provided with a generic framework to build upon where the components are fully replaceable.
Further, Yury strongly believes that infrastructure code should be treated like any other code.
This means applying a test driven development model, storing it in a source control system and building a regression test suite.
He suggests doing this with Test Kitchen, a pluggable and extensible test orchestrator that originated in the Chef community.
Using Test Kitchen’s disposable modules it is possible to test both mutable (e.g.
based on Puppet/Chef/Ansible) as well as immutable infrastructure (e.g.
Terraform based).
Serverspec/Inspec can verify that the configuration code behaves properly.In addition, shell mocking can be used to bypass external dependencies and create hermetic infra tests.
Having such a powerful test infra toolset enables DevOps/SRE teams to practice TDD, create strong CI/CD pipelines and reduce overhead by never having to test manually again.
Источник: rutube.ru