mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Previously we only validated that the cloudflare record provided was a valid record type. However, a record can be of a valid type, and still not be proxied, making it an invalid record type. The main downside to having to check for whether or not the record type is proxied or not during validation, is that it relies on having two schema keys populated. This means that we can only catch the improper record type during `apply` time, instead of `plan` time. ``` $ go test -v -run "TestValidateRecordType" ./builtin/providers/cloudflare === RUN TestValidateRecordType --- PASS: TestValidateRecordType (0.00s) PASS ok github.com/hashicorp/terraform/builtin/providers/cloudflare 0.004s ``` |
||
---|---|---|
.. | ||
bins | ||
providers | ||
provisioners |