open-nomad/client
Michael Schurter 8ced0adb67 test: port TestTaskRunner_CheckWatcher_Restart
Added ability to adjust the number of events the TaskRunner keeps as
there's no way to observe all events otherwise.

Task events differ slightly from 0.8 because 0.9 emits Terminated every
time a task exits instead of only when it exits on its own (not due to
restart or kill).

0.9 does not emit Killing/Killed for restarts like 0.8 which seems fine
as `Restart Signaled/Terminated/Restarting` is more descriptive.

Original v0.8 events emitted:
```
	expected := []string{
		"Received",
		"Task Setup",
		"Started",
		"Restart Signaled",
		"Killing",
		"Killed",
		"Restarting",
		"Started",
		"Restart Signaled",
		"Killing",
		"Killed",
		"Restarting",
		"Started",
		"Restart Signaled",
		"Killing",
		"Killed",
		"Not Restarting",
	}
```
2019-01-22 09:46:46 -08:00
..
allocdir driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
allochealth test: port some pre-0.9 DeploymentHealth tests 2019-01-14 09:56:53 -08:00
allocrunner test: port TestTaskRunner_CheckWatcher_Restart 2019-01-22 09:46:46 -08:00
allocwatcher allocwatcher: Stat_t is unavailable on win 2019-01-17 18:43:14 +01:00
config REfactor statedb factory config to set it directly in client config 2019-01-12 10:38:20 -06:00
consul test: add some extra logging 2019-01-14 09:56:53 -08:00
devicemanager recover 2019-01-07 14:49:40 -08:00
fingerprint fingerprinter: Use HCLogger for windows 2019-01-17 18:43:13 +01:00
interfaces Populate alloc stats API with device stats 2018-11-16 10:26:32 -05:00
lib fifo: add new fifo package for named pipes (#4665) 2018-10-16 16:53:30 -07:00
logmon Merge pull request #5190 from hashicorp/f-memory-usage 2019-01-18 16:46:02 -05:00
pluginmanager Merge pull request #5034 from hashicorp/test-fix-races 2019-01-08 07:04:09 -08:00
servers fix test compiling 2018-10-16 16:56:55 -07:00
state ar: return error from hooks if occured 2019-01-18 18:31:02 -05:00
stats Add Client Device Stats structs in api package 2018-11-14 14:41:19 -05:00
structs Track Basic Memory Usage as reported by cgroups 2019-01-14 18:47:52 -05:00
taskenv move cstructs.DeviceNetwork to drivers pkg 2019-01-08 09:11:47 -05:00
testutil tests: helper function for checking docker presense 2019-01-07 08:27:06 -05:00
vaultclient chore: Cleanup formatting 2019-01-17 18:43:13 +01:00
acl.go client: hclog-ify most of the client 2018-10-16 16:53:30 -07:00
acl_test.go tests: explicitly cleanup after clients 2018-10-17 10:06:59 -07:00
alloc_endpoint.go feedback and rebasing 2018-02-15 13:59:03 -08:00
alloc_endpoint_test.go tests: enable and fix tests requiring mock driver 2019-01-10 10:10:11 -05:00
alloc_watcher_e2e_test.go tests: enable and fix tests requiring mock driver 2019-01-10 10:10:11 -05:00
client.go Only set deployment health if not already set 2019-01-12 10:38:20 -06:00
client_stats_endpoint.go Server side impl + touch ups 2018-02-15 13:59:02 -08:00
client_stats_endpoint_test.go tests: explicitly cleanup after clients 2018-10-17 10:06:59 -07:00
client_test.go linting fixes 2019-01-12 10:38:20 -06:00
fingerprint_manager.go client/drivermananger: add driver manager 2018-12-18 22:55:18 -05:00
fingerprint_manager_test.go client/drivermananger: add driver manager 2018-12-18 22:55:18 -05:00
fs_endpoint.go client: expose task state to client 2018-10-16 16:56:55 -07:00
fs_endpoint_test.go tests: deflake client TestFS_Logs_TaskPending test 2019-01-18 21:26:48 -05:00
gc.go Plugins use parent loggers 2019-01-11 11:36:37 -08:00
gc_test.go test: copy AR's Alloc before mutating 2018-12-19 15:48:02 -08:00
node_updater.go fix tests that fail as a result of async client startup 2018-12-20 00:53:44 -05:00
rpc.go fix more cases of logging arity errors 2019-01-09 09:22:47 -05:00
rpc_test.go tests: explicitly cleanup after clients 2018-10-17 10:06:59 -07:00
testing.go REfactor statedb factory config to set it directly in client config 2019-01-12 10:38:20 -06:00
util.go example redis job "runs" on arv2! see below 2018-10-16 16:53:29 -07:00
util_test.go Update state with server 2018-10-16 16:53:29 -07:00