open-nomad/nomad
Tim Gross 43622680fa test infrastructure for mock client RPCs (#10193)
This commit includes a new test client that allows overriding the RPC
protocols. Only the RPCs that are passed in are registered, which lets you
implement a mock RPC in the server tests. This commit includes an example of
this for the ClientCSI RPC server.
2021-03-31 16:37:09 -04:00
..
deploymentwatcher deploymentwatcher: reset progress deadline on promotion (#10042) 2021-02-22 16:44:03 -05:00
drainer drainer: fix error message when handling drain deadlined nodes. 2021-02-18 11:45:44 +01:00
mock prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
state CSI: unique volume per allocation 2021-03-18 15:35:11 -04:00
stream Events/acl events (#9595) 2020-12-11 10:40:50 -05:00
structs fixup! oversubscription: Add MemoryMaxMB to internal structs 2021-03-31 08:52:20 -04:00
types
volumewatcher csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
acl.go Audit config, seams for enterprise audit features 2020-03-23 13:47:42 -04:00
acl_endpoint.go one-time token: never return expired tokens 2021-03-10 08:17:56 -05:00
acl_endpoint_test.go one-time token: never return expired tokens 2021-03-10 08:17:56 -05:00
acl_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
alloc_endpoint.go updated Allocation.List to properly handle ACL checking for namespace=* 2020-11-05 17:26:33 +00:00
alloc_endpoint_test.go documenting test for #9268 2020-11-05 16:19:55 +00:00
autopilot.go implement MinQuorum 2020-02-16 16:04:59 -06:00
autopilot_test.go tests: deflake TestAutopilot_RollingUpdate 2020-04-03 17:15:41 -04:00
blocked_evals.go blocked_evals reset system evals on Flush 2019-07-18 10:32:13 -04:00
blocked_evals_system.go blocked_evals system evals indexed by job and node 2019-07-18 10:32:12 -04:00
blocked_evals_test.go blocked_evals_test disable calls Flush 2019-07-18 10:32:13 -04:00
client_agent_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_agent_endpoint_test.go minor tweaks from Ent 2020-07-20 09:25:09 -04:00
client_alloc_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_alloc_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_csi_endpoint.go msgpack-rpc errors cannot be wrapped (#8633) 2020-08-11 10:25:43 -04:00
client_csi_endpoint_test.go test infrastructure for mock client RPCs (#10193) 2021-03-31 16:37:09 -04:00
client_fs_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_fs_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_rpc.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_rpc_test.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
client_stats_endpoint.go server 2018-09-15 16:23:13 -07:00
client_stats_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
config.go configuration and oss components for licensing (#10216) 2021-03-23 09:08:14 -04:00
consul.go Fixup uses of `sanity` (#10187) 2021-03-16 18:05:08 -04:00
consul_policy.go nomad: fix leftover missed refactoring in consul policy checking 2020-01-31 19:05:06 -06:00
consul_policy_test.go nomad: fix leftover missed refactoring in consul policy checking 2020-01-31 19:05:06 -06:00
consul_test.go consul/connect: Add support for Connect terminating gateways 2021-01-25 10:36:04 -06:00
core_sched.go RPC endpoints to support 'nomad ui -login' 2021-03-10 08:17:56 -05:00
core_sched_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
csi_endpoint.go CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) 2021-03-18 14:32:40 -04:00
csi_endpoint_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
deployment_endpoint.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
deployment_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
deployment_watcher_shims.go Fix typos 2018-05-07 14:50:01 -05:00
drainer_int_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
drainer_shims.go set node.StatusUpdatedAt in raft 2019-05-21 16:13:32 -04:00
endpoints_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
eval_broker.go nomad: refactor waitForIndex into SnapshotAfter 2019-05-17 13:30:23 -07:00
eval_broker_test.go nomad: TestEvalBroker_Dequeue_Empty_Timeout() proper goroutine error handling (#6657) 2019-11-08 14:35:06 -05:00
eval_endpoint.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
eval_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event_endpoint.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
event_endpoint_test.go API: Event stream use full name instead of Eval/Alloc (#9509) 2020-12-03 11:48:18 -05:00
fsm.go RPC endpoints to support 'nomad ui -login' 2021-03-10 08:17:56 -05:00
fsm_not_ent.go
fsm_registry_oss.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
fsm_test.go oversubscription: Add MemoryMaxMB to internal structs 2021-03-30 16:55:58 -04:00
heartbeat.go goimports 2019-01-22 15:44:31 -08:00
heartbeat_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_endpoint.go dispatched parameterized job should clear status too 2021-03-25 15:14:21 -04:00
job_endpoint_hook_connect.go fixed connect port label 2021-02-13 02:42:14 +02:00
job_endpoint_hook_connect_test.go consul/connect: Add support for Connect terminating gateways 2021-01-25 10:36:04 -06:00
job_endpoint_hook_expose_check.go server: handle invalid jobs in expose handler hook (#10154) 2021-03-10 09:12:46 -05:00
job_endpoint_hook_expose_check_test.go consul/connect: enable custom sidecars to use expose checks 2021-02-09 10:49:37 -06:00
job_endpoint_hooks.go server: handle invalid jobs in expose handler hook (#10154) 2021-03-10 09:12:46 -05:00
job_endpoint_oss.go Allow job Version to start at non-zero value (#9071) 2020-10-12 13:59:48 -04:00
job_endpoint_test.go Add a test for parameterized summary counts 2021-03-25 11:27:09 -04:00
leader.go RPC endpoints to support 'nomad ui -login' 2021-03-10 08:17:56 -05:00
leader_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
leader_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
merge.go
namespace_endpoint.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
namespace_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
node_endpoint.go nomad: try to avoid slice resizing when batching 2020-11-24 09:14:00 -08:00
node_endpoint_test.go consul/connect: Add support for Connect terminating gateways 2021-01-25 10:36:04 -06:00
operator_endpoint.go minor tweaks from Ent 2020-07-20 09:25:09 -04:00
operator_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
periodic.go periodic: always reset periodic children status 2021-03-25 11:27:09 -04:00
periodic_endpoint.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_endpoint_test.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_test.go periodic: always reset periodic children status 2021-03-25 11:27:09 -04:00
plan_apply.go writetxn can return error, add alloc and job generic events. Add events 2020-10-14 12:44:39 -04:00
plan_apply_not_ent.go
plan_apply_pool.go
plan_apply_pool_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_apply_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_endpoint.go goimports 2019-01-22 15:44:31 -08:00
plan_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
plan_normalization_test.go fixup! oversubscription: Add MemoryMaxMB to internal structs 2021-03-31 09:26:26 -04:00
plan_queue.go nomad: refactor waitForIndex into SnapshotAfter 2019-05-17 13:30:23 -07:00
plan_queue_test.go nomad: fix test goroutine (#6593) 2019-10-31 08:23:32 -04:00
raft_rpc.go Refactor 2018-02-15 13:59:00 -08:00
regions_endpoint.go server 2018-09-15 16:23:13 -07:00
regions_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
rpc.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
rpc_test.go use os.ErrDeadlineExceeded in tests 2020-12-07 10:40:28 -05:00
scaling_endpoint.go fix #9227: use both job and type query on scaling policy list endpoint 2020-11-10 23:26:35 +00:00
scaling_endpoint_test.go simple test to ensure that scaling endpoint methods support IsRead for 2021-01-05 13:42:18 +00:00
search_endpoint.go support for scaling_policy in global prefix search 2021-02-03 19:26:57 +00:00
search_endpoint_oss.go support for scaling_policy in global prefix search 2021-02-03 19:26:57 +00:00
search_endpoint_test.go support for scaling_policy in global prefix search 2021-02-03 19:26:57 +00:00
serf.go tweak bootstrap testing 2021-01-04 09:00:40 -05:00
serf_test.go tweak bootstrap testing 2021-01-04 09:00:40 -05:00
server.go configuration and oss components for licensing (#10216) 2021-03-23 09:08:14 -04:00
server_setup_oss.go configuration and oss components for licensing (#10216) 2021-03-23 09:08:14 -04:00
server_test.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
stats_fetcher.go server 2018-09-15 16:23:13 -07:00
stats_fetcher_test.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
status_endpoint.go server 2018-09-15 16:23:13 -07:00
status_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
system_endpoint.go server 2018-09-15 16:23:13 -07:00
system_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
testing.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
timetable.go vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:45:21 -04:00
timetable_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
util.go csi: client RPCs should return wrapped errors for checking (#8605) 2020-08-07 11:01:36 -04:00
util_test.go remove unused dropButLastChannel 2020-02-13 18:56:53 -05:00
vault.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
vault_test.go Merge pull request #8524 from hashicorp/b-vault-health-checks 2020-08-11 16:01:07 -04:00
vault_testing.go on leadership establishment, revoke Vault tokens in background 2020-05-21 07:38:27 -04:00
worker.go add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
worker_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00