consul/agent
Paul Banks 2b377dc624 Run daemon processes as a detached child.
This turns out to have a lot more subtelty than we accounted for. The test suite is especially prone to races now we can only poll the child and many extra levels of indirectoin are needed to correctly run daemon process without it becoming a Zombie.

I ran this test suite in a loop with parallel enabled to verify for races (-race doesn't find any as they are logical inter-process ones not actual data races). I made it through ~50 runs before hitting an error due to timing which is much better than before. I want to go back and see if we can do better though. Just getting this up.
2018-06-25 12:24:08 -07:00
..
ae Spelling (#3958) 2018-03-19 16:56:00 +00:00
cache agent/cache: update comment from PR review to clarify 2018-06-25 12:24:08 -07:00
cache-types Fixed many tests after rebase. Some still failing and seem unrelated to any connect changes. 2018-06-14 09:42:16 -07:00
checks Update check.go 2018-03-31 16:44:35 +01:00
config agent/config: add managed proxy upstreams config to skip 2018-06-14 09:42:13 -07:00
connect Re-use uint8ToString 2018-06-14 09:42:23 -07:00
consul agent/consul/state: support querying by Connect native 2018-06-25 12:24:08 -07:00
exec fix go vet issue 2017-10-25 19:30:35 +02:00
local Persist proxy state through agent restart 2018-06-25 12:24:08 -07:00
metadata fix refactoring 2018-01-28 22:48:21 +04:00
mock agent: replace docker check 2017-07-18 20:24:38 +02:00
pool Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
proxy Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
router Remove unnecessary nil checks 2018-03-27 10:59:42 -05:00
structs agent/consul/state: support querying by Connect native 2018-06-25 12:24:08 -07:00
systemd agent: notify systemd after JoinLAN (#2121) 2017-06-21 06:43:55 +02:00
token Adds secure introduction for the ACL replication token. (#3357) 2017-08-03 15:39:31 -07:00
acl.go agent: verify local proxy tokens for CA leaf + tests 2018-06-14 09:42:14 -07:00
acl_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
acl_endpoint_test.go Moves ACL disabled response logic down into endpoints. 2017-11-29 18:36:52 -08:00
acl_test.go local state: tests compile 2017-10-23 10:56:03 +02:00
agent.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
agent_endpoint.go Persist proxy state through agent restart 2018-06-25 12:24:08 -07:00
agent_endpoint_test.go Persist proxy state through agent restart 2018-06-25 12:24:08 -07:00
agent_test.go Persist proxy state through agent restart 2018-06-25 12:24:08 -07:00
bindata_assetfs.go Update bindata_assetfs for 1.1 2018-05-11 14:56:05 -04:00
blacklist.go Adds the ability to blacklist specific HTTP endpoints. (#3252) 2017-07-10 13:51:25 -07:00
blacklist_test.go Adds the ability to blacklist specific HTTP endpoints. (#3252) 2017-07-10 13:51:25 -07:00
catalog_endpoint.go agent: clean up connect/non-connect duplication by using shared methods 2018-06-14 09:41:48 -07:00
catalog_endpoint_test.go agent: address PR feedback 2018-06-14 09:41:49 -07:00
check.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
config.go Fixes API client for ScriptArgs and updates documentation. (#3589) 2017-10-18 11:28:39 -07:00
connect_ca_endpoint.go Re-use uint8ToString 2018-06-14 09:42:23 -07:00
connect_ca_endpoint_test.go Rename some of the CA structs/files 2018-06-14 09:42:15 -07:00
coordinate_endpoint.go Merge pull request #3885 from eddsteel/support-options-requests 2018-03-16 09:20:16 -05:00
coordinate_endpoint_test.go Spelling (#3958) 2018-03-19 16:56:00 +00:00
dns.go agent: working DNS for Connect queries, I think, but have to 2018-06-14 09:41:47 -07:00
dns_test.go agent: address PR feedback 2018-06-14 09:41:49 -07:00
enterprise_delegate_oss.go Allow for easy enterprise/oss coexistence 2018-05-24 10:36:42 -04:00
event_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
event_endpoint_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
health_endpoint.go agent: get rid of method checks since they're done in the http layer 2018-06-14 09:41:54 -07:00
health_endpoint_test.go agent: address PR feedback 2018-06-14 09:41:49 -07:00
http.go Add BadRequestError handling 2018-05-24 10:34:01 -04:00
http_oss.go agent: rename test to check 2018-06-14 09:42:18 -07:00
http_oss_test.go Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS) 2018-04-10 13:18:46 -04:00
http_test.go Adds discovery_max_stale (#4004) 2018-03-30 10:14:44 -05:00
intentions_endpoint.go agent: address feedback 2018-06-14 09:42:20 -07:00
intentions_endpoint_test.go agent: rename test to check 2018-06-14 09:42:18 -07:00
keyring.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
keyring_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kvs_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
kvs_endpoint_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
notify.go agent: move NotifyGroup into the agent pkg 2017-06-21 05:42:39 +02:00
notify_test.go agent: move NotifyGroup into the agent pkg 2017-06-21 05:42:39 +02:00
operator_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
operator_endpoint_test.go Move autopilot to a standalone package 2017-12-11 16:45:33 -08:00
prepared_query_endpoint.go Adds discovery_max_stale (#4004) 2018-03-30 10:14:44 -05:00
prepared_query_endpoint_test.go Update make static-assets goal and run format 2018-04-13 09:57:25 -07:00
remote_exec.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
remote_exec_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
retry_join.go Use new discover and useragent libs 2018-05-25 15:52:05 -04:00
retry_join_test.go Use new discover and useragent libs 2018-05-25 15:52:05 -04:00
session_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
session_endpoint_test.go Works around mapstructure behavior to enable sessions with no checks. 2017-12-14 09:07:56 -08:00
snapshot_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
snapshot_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
status_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
status_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
testagent.go Make invalid clusterID be fatal 2018-06-14 09:42:17 -07:00
testagent_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
translate_addr.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
txn_endpoint.go Support OPTIONS requests 2018-02-12 10:15:31 -08:00
txn_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
ui_endpoint.go api/ui: return tags on internal UI endpoints 2018-04-05 12:28:57 -07:00
ui_endpoint_test.go api/ui: return tags on internal UI endpoints 2018-04-05 12:28:57 -07:00
user_event.go Spelling (#3958) 2018-03-19 16:56:00 +00:00
user_event_test.go local state: tests compile 2017-10-23 10:56:03 +02:00
util.go Improves user lookup error message. 2018-01-26 07:56:44 -08:00
util_test.go Move check definition to a sub-struct 2017-11-01 14:54:46 -07:00
watch_handler.go Support legacy watch.HandlerFunc type for backward compat reduces impact of change 2018-06-14 09:42:05 -07:00
watch_handler_test.go Support legacy watch.HandlerFunc type for backward compat reduces impact of change 2018-06-14 09:42:05 -07:00