hashicorp / hashicorp/terraform-plugin-testing

`ImportStateVerify` fails for `TypeSet` fields in terraform-plugin-testing but not terraform-plugin-sdk

Open
#327 3 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
68
Forks
22
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### terraform-plugin-testing version

```
github.com/hashicorp/terraform-plugin-testing v1.7.0
```

### Expected Behavior

Set fields should pass `ImportStateVerify` regardless of the order of elements as they do in terraform-plugin-sdk.

### Actual Behavior

`ImportStateVerify` fails with a different ordering of the same elements in a set field.

### Steps to Reproduce

Run any of the tests from [this list](https://github.com/GoogleCloudPlatform/magic-modules/pull/10339#issuecomment-2050693937) in the google provider after migrating to terraform-plugin-sdk.

### References

This issue was previously closed as being caused by an upstream library, but it was never explained what the upstream issue was or why the tests pass in terraform-plugin-sdk but not in terraform-plugin-testing

https://github.com/hashicorp/terraform-plugin-testing/issues/269

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.