Ryan Uber
2773926285
testutil: add a readme with sample usage
2015-04-22 20:46:59 -07:00
Ryan Uber
4f2f9534c4
testutil: error instead of panic
2015-04-22 20:35:27 -07:00
Ryan Uber
6851b36e88
Change node name based on idx
2015-03-30 23:45:44 -07:00
Ryan Uber
5b08cd712e
testutil: add ListKV method
2015-03-23 22:47:34 -07:00
Ryan Uber
bfa432064c
testutil: disable checkpoint, fix waitForLeader
2015-03-23 19:27:59 -07:00
Ryan Uber
b73382341e
testutil: bind to localhost address
2015-03-23 18:59:45 -07:00
Ryan Uber
a7c7350505
testutil: helpers return responses
2015-03-21 06:45:26 -07:00
Ryan Uber
3282c9f7fa
testutil: test server supports domain sockets
2015-03-19 17:44:04 -07:00
Ryan Uber
fb08a230ae
testutil: support retrieving kv pairs
2015-03-19 17:03:07 -07:00
Ryan Uber
3ce57f8da6
testutil: support joining and specifying datacenters
2015-03-19 17:03:07 -07:00
Ryan Uber
73a2799b0d
testutil: Use HTTPAddr
2015-03-19 17:03:07 -07:00
Ryan Uber
41efd8861a
testutil: server comments
2015-03-19 17:03:07 -07:00
Ryan Uber
4fac64331f
testutil: Support creating additional checks
2015-03-19 17:03:07 -07:00
Ryan Uber
2c95e425b4
testutil: allow creation of services
2015-03-19 17:03:06 -07:00
Ryan Uber
cda925b742
testutil: working on helpers
2015-03-19 17:03:06 -07:00
Ryan Uber
64c1b1b446
testutil: exposing the API address from the test server
2015-03-19 17:03:06 -07:00
Ryan Uber
0af4bd8b23
testutil: initial pass at moving test server harness into testutil
2015-03-19 17:03:06 -07:00
Armon Dadgar
8b7417a043
testutil: Using the correct RPC struct
2014-06-10 19:12:36 -07:00
Nelson Elhage
87231e5234
WaitForLeader: Also wait for a non-zero index.
...
On my laptop, I'm currently seeing a huge number of intermittent test
failures all related to WaitForLeader returning after the test node has
become a leader, but before it has actually finished starting up, in
particular, performing the serf/Raft reconciliation.
Waiting for the index to become nonzero makes the tests pass reliably,
by also blocking until the new leader has started committing state.
2014-05-26 13:26:42 -07:00
Armon Dadgar
9470f9a5a2
gofmt
2014-05-20 16:25:29 -07:00
William Tisäter
f7a33c2731
Speed up test runs in `WaitForResult`
2014-05-09 03:00:43 +02:00
William Tisäter
e1471576a4
Increase timeout for `WaitForResult`
2014-05-09 02:43:48 +02:00
William Tisäter
1ee709ba38
Require datacenter argument for `WaitForLeader`
2014-05-09 01:17:35 +02:00
William Tisäter
20eb682ef6
Add test file for testutil
2014-05-07 23:42:15 +02:00
William Tisäter
bdbe97545a
Drop client arguments from `WaitForLeader`
2014-05-07 23:41:14 +02:00
William Tisäter
2019f454d0
Fix `TestCatalogListNodes_StaleRaad` with `WaitForLeader`
2014-05-07 13:53:29 +02:00
William Tisäter
82ec4e5fba
Add `testutils.WaitForLeader` and truly wait
2014-05-07 11:43:42 +02:00
William Tisäter
81b572cb31
Proof of concept using `WaitForResult` in tests
2014-05-07 02:48:25 +02:00