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
Having a valid config would allow us to avoid infinite crashes like #14643 when an invalid config was written to the database. Probably we should callnodeConfig.Validate in parseSaveAndSyncSetting in database.go
Steps to reproduce
Try adding the following test to node_config_test.go:
Error: Received unexpected error:
Key: 'NodeConfig.KeycardPairingDataFile' Error:Field validation for 'KeycardPairingDataFile' failed on the 'required' tag
Expected behavior
Node Config in the database should be valid
Actual behavior
Required fields are missing
The text was updated successfully, but these errors were encountered:
Bug Report
Description
KeycardPairingDataFile string validate:"required"
is marked as required in config.goBut it's not inserted/loaded in node_config.go:
Having a valid config would allow us to avoid infinite crashes like #14643 when an invalid config was written to the database. Probably we should call
nodeConfig.Validate
inparseSaveAndSyncSetting
in database.goSteps to reproduce
Try adding the following test to node_config_test.go:
it fails with
Expected behavior
Node Config in the database should be valid
Actual behavior
Required fields are missing
The text was updated successfully, but these errors were encountered: