Closed carloruiz closed 3 months ago
perhaps the contents should be update as part of this to reflect the correct usage.
ack. will update
Along similar lines, I'm wondering if there is any necessary migration as part of this or period where we need to keep a deprecated resource name around?
Fortunately, we're not deprecating any TF fields as part of this change.
Acceptance test: had do manually change some code to make this work. There's no straight-forward way to automatically test Private endpoint connection creation bc the client needs to create the endpoint out of band before calling the API. I created the endpoint manually and hardcoded the endpoint id into the test.
COCKROACH_API_KEY=<KEY> COCKROACH_SERVER=https://management-staging.crdb.io TF_ACC=1 make test
go test ./... -run TestAccServerlessPrivateEndpointConnectionResource -v -timeout 20m
? github.com/cockroachdb/terraform-provider-cockroach [no test files]
? github.com/cockroachdb/terraform-provider-cockroach/mock [no test files]
=== RUN TestAccServerlessPrivateEndpointConnectionResource
=== PAUSE TestAccServerlessPrivateEndpointConnectionResource
=== CONT TestAccServerlessPrivateEndpointConnectionResource
--- PASS: TestAccServerlessPrivateEndpointConnectionResource (68.70s)
PASS
ok github.com/cockroachdb/terraform-provider-cockroach/internal/provider 69.241s
Actually I was able to add a fixture for the serverless test so it runs with the acceptance tests. It will reuse the real, existing endpoint id.
Commit checklist
make generate
)