Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrate the Elasticsearch role resource to the TF plugin framework #1330

@tobio

Description

@tobio

The existing Elasticsearch role resource (internal/elasticsearch/security/role.go is based on the legacy TF SDKv2. We want to migrate both the resource to the Terraform Plugin Framework.

  • Make sure to structure the new plugin framework based codebase consistent with the system user resource in internal/elasticsearch/security/system_user
  • Make sure to copy the existing acceptance tests into the new codebase
  • Make sure the existing tests pass, make sure the acceptance tests actually exercise the provider.
  • Add an acceptance test verifying that a legacy resource is correctly handled by the new plugin framework resource. Look at the TestAccResourceSecuritySystemUserFromSDK test in internal/elasticsearch/system_user/acc_test.go as an example of how to do this. Use 0.11.17 as the last provider version in this test.
  • Add an entry to CHANGELOG.md referencing the created PR

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions