open-nomad/nomad
Tim Gross a9a350cfdb
drainer: fix codec race condition in integration test (#16845)
msgpackrpc codec handles are specific to a connection and cannot be shared
between goroutines; this can cause corrupted decoding. Fix the drainer
integration test so that we create separate codecs for the goroutines that the
test helper spins up to simulate client updates.

This changeset also refactors the drainer integration test to bring it up to
current idioms and library usages, make assertions more clear, and reduce
duplication.
2023-04-11 14:31:13 -04:00
..
deploymentwatcher api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
drainer api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
mock api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
state api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
stream [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
structs api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
volumewatcher api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
acl.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
acl_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
acl_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
acl_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
alloc_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
alloc_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
blocked_evals.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
blocked_evals_stats.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
blocked_evals_stats_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
blocked_evals_system.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
blocked_evals_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_agent_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_agent_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_alloc_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_alloc_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
client_csi_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_csi_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_fs_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_fs_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
client_meta_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_meta_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_rpc.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_rpc_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_stats_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client_stats_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
config.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
consul.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_oss_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_policy.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_policy_oss_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_policy_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
core_sched.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
core_sched_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
csi_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
csi_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
deployment_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
deployment_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
deployment_watcher_shims.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
drainer_int_test.go drainer: fix codec race condition in integration test (#16845) 2023-04-11 14:31:13 -04:00
drainer_shims.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
encrypter.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
encrypter_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
endpoints_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
eval_broker.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
eval_broker_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
eval_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
eval_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
event_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
event_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
fsm.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
fsm_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
fsm_registry_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
fsm_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
heartbeat.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
heartbeat_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
job_endpoint_hook_connect.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hook_connect_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hook_expose_check.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hook_expose_check_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hook_vault.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hook_vault_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_hooks.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
job_endpoint_hooks_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
job_endpoint_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_oss_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
job_endpoint_validators.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job_endpoint_validators_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
keyring_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
keyring_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
leader.go acl: bump JWT auth gate to 1.5.4 (#16838) 2023-04-11 10:07:45 +02:00
leader_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
leader_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
license_config.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
license_config_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
merge.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
namespace_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
namespace_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
node_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
node_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
operator_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
operator_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
periodic.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
periodic_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
periodic_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
periodic_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
plan_apply.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_node_tracker.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_node_tracker_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_pool.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_pool_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_apply_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_normalization_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_queue.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plan_queue_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
raft_rpc.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
regions_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
regions_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
rpc.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
rpc_rate_metrics.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
rpc_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
scaling_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
scaling_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
search_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
search_endpoint_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
search_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
serf.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
serf_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
server.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
server_setup_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
server_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service_registration_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service_registration_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
stats_fetcher.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
stats_fetcher_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
status_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
status_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
system_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
system_endpoint_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
testing.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
testing_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
timetable.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
timetable_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
util.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
util_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
variables_endpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
variables_endpoint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault_testing.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
worker.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
worker_string_schedulerworkerstatus.go Make number of scheduler workers reloadable (#11593) 2022-01-06 11:56:13 -05:00
worker_string_workerstatus.go Make number of scheduler workers reloadable (#11593) 2022-01-06 11:56:13 -05:00
worker_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00