Frank Schroeder
f398fe83b7
agent: fix TestRetryJoinFail
2017-10-24 20:35:37 +02:00
Frank Schroeder
8defdddf31
agent: fix TestRetryJoinWanFail
2017-10-24 20:35:36 +02:00
Frank Schroeder
4bb5cf425b
watch: make sure invoke channels timeout evenutally
2017-10-24 20:35:36 +02:00
Frank Schroeder
c059270394
watch: run tests in parallel
2017-10-24 20:35:36 +02:00
Frank Schroeder
cee28aee30
watch: convert TestEventWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
be1d91966a
watch: convert TestKeyPrefixWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
f24b06fe97
watch: convert TestKeyWatch_With_PrefixDelete to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
8c1dcffdff
watch: convert TestKeyWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
899d11f1c9
watch: convert TestChecksWatch_Service to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
4677ca436a
watch: convert TestChecksWatch_State to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
cc51b39eed
watch: convert TestServicesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
7a470d377d
watch: convert TestServiceWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
813660507a
watch: convert TestNodesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
8e5662ddd0
watch: use test agent instead of external Consul instance
2017-10-24 11:59:44 +02:00
James Phillips
cf0336228b
Update CHANGELOG.md
2017-10-23 22:54:37 -07:00
James Phillips
d82cfc3b81
Update CHANGELOG.md
2017-10-23 22:53:29 -07:00
Alex Dadgar
98863b9694
Merge pull request #3609 from hashicorp/f-freeport-testing
...
Make freeport testing friendly
2017-10-23 16:34:27 -07:00
Alex Dadgar
791738a3a7
format vendor
2017-10-23 16:31:44 -07:00
Alex Dadgar
af09d86892
Make freeport testing friendly
...
This PR allows the caller to decide if they would like to have the
calling test fail, have the caller panic on error, or handle the errors
themselves.
2017-10-23 16:28:02 -07:00
James Phillips
d8bb6074e4
Update CHANGELOG.md
2017-10-23 08:58:49 -07:00
Frank Schroeder
9d733d8860
Update CHANGELOG.md
2017-10-23 16:44:32 +02:00
Frank Schroeder
b72c8f5526
Update README.md
...
Mention vendorfmt in the `Vendoring` section.
2017-10-23 12:42:00 +02:00
James Phillips
3b170cf258
Changes "ip" to "IP".
2017-10-23 12:34:43 +02:00
Frank Schroeder
62f612de11
Merge pull request #3391 from hashicorp/refactor-local-state-2
...
This patch decouples the local state and the anti-entropy code from the
agent and from each other to have cleaner separation of concerns and to
ensure that data structures are properly locked.
2017-10-23 10:59:55 +02:00
Frank Schroeder
1d2ae14719
local state: fix go vet issue
2017-10-23 10:56:05 +02:00
Frank Schroeder
a818414bb6
local state: remove stale comment
2017-10-23 10:56:05 +02:00
Frank Schroeder
329fdc40a8
local state: make test more robust
2017-10-23 10:56:05 +02:00
Frank Schroeder
f5a3d73b27
local state: clone check to avoid side effect
2017-10-23 10:56:05 +02:00
Frank Schroeder
b36613e7ff
local state: use synchronized access to internal maps
2017-10-23 10:56:05 +02:00
Frank Schroeder
e5318061d1
ae: do not trigger on Resume while holding the lock
2017-10-23 10:56:05 +02:00
Frank Schroeder
7d5dfa9c53
ae: add remaining test cases
2017-10-23 10:56:05 +02:00
Frank Schroeder
ae7269458c
ae: refactor StateSyncer to state machine for better testing
2017-10-23 10:56:05 +02:00
Frank Schroeder
a72b68c562
ae: add test that we run a full before a partial sync
2017-10-23 10:56:05 +02:00
Frank Schroeder
27bc11f005
ae: make control flow more explicit
2017-10-23 10:56:05 +02:00
Frank Schroeder
29435004f6
ae: fix typo in constructor name
2017-10-23 10:56:05 +02:00
Frank Schroeder
1bb1a6787e
ae: add test for resume triggering SyncChanges
2017-10-23 10:56:05 +02:00
Frank Schroeder
6de645a8b8
ae: add test for ifNotPausedRun
2017-10-23 10:56:05 +02:00
Frank Schroeder
4f79ee3188
ae: make stagger function pluggable for testing
2017-10-23 10:56:05 +02:00
Frank Schroeder
5d6089b6fa
ae: restore previous pause/resume behavior
2017-10-23 10:56:04 +02:00
Frank Schroeder
6064a2a764
ae: ensure that syncs are blocked when paused
2017-10-23 10:56:04 +02:00
Frank Schroeder
f187c37c27
local state: rename Add{Check,Service}State to Set{Check,Service}State
2017-10-23 10:56:04 +02:00
Frank Schroeder
209e67b2f9
local state: move Metadata methods together
2017-10-23 10:56:04 +02:00
Frank Schroeder
9513a042be
local state: update documentation of updateSyncState
2017-10-23 10:56:04 +02:00
Frank Schroeder
2e3b72d2c3
local state: update comments
2017-10-23 10:56:04 +02:00
Frank Schroeder
da604495a0
local state: address review comments
...
* move non-blocking notification mechanism into ae.Trigger
* move Pause/Resume into separate type
2017-10-23 10:56:04 +02:00
Frank Schroeder
c39bc770b3
local state: refactor TestAgentAntiEntropy_EnableTagOverride
...
Make intent clearer by being more explicit and adding some comments.
Use verify.Values to compare service entries.
2017-10-23 10:56:04 +02:00
Frank Schroeder
e1358a541d
local state: fix TestAgentAntiEntropy_EnableTagOverride
...
The test had a race condition where it relied on the first service to be
synced to the remote catalog which sometimes failed.
2017-10-23 10:56:04 +02:00
Frank Schroeder
b3195006b1
local state: rename tests
2017-10-23 10:56:04 +02:00
Frank Schroeder
d9a4b440a8
local state: drop retry loops from tests
...
Since the tests are now using synchronous calls for state syncing
we no longer need to use retry loops to wait for the changes to
propagate.
2017-10-23 10:56:04 +02:00
Frank Schroeder
462de8b2cb
agent: skip non-sensical TestCatalogRegister
...
It is not clear what this test is supposed to verify.
2017-10-23 10:56:04 +02:00