mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
contrib: update config checklist docs
This commit is contained in:
parent
c500182105
commit
a80fb1c8d2
@ -33,9 +33,9 @@ There are four specific cases covered with increasing complexity:
|
|||||||
`TestFullConfig` in `agent/config/runtime_test.go`, it should fail now, then
|
`TestFullConfig` in `agent/config/runtime_test.go`, it should fail now, then
|
||||||
add the same random value to the expected struct in that test so it passes
|
add the same random value to the expected struct in that test so it passes
|
||||||
again.
|
again.
|
||||||
- [ ] Add the new field and it's default value to `TestSanitize` in the same
|
- [ ] Run `go test -run TestRuntimeConfig_Sanitize ./agent/config -update` to update
|
||||||
file. (Running the test first gives you a nice diff which can save working
|
the expected value for `TestRuntimeConfig_Sanitize`. Look at `git diff` to
|
||||||
out where etc.)
|
make sure the value changed as you expect.
|
||||||
- [ ] **If** your new config field needed some validation as it's only valid in
|
- [ ] **If** your new config field needed some validation as it's only valid in
|
||||||
some cases or with some values (often true).
|
some cases or with some values (often true).
|
||||||
- [ ] Add validation to Validate in `agent/config/builder.go`.
|
- [ ] Add validation to Validate in `agent/config/builder.go`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user