You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This PR adds Diff tests for Defaults in Set and List schemas. Note that
the List and Set themselves can not have Defaults, since TF throws an
error on these: `Default is not valid for lists or sets`.
Related to #2788
Related to #2789
For schemas containing properties with the following collection variations:
the following schema variations:
we should additionally test each of these with:
We should test the various cases which can occur when previewing changes:
For non-MaxItemsOne we should also test the following scenarios:
For each of these scenarios we should also test:
The text was updated successfully, but these errors were encountered: