¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

TDD on Platform work (was: Now that Reddit is dying...)


 

Avi,

On 6/23/23 11:46 AM, Avi Kessner wrote:
I'm also currently working on platform work.
How do you use tdd in platform work? I'm struggling with it. Or do you setup chaos engineering instead?
Not having experience in that domain, I don't have a ready answer for
you. I do think this might be a good place to explore the topic, though.

- George

--
----------------------------------------------------------------------
* George Dinwiddie *
Software Development
Consultant and Coach
----------------------------------------------------------------------


 

I only have limited experience with it, but have tried some things.

Using Pulumi (which basically is a layer on top of terraform) made my life a lot easier coding infrastructure. It also allows for some level of testing that does not necessarily need deployment of the whole.?

I tend to only learn the details of different cloud environments as needed, and forget them immediately after, so a lot of my work with these tools is exploratory. I was moderately happy being able to split parts of the code that were not infrastructure-specific off into functions and test that I was generating the right combination of configurations. I only did a few of the mocked based testing of infrastructure components. More to get a feel of how they worked than of a necessity in the circumstances. Building more on any specific environment I would've started using this more.

In infra teams, or real devops teams, I've usually gotten to a point where monitoring was part of a definition of done. So changes in infrastructure would always get changes in monitoring too. That's important, but doesn't give me the same type of feedback as testing.

In orgs that are strong on compliance and risk, I've done a couple of projects where a really strong structural comparison between the expected state (SOLL) and actual state (IST) was part of infrastructure deployment. Parts of that could be handled by tools (ansible, terraform) that report on whether they needed to perform a change to get to the intended state. For other parts we build custom scripts/code to report things like access rights to files and folders, defined users and groups, network and?firewall config, etc. All those were part of the deployment pipeline, so we had a pretty strong check on state of infrastructure, and were always thinking about how to 'prove' an infrastructure / config change behaved as expected.

Different types of tests for different purposes, but maybe it helps a little in finding what you are looking for.

Wouter



On Sun, Jun 25, 2023 at 4:14?AM George Dinwiddie <lists@...> wrote:

Avi,

On 6/23/23 11:46 AM, Avi Kessner wrote:
> I'm also currently working on platform work.
> How do you use tdd in platform work? I'm struggling with it. Or do you
> setup chaos engineering instead?

Not having experience in that domain, I don't have a ready answer for
you. I do think this might be a good place to explore the topic, though.

? - George

--
? ----------------------------------------------------------------------
? ?* George Dinwiddie *? ? ? ? ? ? ? ? ? ? ?
? ?Software Development? ? ? ? ? ? ? ? ? ?
? ?Consultant and Coach? ? ? ? ?
? ----------------------------------------------------------------------








--
Wouter Lagerweij ? ? ? ? ?|?wouter@...
? |?
?| +31(0)6 28553506