Comments by "" (@ContinuousDelivery) on "What Is Infrastructure As Code?" video.
-
15
-
Test Driven IaC is still pretty "bleeding edge" as far as I can tell. I think that the difficulty is the same for any code, testing at the edges of the system, where there is input and output. I think that the solutions are the same, try to marginalise the inputs and outputs so that you can fake them and test the rest if the code. The problem with IaC is that it is a lot about the I/O.
I worked on a team where we did this, and got some real value of it, but it was always a bit more tactical than regular TDD. We were using TeamCity for build management, and did most of of our glue automation with Unix shell scripts. We got decent TDD in place for the shell scripts, we had a working deployment pipeline for our deployment pipelines, and we designed the pipeline around a collection of simple adapters, so that we could run tests of the logic in TeamCity against unit-like tests that talked the to the adapters. Then we had some acceptance tests, with a real mini-project that had a handful of real unit tests and a handful of real acceptance tests so that we could run the pipeline and see it report success, report failure, and so on. As I said it wasn't really elegant, but it did work pretty well for us.
4
-
3
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1