open-nomad/client/allocrunner/taskrunner
Mahmood Ali 543f08c1ae Deflake TestTaskTemplateManager_BlockedEvents test
This change deflakes TestTaskTemplateManager_BlockedEvents test, because
it is expecting a number of events without accounting for transitional
state.

The test TestTaskTemplateManager_BlockedEvents attempts to ensure that a
template rendering emits blocked events for missing template ksys.

It works by setting a template that requires keys 0,1,2,3,4 and then
eventually sets keys 0,1,2,3 and ensures that we get a final event indicating
that keys 3 and 4 are still missing.

The test waits to get a blocked event for the final state, but it can
fail if receives a blocked event for a transitional state (e.g. one
reporting 2,3,4,5 are missing).

This fixes the test by ensuring that it waits until the final message
before assertion.

Also, it clarifies the intent of the test with stricter assertions and
additional comments.
2020-05-09 14:09:39 -04:00
..
getter
interfaces
restarts fix test 2020-03-21 17:52:57 -04:00
state
template Deflake TestTaskTemplateManager_BlockedEvents test 2020-05-09 14:09:39 -04:00
testdata
artifact_hook.go
artifact_hook_test.go
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go
driver_handle.go
envoybootstrap_hook.go connect: set consul TLS options on envoy bootstrap 2020-04-02 10:30:50 -06:00
envoybootstrap_hook_test.go connect: set consul TLS options on envoy bootstrap 2020-04-02 10:30:50 -06:00
errors.go
errors_test.go
lazy_handle.go
lifecycle.go
logmon_hook.go address review comments 2019-12-13 11:21:00 -05:00
logmon_hook_test.go driver: allow disabling log collection 2019-12-08 14:15:03 -05:00
logmon_hook_unix_test.go driver: allow disabling log collection 2019-12-08 14:15:03 -05:00
plugin_supervisor_hook.go csi: dynamically update plugin registration (#7386) 2020-03-23 13:59:25 -04:00
script_check_hook.go interpolate environment for services in script checks (#6916) 2020-01-09 08:12:54 -05:00
script_check_hook_test.go interpolate environment for services in script checks (#6916) 2020-01-09 08:12:54 -05:00
service_hook.go Run task shutdown_delay regardless of service registration 2020-04-10 11:06:26 -04:00
service_hook_test.go tr/service_hook: reset initialized flag during deregister 2020-04-06 16:05:36 -04:00
sids_hook.go client: PR cleanup - improved logging around kill task in SIDS hook 2020-01-31 19:05:23 -06:00
sids_hook_test.go tests: set consul token for nomad client for testing SIDS TR hook 2020-01-31 19:06:15 -06:00
stats_hook.go
stats_hook_test.go
task_dir_hook.go
task_runner.go Run task shutdown_delay regardless of service registration 2020-04-10 11:06:26 -04:00
task_runner_getters.go
task_runner_hooks.go connect: set consul TLS options on envoy bootstrap 2020-04-02 10:30:50 -06:00
task_runner_test.go tests: restart restartpolicy for all tasks in tests 2020-03-24 21:52:48 -04:00
tasklet.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
tasklet_test.go
template_hook.go
validate_hook.go
validate_hook_test.go
vault_hook.go
vault_hook_test.go
volume_hook.go volumes: add task environment interpolation to volume_mount (#7364) 2020-03-23 13:59:25 -04:00
volume_hook_test.go volumes: add task environment interpolation to volume_mount (#7364) 2020-03-23 13:59:25 -04:00