Skip to content

Get attribute of TypeSet from terraform.State for tests #1158

Open
@tylerFowler

Description

@tylerFowler

Currently there seems to be no way to retrieve an attribute (specifically a computed attribute but not limited to that) of type schema.TypeSet as a schema.Set given an object of type terraform.State.

Use-cases

The Set methods would be highly useful for use in resource.TestCheckFuncs and result in cleaner, slimmer test check functions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsubsystem/testsIssues and feature requests related to the testing framework.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions