Commit Graph

1136 Commits

Author SHA1 Message Date
Brett Hazen
41d0be08ac While we re removing code:which/1; also do it for http_security 2015-03-11 21:29:55 -06:00
Brett Hazen
19a8c67c3c Use code:get_object_code/1 instead of code:which/1 in pb_security 2015-03-11 18:13:40 -06:00
Ted Burghart
452747413f Add test that always passes.
When included in an automatically generated list of tests that may only contain one test, ensures riak_test will continue if that test fails.
2015-03-07 07:57:10 -05:00
Zeeshan Lakhani
510431be8f Merge pull request #738 from basho/newtest/zl/yz_handoff
YZ Handoff Riak Test [JIRA: RIAK-1546]
2015-03-04 15:19:32 -05:00
Cuyler Jones
c05aed83f2 Merge pull request #740 from basho/refactor/replication2
Refactor/replication2
2015-03-04 10:37:48 -08:00
Zeeshan Lakhani
d36ec68fa7 handoff test for lost documents using riak_admin to make sure issue uses same env as previously seen issue 2015-03-04 05:42:47 -05:00
Cuyler Jones
ab61070927 Fixed parenthetical spacing and a few other text spacing issues 2015-02-28 21:34:38 -07:00
Cuyler Jones
82d9d57a24 Fixed spacing to adhere to Basho guidelines. 2015-02-28 21:24:59 -07:00
Cuyler Jones
c6d27d5a99 Replaced start up process with build_clusters; Removed some lingering refactoring cruft. 2015-02-25 10:23:33 -08:00
Doug Rohrer
9f116ab088 Merge pull request #737 from basho/feature/support_wildcard_certs_in_tests
Better support for wildcard certificates
- riak_core#701 is now merged, so merging tests.
2015-02-25 11:54:27 -05:00
Cuyler Jones
ef0581cefb Code clean up and small node logging additions 2015-02-24 14:48:58 -08:00
Cuyler Jones
57fde811ef Refactored Replication 2 into compartmentalized tests with documentation. Removed superfluous code. 2015-02-24 14:41:38 -08:00
Doug Rohrer
137a11c690 Address review comments & add more tests
- Change Path -> DirName in make_certs
- Added both more basic and more advanced tests with wildcard certs
2015-02-12 08:40:18 -05:00
Andrew J. Stone
42e7788f9d Merge pull request #734 from basho/bugfix/demystify-overload
Refactor tests/overload to use less magical-number comparisons
2015-02-11 17:57:44 -05:00
Andrew J. Stone
44d18d1a87 Remove magic number for overload test 2015-02-11 17:54:12 -05:00
Doug Rohrer
965522c705 Better support for wildcard certificates:
- Update make_certs to support wildcard certificates by passing an additional Path parameter.
- add replication2_ssl test to ensure using wildcard certificates works after PR to riak_core_ssl_util.
2015-02-11 16:27:39 -05:00
Doug Rohrer
04d54cb810 Change verify_dt_converge to use riakc_flag:enable(F) rather than disable. This will work
even in the rare and pathological case where the cluster is partitioned before all 3 nodes
have received the update. riakc_flag:disable(F) requires context, which isn’t there in the 
new map that would be created on the side of the partition with no data.
2015-02-11 10:47:35 -05:00
Alex Berghage
a9bef3c0a7 Rolled back change to test_vnode_protection threshold.
This test's a little confused in the sources as-is since it prints
like it's based on the number of requests, even though the actual
comparison is done against a function of THRESHOLD. I've reverted
to the comparison used currently, since it looks to me like this
test should really expect to have ~NUM_REQUESTS processes, and a
vnode queue pretty close to THRESHOLD. I'd appreciate review here
though, particularly if anyone recalls the original intent of
these comparison numbers.
2015-02-10 21:15:23 -05:00
Alex Berghage
ec562e9461 Fixed predicate print formatter (was ~w, now ~p) 2015-02-10 21:11:32 -05:00
Alex Berghage
a7258f4ed7 Loosened criteria for successful overload test.
Previously we'd used a sort of fuzzy 'metric' where we expect the
number of successful requests/fsms to be less than some fudge
factor over the overload threshold. This tends to kick up spurious
failures on the test board without offering much more in the way
of assurances about overload's functionality.

This change instead bases test success on the number of requests
only, not the threshold — if some amount of work was shed at all
we consider that a passing test.

In the future we should revisit this and change the request
accounting machinery to just explicitly track denials instead of
fsm processes / vnode queue depth.
2015-02-10 20:49:16 -05:00
Alex Berghage
e0921b1bf1 Reduced repetition in tests/overload predicates 2015-02-10 20:44:09 -05:00
Christopher Meiklejohn
2179361bb3 Resolve incorrect guard. 2015-02-09 16:56:30 -05:00
Ulf Wiger
36f80415e1 add vnode_get_fsm_time_* stats 2015-02-09 22:49:04 +01:00
Russell Brown
9efa9602d0 Merge pull request #728 from basho/kv667
Test for basho/riak#667, read pre 2.0.4 sets/maps
2015-01-29 14:27:50 +00:00
Russell Brown
bc8a3b240b Change env var name 2015-01-27 18:00:48 +00:00
Russell Brown
d22fbfbdc7 Persuade rtdev harness to set advanced.config variables
In the case that no advanced.config file exists (everycase!) rt
would not add any advanced config settings to the conf.

This PR teaches rtdev to create an advanced.comfig file if none exists
so that tests may set advanced config.

In this case we set ring_size and also the `crdt_mixed_versions` app env
2015-01-27 09:53:15 +00:00
Sean Cribbs
fd086aa5bc Finished up format test.
This is currently failing, somehow fetching the map immediately after
updates on the upgrade, I'm getting the dict format.
2015-01-26 15:34:11 -06:00
Sean Cribbs
dea8a89160 Fetch maps after upgrade, checking that they match. 2015-01-24 11:49:18 -06:00
Sean Cribbs
af9fe7a63e WIP extending mixed-cluster test.
Still have not completed upgrade and feature-flag switch.

I changed the versions from atoms to "2.0.2" and "2.0.4", we can
bikeshed that with build/test czars on Monday.

Added some useful logging statements to the plain-upgrade test.

Removed unnecessary clean_cluster and systest_read calls.
2015-01-23 18:02:13 -06:00
Sean Cribbs
86202d010e Little tweak to use literal versions and binaries for keys. 2015-01-23 16:04:48 -06:00
Sean Cribbs
ca040bdaee Begin split of test into two parts, safe upgrade and mixed cluster 2015-01-23 14:09:48 -06:00
Russell Brown
7b4ffcbc18 Extend kv667 test for upgrade between 2.0.2/4/5
This test is getting Biig, and there is still a lot to add
(see comments at the end of the test.)

Maybe we should break it out into a few tests, and there are some
questions still.
2015-01-23 18:02:32 +00:00
Russell Brown
49183d92b9 Update Chris's test to test nested sets and maps too 2015-01-21 16:27:44 +00:00
Christopher Meiklejohn
569a76d490 Add riak_kv#667 reproducer. 2015-01-20 18:09:20 +01:00
Russell Brown
c1b12f5069 Merge pull request #719 from basho/rdb/gh-kv679
Riak Tests for scenarios of basho/riak_kv#679
2015-01-16 13:35:00 +00:00
Russell Brown
ccb5af778b remove test for unfixed case 2015-01-15 17:19:41 +00:00
Russell Brown
3657c57bac Address review comments
Remove those timers and other remnants of flailing when first
trying to write tests.
2015-01-15 16:09:02 +00:00
John Burwell
a37832d7f9 Verify the list of HTTP stats keys is complete
* Checks the list of stats keys returned from the HTTP endpoint
    is complete -- delineating between riak and riak_ee.  The test will
    fail if the list returned from the HTTP endpoint does not exactly match
    the expected list.  This behavior acts as a forcing function to ensure
    that the expected list is properly maintained as stats are added and
    removed.
    * Modifies reset-current-env to properly clean dependencies when a
    full clean is requested and remove the current directory in the
    target test instance.
    * Adds logging to verify_riak_stats to explain the addition steps
    being performed
    * Adds rt:product/1 to determine whether a node is running riak,
    riak_ee, or riak_cs
    * Adds tools.mk support and eunit scaffolding to rebar.config
    * Modifies reset-current-env.sh to remove the current directory in
    the target test instance
2015-01-08 17:23:25 -05:00
John Burwell
f98b3aed87 Merge pull request #713 from uwiger/uw-cmp-http-and-console-stats
Verify that the stats in riak-admin status match those from the HTTP endpoint
2015-01-06 15:02:01 -05:00
Andrew J. Stone
a28f70eb1a Merge pull request #720 from basho/bugfix/ensemble_sync_partition_error
Fix partition issue in ensemble_sync
2015-01-05 16:30:08 -05:00
Andrew J. Stone
70da1fd2f9 separate some folds out of partition/2 in ensemble_sync for clarity 2015-01-05 15:42:26 -05:00
Russell Brown
d86d122308 WIP 2015-01-02 09:02:13 +00:00
Russell Brown
a1af1140f0 WIP data loss test was failing for the wrong reason
add some debugging log out
2015-01-02 09:02:13 +00:00
Russell Brown
8cbec21a5d WIP Kv679 tests
Dataloss at coordinator
Dataloss at coordinator with an old clock repaired
Vnode id's not unique
2015-01-02 09:02:13 +00:00
Russell Brown
87afd498e6 WIP 2015-01-02 09:02:13 +00:00
Russell Brown
6097bda909 WIP kv679 tombstone test A-B-C, crash before reap 2015-01-02 09:02:13 +00:00
Russell Brown
a29d3c3494 WIP kv679 doomstone tests 2015-01-02 09:02:13 +00:00
Russell Brown
4f7e9e17af WIP make the test fail 2015-01-02 09:02:13 +00:00
Russell Brown
40882ea81d WIP remove voodoo code, add inactivity timeout 2015-01-02 09:02:13 +00:00
Russell Brown
aece28adc9 WIP kv679 tombstone-doomstone-boomstone test 2015-01-02 09:02:12 +00:00