Previously, the base_job_template attribute was set to a StringValue -- this caused issues with state refresh, as the Provider failed equality checks due to non-semantic differences in the byte slice (aka ordering of keys, likely differences in indentation, etc.)
Instead, we use the terraform-plugin-framework jsontype package, which exposes a Normalized type that does exactly this -- checks for semantic equality between two valid JSON strings
resolves https://github.com/PrefectHQ/terraform-provider-prefect/issues/102
Previously, the
base_job_template
attribute was set to a StringValue -- this caused issues with state refresh, as the Provider failed equality checks due to non-semantic differences in the byte slice (aka ordering of keys, likely differences in indentation, etc.)Instead, we use the terraform-plugin-framework
jsontype
package, which exposes aNormalized
type that does exactly this -- checks for semantic equality between two valid JSON stringsgithub.com/hashicorp/terraform-plugin-framework-jsontypes
also, adds acceptance tests for the work-pools resource, per https://github.com/PrefectHQ/terraform-provider-prefect/issues/81