Commit Graph

664 Commits (2e6ccded2c472812e3bf417f88cd2dcd4581d00a)

Author SHA1 Message Date
Ryan Uber 84f04ff4c9 command: clarify -recursor agent arg
10 years ago
Mohammad Zolfaghari f067ad873b Support multiple recursor flag
10 years ago
Ryan Uber 6ce6d2d806 agent: write API's on /v1/agent block for anti-entropy
10 years ago
Ryan Uber 4193525931 agent: Better warning for keyring with -encrypt option. Fixes #718.
10 years ago
Ryan Breen b78eb40ef4 s/data center/datacenter/g
10 years ago
Armon Dadgar cd3cd4d3b8 agent: Cleanup a comment
10 years ago
Armon Dadgar 0101ee38eb agent: Fixing blocking queries on internal endpoints
10 years ago
Armon Dadgar 847eaadc56 agent: Enable UI endpoints for SCADA
10 years ago
Armon Dadgar 62c3d49d64 agent: Do not expose AtlasToken or AtlasACLToken
10 years ago
Armon Dadgar ea42b04593 agent: Updating for new client API
10 years ago
Armon Dadgar ad3016100c agent: Test ACL token resolution
10 years ago
Armon Dadgar 8fb642d332 agent: Adding SCADA tests
10 years ago
Armon Dadgar c495a5434d agent: Use AtlasACLToken
10 years ago
Armon Dadgar 8d184a241f agent: Rename AtlasCluster to AtlasInfrastructure
10 years ago
Armon Dadgar b9cdb94f19 agent: Fixing setup of SCADA HTTP listener
10 years ago
Armon Dadgar 6a640604dd agent: Fixing panic on shutdown
10 years ago
Armon Dadgar e99f9dd070 agent: Provide auto-join metadata to SCADA
10 years ago
Armon Dadgar 85a47ba584 agent: Adding atlas_join configuration
10 years ago
Armon Dadgar 32aaee5185 agent: SCADA HTTP integration
10 years ago
Armon Dadgar 456645f2fb agent: SCADA HTTP listener
10 years ago
Armon Dadgar 55597dc38f agent: Starting SCADA integration
10 years ago
Armon Dadgar ebfd35898b agent: Adding Atlas CLI flags
10 years ago
Armon Dadgar b4929c090a agent: Adding new Atlas configs
10 years ago
Armon Dadgar b319c41bd9 agent: Snapshot and restore health state on reload. Fixes #693
10 years ago
artushin 2ae843d51c oops. DefaultTransport being used.
10 years ago
artushin 5ec92971ac close idle connections after stopping http checks to service
10 years ago
Ryan Uber 103e9e7fc1 agent: clarify the valid characters for dns
10 years ago
Ryan Uber 722b255816 agent: warn on service tags with invalid chars
10 years ago
Ryan Uber 5e801c905d agent: Warn on dns-incompatible characters during service registration. Fixes #683.
10 years ago
lalyos 190f15458f fixing version numbers RCs should be labeled x.x.x-rcx
10 years ago
Ryan Uber 84f8c70a79 agent: fix test case examples
10 years ago
Ryan Uber 45097f9f3d Merge pull request #654 from arnaudbriche/http-check-timeout
10 years ago
arnaud briche bbb5f4696a - add tests for CheckHTTP with new timeout parameter && CheckType.Timeout parsing
10 years ago
arnaud briche 7f91782478 - add proper parsing of CheckType.Timeout from string
10 years ago
Ryan Uber 3c85d7e231 agent: http checks work inside of service definitions
10 years ago
Ryan Uber 544299efa5 agent: pass locally configured token during remote exec
10 years ago
arnaud briche e87afe341b - add Timeout field to CheckType and CheckHTTP to make http request timeout configurable by the client
10 years ago
Ryan Uber 58eba95b98 agent: test service/check deletion with empty ID
10 years ago
foostan 2df98c1824 Validation ServiceID/CheckID when deleting in deleteService() in local.go
10 years ago
foostan 9316596e25 Add tests to remove service/check without an ID
10 years ago
foostan 401bc71cb2 Validate ServiceID/CheckID when deregistering.
10 years ago
Ryan Uber 8b0fe52be2 agent/http: fix service registration with nil checks value
10 years ago
Ryan Uber b5e8111485 agent/http: clean up socket setup
10 years ago
Ryan Uber eda2171bbe agent: make check tests more reliable
10 years ago
Ryan Uber b69b780408 agent: error from KVS endpoint if incompatible flags are passed. Fixes #432
10 years ago
Ryan Uber 67190e6f68 agent: more lenient dns response test
10 years ago
Armon Dadgar e1a5d537d4 Merge pull request #625 from hashicorp/f-maintcmd
10 years ago
Ryan Uber 44f3c20e50 command/maint: clean up
10 years ago
Ryan Uber 09fd2a7e94 command/maint: display active maintenance when no args are passed
10 years ago
Armon Dadgar cf04d6ae31 Merge pull request #622 from hashicorp/f-sockets
10 years ago
Ryan Uber 124e7bfa7e agent: use const for default maintenance reason strings
10 years ago
Ryan Uber 5aa69827f8 agent: fix test
10 years ago
Ryan Uber 61d17e65f5 agent: prevent duplicate error messages for maintenance api
10 years ago
Ryan Uber f00b5b542e agent: support passing ?reason= for custom notes field values on maintenance checks
10 years ago
Ryan Uber b6a0f2baae agent: fix maintenance check ID
10 years ago
Ryan Uber d9a3e673b0 agent: change node maintenance endpoint
10 years ago
Ryan Uber 9c69dc05fb agent: use strconv.ParseBool for parsing maintenance enable flag
10 years ago
Ryan Uber 46d5dcfc17 agent: comments for new anti-entropy functionality
10 years ago
Ryan Uber a4039aaa4d agent: simplify anti-entropy of services with multiple checks, add tests
10 years ago
Ryan Uber 0c31e5851c agent: only send service with check sync if it is out of sync
10 years ago
Ryan Uber 949ddefbc8 agent: refactor syncChecks
10 years ago
Ryan Uber 2a7211cd5d agent: support adding multiple checks during service registration from the API
10 years ago
Ryan Uber 674be58e55 agent: support multiple checks per service
10 years ago
Ryan Uber c958824bb6 agent: use squash mapstructure tag to properly decode embedded structs
10 years ago
Ryan Uber b1dae530d4 agent: use interface for file permissions
10 years ago
Ryan Uber 782b0ddd88 agent: test permissions are set on rpc socket
10 years ago
Ryan Uber 99d4e7831e agent: fix tests
10 years ago
Ryan Uber a6c877c7ee agent: re-add support for user name in socket perms
10 years ago
Ryan Uber 145c56b47d agent: test Unix domain socket permission settings
10 years ago
Ryan Uber 450d05575d agent: adjusting tests for new behavior of sockets
10 years ago
Ryan Uber 21dd95d9af agent: beginning socket user/group/mode support as discussed in #612
10 years ago
Ryan Uber 2530e5ff05 agent: test agent rpc unix socket create failure
10 years ago
Ryan Uber ba96535cfc Merge pull request #610 from dave-tucker/bug/609
10 years ago
Dave Tucker 18b5ab3539 Don't forget to Shutdown the DNS Server!
10 years ago
Ryan Uber ba2d0fa7e3 agent: maintenance logging + unique service check IDs
10 years ago
Ryan Uber 8cf4e9889e agent: test node maintenance mode
10 years ago
Ryan Uber 7748c62d09 agent: node maintenance mode works
10 years ago
Ryan Uber 9ee1e6e858 agent: maintenance mode api's are idempotent
10 years ago
Ryan Uber 8819d71f99 agent: maintenance mode is persistent
10 years ago
Ryan Uber 35c10a902f agent: test http endpoints for maintenance mode
10 years ago
Ryan Uber 3fbb2be6c0 agent: test agent service maintenance mode
10 years ago
Ryan Uber 2973cd9131 agent: first pass at service maintenance mode
10 years ago
Ryan Uber f01bb5cf3b agent: error if binding to existing socket file
10 years ago
Ryan Uber 56c3e488a9 agent: test socket file overwrite
10 years ago
Ryan Uber 4c3ec248a5 agent: fixing up tests
10 years ago
Ryan Uber bf48651c58 agent: only ignore errors on IsNotExist()
10 years ago
Ryan Uber 4675cdf01c agent: beginning refactor
10 years ago
Jeff Mitchell 9fcea08dbb Ensure a socket is created for permissions adjustment tests and fix some
10 years ago
Jeff Mitchell 32d2c6b848 Add a Unix socket RPC test. I modified some code in the testing library to not make assumptions about the listening socket; all RPC tests still pass. Still to do: Unix socket HTTP test.
10 years ago
Jeff Mitchell 0cc009c480 Remove unnecessary ClientListenerAddr function. Rework config test functions to be cleaner. Start of runtime tests.
10 years ago
Jeff Mitchell 8362e3e9eb Tests for populateUnixSocket. Still need to write tests for the other major function, and basic socket listening tests.
10 years ago
Jeff Mitchell 11a3ce0bdd RPC and HTTP interfaces fully generically-sockified so Unix is supported.
10 years ago
Armon Dadgar 96c7ce120e command/agent: Minor cleanups
10 years ago
Armon Dadgar 713d30c73e Merge pull request #592 from nicholascapo/check-http
10 years ago
Armon Dadgar aedaf7a7c8 Merge pull request #595 from ebroder/dns-only-passing
10 years ago
Evan Broder a0228a64e2 Add more thorough testing for only_passing behavior
10 years ago
Nicholas Capo 641476a822 command/agent: Add tests for HTTP Check
10 years ago
Ryan Uber b2fbaea18c agent: make dns randomization test more reliable
10 years ago
Nicholas Capo 98eb935392 command/agent: HTTP Check: Create httpClient in Start()
10 years ago
Nicholas Capo bcb983edbe command/agent: HTTP Check: Include response in check status
10 years ago
Nicholas Capo 50853265dd command/agent: Stop HTTP checks when the check is removed
10 years ago
Nicholas Capo 6a2d763d5c command/agent: HTTP check: Any 2xx is OK, 429 is WARNING
10 years ago
Evan Broder ee6d59d4dd Add "only_passing" option to DNS config
10 years ago
Ryan Uber 5bf1abf7ef agent: fix local_test.go
10 years ago
Ryan Uber c2188440b2 agent: wrap deferred anti-entropy sync test in WaitForResult
10 years ago
Nicholas Capo fb5ba8d97d command/agent: Add simple HTTP check type
10 years ago
Armon Dadgar d05ed7baa6 agent: Testing the KV DELETE with cas
10 years ago
Armon Dadgar 3e0f77682a agent: Support the ?cas parameter to KV DELETE
10 years ago
Armon Dadgar 9f4955151a agent: Testing anti-entropy with service address
10 years ago
Armon Dadgar 77a3bfd606 agent: Adding test for DNS lookup with service address
10 years ago
Armon Dadgar 419447d9f7 agent: Fix de-duplication of SRV with service address
10 years ago
Armon Dadgar 23b9c96169 consul: Fixing merge conflict
10 years ago
Armon Dadgar f2e1065246 agent: Testing reverse lookup with custom TLD
10 years ago
dankennedy 63af8d08e1 replaced consul domain with configured domain. Fixes #582
10 years ago
Ryan Uber a24f6e3d4d agent: test service and check unloading
10 years ago
Ryan Uber 51fe9f32ff agent: consolidate service loading code, better logging
10 years ago
Ryan Uber cfde9313de agent: separate service and check loading/unloading concerns
10 years ago
Ryan Uber 0b9f2b0954 agent: persist service/check data using hashed service/check IDs (fixes #573)
10 years ago
Ryan Uber db3c502dcc Merge pull request #576 from hashicorp/f-verify-config
10 years ago
Daniel Malon bd65cbb7d7 use the service specific address in SRV response
10 years ago
Ryan Uber 42ace3a6b5 agent: use mapstructure's Metadata.Unused to detect extraneous config
10 years ago
Ryan Uber b8740b62da agent: reject config with invalid options
10 years ago
Armon Dadgar f86d7c3a09 Merge pull request #558 from ceh/http-api-response-headers
10 years ago
Daniel Malon 051ac8eb0b advertise specific address for a service
10 years ago
Thordur Bjornsson a12ffef8b6 Test both ?pretty both bare and with value.
10 years ago
Thordur Bjornsson 1435818792 handle ?pretty similarly to ?stale, ?consistent etc.
10 years ago
Ryan Uber e9615c50e6 agent: test pretty printed json
10 years ago
Emil Hessman cb764c35e5 add ability to specify response headers on the HTTP API
10 years ago
Ryan Breen f2bd641402 Clean up log line and reduce test time.
10 years ago
Ryan Breen d82ef7bb8c Test that staggered checks run within the defined interval.
10 years ago
Ryan Breen 2e58f54a26 Well, that sure is cleaner.
10 years ago
Ryan Breen 60dacecb39 Add a randomized start before running CheckMonitors.
10 years ago
Armon Dadgar a5a9f051cd consul: Ignore zero ttl on session
10 years ago
Armon Dadgar 29afa881f4 Merge pull request #524 from amalaviy/session_ttl
10 years ago
Atin Malaviya ac54010027 Fixed clearSessionTimer, created invalidateSession, added invalid TTL test
10 years ago
Atin Malaviya 60915629f6 Took out usage of snapshot SessionListTTL
10 years ago
Atin Malaviya 0f9723e6f8 Remove hardcoded wait time in session TTL tests
10 years ago
Atin Malaviya 5229f3b44d Clean up code based on feedback from armon
10 years ago
Atin Malaviya 624c465e2b Added more tests. Also added return of 404 if the session id to renew is not found
10 years ago
Atin Malaviya 4732c36d88 Consul Session TTLs
10 years ago
Ali Abbas d73e1cae85 since dns.TXT is an external dependency, it is safer to add keys to the fields to avoid some potential ordering issues if changes in this field occur with upstream
10 years ago
Chavez de0d2d7b78 agent: agent test fixes
10 years ago
Veres Lajos 3b1068387a typofixes - https://github.com/vlajos/misspell_fixer
10 years ago
Armon Dadgar 5887242db2 agent: Handle service ACLs when doing anti-entropy
10 years ago
Ryan Uber 81d4e5cfd4 agent: fixup all check definitions from json config
10 years ago
Ryan Uber dd4fadfc9e agent: persist CheckType with health checks
10 years ago
Ryan Uber b7587cac42 agent: allow config reload to modify checks/services persistence
10 years ago
Ali Abbas a4656f1ecf fix Sprintf formatting
10 years ago
Ali Abbas e395420af6 cleanup unreachable code
10 years ago
Ryan Uber 9f9087badb agent: prefer config over persisted services/checks (#497)
10 years ago