Commit Graph

7 Commits

Author SHA1 Message Date
Christopher Meiklejohn
b41f2b440a Ensure we wait long enough for Riak Control to start.
Wait until both the Riak Control gen_server has been registered, and the
webmachine routes have been added to the dispatcher to ensure that Riak
Control is able to service requests to prevent races between the test,
and application initialization.
2013-10-21 19:21:53 -04:00
Christopher Meiklejohn
6bf3479877 Deprecate legacy 1.2-style control. 2013-09-30 18:57:06 -04:00
Christopher Meiklejohn
fc966e16b3 Merge pull request #365 from basho/csm-resolve-races
Ensure riak_control starts.
2013-08-28 14:32:39 -07:00
Christopher Meiklejohn
be0ec088de Ensure riak_control starts.
Since we can't use riak_core node watcher service, we need to block
until the gen_server initializes, is available, and routes have been
added to the webmachine dispatcher.
2013-08-26 19:52:10 -07:00
Christopher Meiklejohn
65e7943e14 Handle updated partitions resource with n_val information. 2013-08-26 12:54:44 -07:00
Christopher Meiklejohn
3a13cb7068 Update test to be in parity with latest Riak Control.
We no longer need to test for the incompatible status in vnodes, because
the ring page no longer requires that information and can derive all
state from the ring, not rpc.
2013-08-15 10:06:17 -07:00
Christopher Meiklejohn
3751d73c60 Add Riak Control test.
This test produces *failing* cases for Riak Control against to cut 1.4.1
release, but passes when run against a tentative master-based 1.4.2
build.

This test currently covers:

* Rolling upgrade of all nodes, while every node runs control.
* Verifies nodes do not fail during the rolling upgrade.
* Verifies two releases back.
* Verifies that 1.3+ resources return properly and deserialize.
* Verifies that 1.2+ resources return properly and deserialize.
* Intermediate and final state verification of the response JSON from
  Riak Control.
* Verify convergence of capability.

This test does not cover:

* Riak 1.2 node ping, stats, and fallback resources, which are not used
  by the user interface.
* Parsing the Riak 1.2 response to ensure values return the correct
  state.
2013-08-08 15:20:31 -07:00