-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Set and List Diff tests to use generic utilities (#2837)
This PR refactors the Set and List Diff tests to use the generic diff utility functions and types introduced in #2829. This should make the tests more maintainable and more in-line with what other tests do. [861ec1f](861ec1f) contains the changes: - Refactors the tests to use the generic `diffSchemaValueMakerPair` and `diffScenario` types for their tests. - Refactors the tests to use `prop` for top-level properties and `nested_prop` for nested ones, like the rest of the tests. - Refactors the tests to use the generic `runSDKv2TestMatrix` test function. - Refactors the `valueMaker` functions from `value_makers.go` to return a `map[string]cty.Value ` instead of a `cty.Value` which needs to be transformed further after. - Corrects three tests in `list element removed`, where the order of the elements was wrong in the changed values. [f800d2d](f800d2d) contains the test recordings. Related to #2788 Related to #2789
- Loading branch information
1 parent
ec61116
commit 413419b
Showing
755 changed files
with
8,897 additions
and
8,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.