feat: add order to coder_metadata
Closes https://github.com/coder/terraform-provider-coder/issues/325
@johnstcn I have updated the TestMetadata to include one item with the order attribute and added a check(you can check the "Files changed" tab), but it is not working 😞
Error: Not equal:
expected: "4"
actual : "0"
Do you have any idea why?
@johnstcn about adding an integration test for this, I think this change is simple enough to be tested only in the TestMetadata, but I would like to understand why you think an integration test for this would be necessary.
I would like to understand why you think an integration test for this would be necessary.
Purely out of paranoia, but it's only a suggestion.
@johnstcn related to the integration tests, what minVersion should I set when testing new features?
@johnstcn related to the integration tests, what
minVersionshould I set when testing new features?
If you set minVersion: "v0.0.0" then the integration test will always run.
Otherwise, the test will only run based on the version of Coder against which the integration test is actually running.
In CI, the integration tests run against three different versions (from go run ./scripts/coderversion.go):
CODER_MAINLINE_VERSION: latest mainline versionCODER_STABLE_VERSION: latest stable versionCODER_OLDSTABLE_VERSION: previous stable version
So basically if a particular integration test only makes sense to run from a particular Coder version onwards, you set minVersion to that version.