Comment on Rethinking Infrastructure as Code from ScratchparentComments−datahead3yHow did you approach testing this? Anything to watch out for when defining abstractions? I'm following Crossplane's abstraction model.−firesteelrain3ySo we start with terraform fmt -check, terraform validate, and terraform plan.Contract tests are usedThen we have test resources that get created, validated then instantly destroyed.If we don’t have access to the CSP, then we can only go as far as contract tests. I can’t integrate with it live such as GCP.Starting to look into Terratest.
Comments
How did you approach testing this? Anything to watch out for when defining abstractions? I'm following Crossplane's abstraction model.
So we start with terraform fmt -check, terraform validate, and terraform plan.
Contract tests are used
Then we have test resources that get created, validated then instantly destroyed.
If we don’t have access to the CSP, then we can only go as far as contract tests. I can’t integrate with it live such as GCP.
Starting to look into Terratest.