open-nomad/helper
Seth Hoenig f0c3dca49c tests: swap lib/freeport for tweaked helper/freeport
Copy the updated version of freeport (sdk/freeport), and tweak it for use
in Nomad tests. This means staying below port 10000 to avoid conflicts with
the lib/freeport that is still transitively used by the old version of
consul that we vendor. Also provide implementations to find ephemeral ports
of macOS and Windows environments.

Ports acquired through freeport are supposed to be returned to freeport,
which this change now also introduces. Many tests are modified to include
calls to a cleanup function for Server objects.

This should help quite a bit with some flakey tests, but not all of them.
Our port problems will not go away completely until we upgrade our vendor
version of consul. With Go modules, we'll probably do a 'replace' to swap
out other copies of freeport with the one now in 'nomad/helper/freeport'.
2019-12-09 08:37:32 -06:00
..
args address review comments 2018-10-30 13:58:52 -04:00
boltdd client/state: improve upgradeTaskBucket error handling 2018-12-19 10:39:27 -08:00
codec Pull inmem codec to helper 2018-02-15 13:59:00 -08:00
constraints/semver test: assert semvers are *not* compared lexically 2019-11-19 10:59:40 -08:00
discover skip running test executables 2017-10-19 16:49:57 -07:00
escapingio tests: handle unicode matches 2019-05-21 09:41:23 -04:00
fields goimports 2019-01-22 15:44:31 -08:00
flag-helpers agent: add optional param to -dev flag for connect (#6126) 2019-08-14 15:29:37 -04:00
flatmap Enable more linters 2017-09-26 15:26:33 -07:00
freeport tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
gated-writer agent: moving functions into helpers 2015-08-23 16:57:54 -07:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
pluginutils docker: set default cpu cfs period (#6737) 2019-11-19 19:05:15 -05:00
pool tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
stats Extend timeout based on user feedback 2018-06-21 15:27:56 -04:00
testlog New monitor pkg for shared monitor functionality 2019-11-05 09:51:49 -05:00
testtask Update helper/testtask/testtask_windows.go 2019-01-17 18:43:14 +01:00
tlsutil config: accept CA PEM files with extra whitespace 2018-09-06 11:38:56 -07:00
useragent Set user-agent when talking to GCE metadata 2018-04-10 10:36:46 -04:00
uuid Remove structs import from api 2017-09-29 10:36:08 -07:00
winsvc Added service wrapper code (#6220) 2019-11-11 15:16:07 -05:00
funcs.go connect: add group.service stanza support 2019-07-31 01:04:05 -04:00
funcs_test.go connect: add group.service stanza support 2019-07-31 01:04:05 -04:00