dnsimple / terraform-provider-dnsimple

Terraform DNSimple provider.
https://www.terraform.io/docs/providers/dnsimple/
Mozilla Public License 2.0
22 stars 20 forks source link

Adds the domain resource to the provider #43

Closed ecomba closed 3 years ago

ecomba commented 3 years ago

Adds the capability to create a new domain in DNSimple.

Closes #39

ecomba commented 3 years ago

This was quite a learning process to me as I did not understand how the terraform testing cycle really works.

If you look at the test method that tests the creation of the domain there is only a call to GetDomain to verify that there is no error. This is because due to some voodoo magic in the testing framework the right function to create the domain will be called anyways... 🤷🏼 It took me quite some time to figure this out, but now I do understand how this works 🥳

ecomba commented 3 years ago

WDYT about adding this to https://github.com/dnsimple/terraform-provider-dnsimple/blob/master/example/simple.tf

Yes, I can definitely do that, thanks for reminding me!