terraform-provider-nsxt icon indicating copy to clipboard operation
terraform-provider-nsxt copied to clipboard

Disallow setting nsx_id attribute in policy rules

Open annakhm opened this issue 2 years ago • 1 comments

nsx_id should only be configurable in predefined policy resources, and read-only in other resources.

Signed-off-by: Anna Khmelnitsky [email protected]

annakhm avatar Oct 20 '22 23:10 annakhm

/test-all

annakhm avatar Oct 20 '22 23:10 annakhm

Should this (or could it) be UT somehow? Otherwise LGTM

ksamoray avatar Oct 24 '22 07:10 ksamoray

Should this (or could it) be UT somehow? Otherwise LGTM

We usually don't test terraform core functionality, including negative tests for read only attrs.

annakhm avatar Oct 24 '22 15:10 annakhm

/test-all

annakhm avatar Oct 24 '22 16:10 annakhm

/test-all

annakhm avatar Oct 24 '22 19:10 annakhm