modern-data-warehouse-dataops icon indicating copy to clipboard operation
modern-data-warehouse-dataops copied to clipboard

Add E2E Terraform testing to the sample

Open promisinganuj opened this issue 1 year ago • 1 comments

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

promisinganuj avatar Nov 27 '24 00:11 promisinganuj

🔬 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.

🔦 Additional Info

hattan avatar Jan 06 '25 21:01 hattan