hashicorp / hashicorp/terraform-plugin-framework

Examples in documentation are using deprecated code

Open
#1,140 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
384
Forks
107
Avg merge
3m
Merged PRs (30d)
1

Description

### Module version
v1.12.x (latest version)

### Expected Behavior
Code examples do not contain deprecated SDKv2 code.

### Actual Behavior

During research how to obtain the client inside the _checkDestroy()_ function for the _terraform-plugin-testing_ I came across that the documentation still contains old SDKv2 (deprecated) code.

CheckDestroy() documentation with example:
[checkDestroy](https://developer.hashicorp.com/terraform/plugin/testing/acceptance-tests/testcase#checkdestroy)

This example is the same as for the SDKv2 and is using _Providers:_ inside the test which gets an _*schema.Provider_ as input. This is not possible by using the _github.com/hashicorp/terraform-plugin-testing_.

Can you please update the examples or describe how to obtain the client inside the _checkDestroy()_ function which is already used by the test to create/update/destroy resources? Currently we are creating a new separate client in the _checkDestroy()_ but want to use the same as the test is already using.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.