SamuelFisher / TerraformPluginDotNet

Write Terraform providers in C#.
MIT License
46 stars 14 forks source link

Split configuring provider and terraform to make testing more easy #27

Closed ThomasBleijendaal closed 2 years ago

ThomasBleijendaal commented 2 years ago

If configure is set to false in TerraformTestHost.CreateTerraformTestInstanceAsync, the terraform section from tf.conf is also dropped.

This PR allows developers to choose what section they want to drop from tf.conf, so the somewhat magical example.com/example/{ProviderName} provider config remains (in most of the cases) in TerraformTestHost. The test host also depends on example.com/example/{ProviderName}, so it is better to keep it as contained as possible.