Skip to content

SDKv2 Test Set types in Diff #2789

@VenelinMartinov

Description

@VenelinMartinov

For schemas containing properties with the following collection variations:

  • set attribute
  • set block

the following schema variations:

  • Optional
  • Required
  • Optional + Computed
    • set in the program
    • set by the provider
  • Nested Optional + Computed
    • set in the program
    • set by the provider
  • Fully Computed
  • Defaults on the collection property
  • Defaults on any nested properties

we should additionally test each of these with:

  • ForceNew on the collection property
  • ForceNew on any nested properties
  • MaxItemsOne
  • MaxItemsOne and ForceNew

We should test the various cases which can occur when previewing changes:

  • empty unchanged
  • non-empty unchanged
  • added empty
  • added non-empty
  • removed empty
  • removed non-empty
  • one property changed

For non-MaxItemsOne we should also test the following scenarios:

  • element added to the front
  • element added in the middle
  • element added at the back
  • element removed from the front
  • element removed from the middle
  • element removed from the back
  • same element updated
  • shuffled
  • shuffled with duplicates
  • shuffled added front
  • shuffled added middle
  • shuffled added end
  • shuffled removed front
  • shuffled removed middle
  • shuffled removed end
  • two added
  • two removed
  • two added and two removed shuffled, one overlaps
  • two added and two removed shuffled, no overlaps
  • two added and two removed shuffled, with duplicates

For each of these scenarios we should also test:

  • and unordered version of the scenario, where the elements are in a different lexicographical order, since that matters for re-ordering during planning

Metadata

Metadata

Labels

kind/engineeringWork that is not visible to an external userresolution/fixedThis issue was fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions