infrastructure under the magnifying glass
TRANSCRIPT
![Page 1: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/1.jpg)
Infrastructure under the magnifying glass
Martin Fleischer
![Page 2: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/2.jpg)
Table of content
Continuous DeliveryInfrastructure as Code
Low level QAKitchenCIDilloJS - Verifying your web application
Final wordsQ&A
Introduction
Hands On
Conclusion
![Page 3: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/3.jpg)
Continuous Delivery/DeploymentFrom CI to CD
● Build and test faster + release faster ● Reduce risk of releasing● Get fast feedback● Keep everything in version control & automate almost everything
![Page 4: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/4.jpg)
Infrastructure as CodeWhy testing infrastructure ?
● It’s code !● Collective Ownership - Infrastructure belongs to everyone● Document your infrastructure● Get fast feedback & save time on debugging
![Page 5: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/5.jpg)
Don’t let your infrastructure end up being saddened
![Page 6: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/6.jpg)
Low-Level QAStatic code analysis & unit tests
● Remove code smells● Avoid regression● Improve design with TDD/BDD● Documentation Service
Unit
UI
![Page 7: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/7.jpg)
Low Level QA in the Chef world● Foodcritic - Cookbook linter● Rubocop - Ruby static code analyzer● Chefspec - Chef unit tests
![Page 8: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/8.jpg)
KitchenCIhttp://kitchen.ci/
Integration test harness
● Driver plugin architecture (Amazon EC2, Digital Ocean, Vagrant, Docker, …)
● Run tests on multiple platforms● Support for many test frameworks (Bats, shUnit2, RSpec, Serverspec)
![Page 9: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/9.jpg)
Kitchen workflowhttps://learn.chef.io/local-development/rhel/get-started-with-test-kitchen/
kitchen create
kitchen converge
kitchenlogin
kitchenverify
kitchendestroy
![Page 10: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/10.jpg)
DilloJShttps://github.com/butjar/dillojs
![Page 11: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/11.jpg)
Final words● Infrastructure testing is still at an early stage● Focus is still on integration testing● No rocket science● Participate in DevOps !
![Page 12: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/12.jpg)
Tested infrastructure vs. Untested infrastructure
![Page 13: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/13.jpg)
![Page 14: Infrastructure under the magnifying glass](https://reader033.vdocument.in/reader033/viewer/2022042605/58eb58281a28abbd678b46f9/html5/thumbnails/14.jpg)
Q&A
?!