open-nomad/command/agent/consul
Michael Schurter 8a0cf66822 Improve invalid port error message for services
Related to #3681

If a user specifies an invalid port *label* when using
address_mode=driver they'll get an error message about the label being
an invalid number which is very confusing.

I also added a bunch of testing around Service.AddressMode validation
since I was concerned by the linked issue that there were cases I was
missing. Unfortunately when address_mode=driver is used there's only so
much validation that can be done as structs/structs.go validation never
peeks into the driver config which would be needed to verify the port
labels/map.
2018-01-18 15:35:24 -08:00
..
catalog_testing.go Test Consul from TaskRunner thoroughly 2017-12-08 12:03:00 -08:00
check_watcher.go Fix comments: task -> check 2017-09-15 15:19:53 -07:00
check_watcher_test.go Test check watch updates 2017-09-14 16:48:39 -07:00
client.go Improve invalid port error message for services 2018-01-18 15:35:24 -08:00
int_test.go Services should not require a port 2017-12-19 15:50:23 -08:00
script.go Thanks go vet! 2017-04-19 13:05:41 -07:00
script_test.go Forgot to setcmdenv 2017-07-25 12:09:57 -07:00
unit_test.go Improve invalid port error message for services 2018-01-18 15:35:24 -08:00