14
Infrastructure under the magnifying glass Martin Fleischer

Infrastructure under the magnifying glass

Embed Size (px)

Citation preview

Page 1: Infrastructure under the magnifying glass

Infrastructure under the magnifying glass

Martin Fleischer

Page 2: Infrastructure under the magnifying glass

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

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

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

Don’t let your infrastructure end up being saddened

Page 6: Infrastructure under the magnifying glass

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

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

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

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

DilloJShttps://github.com/butjar/dillojs

Page 11: Infrastructure under the magnifying glass

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

Tested infrastructure vs. Untested infrastructure

Page 13: Infrastructure under the magnifying glass
Page 14: Infrastructure under the magnifying glass

Q&A

?!