modern-data-warehouse-dataops
modern-data-warehouse-dataops copied to clipboard
Add E2E Terraform testing to the sample
We are using Fabric Terraform provider along with AzureAD/AzureRM providers for this sample. Now that we have the terraform based IaC deployment, we would like to add the E2E testing for Terraform. We agreed on the following approach:
- Writing E2E unit-test cases rather than at module level.
- Using "terratest" (golang). The other option we considered was the native terraform test.
- For Fabric, we would use GO SDK. Reference: https://github.com/microsoft/fabric-terraform-quickstart/blob/main/quickstarts/401-testing-terratest/workspace_test.go
This would be developed in collaboration with DevX team.
Please feel free to split this feature item into individual stories.
Child Items
- [x] #813
🔬 Description
When using the E2E samples, I want infrastructure tests to be available, so I can easily verify deployments.
🎯 Acceptance Criteria
- [ ] Samples should have an infrastructure/test folders.
- [ ] Tests should be written using Terratest to verify deployments.
- [ ] Dev container definitions should be updated so that testing dependencies are available immediately.
- [ ] Stretch: Module tests for individual modules should exist
- [ ] Stretch: Terratest module for Fabric can be optional.