Engel A. Sanchez
643d063b0a
Better rt/rtdev separation in backup/restore
...
Operations that assume a local node are moved to rtdev, and those that
do not stay in rt.
Also, using PB client instead of internal where possible.
2012-12-10 11:46:41 -05:00
Engel A. Sanchez
2baf7a0761
Add backup restore test
...
This is a port of systest-backup-and-restore from basho_expect with some
changes and additions. Biggest change was not using search-cmd to index
data for search, as it does not seem to update docs, just indexes. Then
added restore on a clean cluster. Basically it does this:
* Writes data, including a search enabled bucket
* Verifies written data, including searches
* Runs backup
* Deletes, modifies some data
* Verifies mods and deletes took
* Runs restore
* Verifies deleted data is back, mods stay (last write wins)
* Stops cluster and wipes out all data dirs
* Verifies clean cluster
* Runs restore
* Verifies data was restored, including searches
Also, adding some more noise to some riak test setup functions. This was
useful when initially debugging the test before it worked the first
time.
2012-12-10 09:02:06 -05:00
Jared Morrow
47368d30f4
Remove unneeded comment from python test
2012-12-04 10:52:55 -07:00
Jared Morrow
c16b361af7
Merge pull request #115 from basho/jem-python-dir-cleanup
...
Cleanup from previous python test runs
2012-12-04 09:49:34 -08:00
Jared Morrow
f55c9aad56
Don't check for scratch directory anymore
2012-12-04 10:48:21 -07:00
Jared Morrow
725b8871ce
Cleanup from previous python test runs
2012-12-04 09:54:35 -07:00
Joe DeVivo
6a62e77300
Merge pull request #114 from basho/jd-friendly-errors-for-non-console-viewing-a-joe-devivo-joint
...
Shifted error output into lager for great readability
2012-12-04 08:27:19 -08:00
Joe DeVivo
fce50f3993
stderr_to_stdout boyeeeee
2012-12-04 09:18:59 -07:00
engelsanchez
c8c5226aea
Merge pull request #112 from basho/eas-fix-riak-core-155-meck-refactor
...
Fix after meck refactoring
2012-12-04 08:16:09 -08:00
Joe DeVivo
1dfd8c2115
Shifted error output into lager for great readability
2012-12-04 09:07:36 -07:00
Sean Cribbs
403f91413d
Merge pull request #111 from basho/sdc-fix-repair
...
Fix partition_repair when run from the suite
2012-12-04 07:49:06 -08:00
Engel A. Sanchez
0d1fbec563
Minor style tweaks to meck refactor fix
...
From feedback on the original pull request.
2012-12-04 10:36:58 -05:00
Sean Cribbs
a2fce7eb2f
Death to imports!
2012-12-04 09:24:30 -06:00
Engel A. Sanchez
009fa92bf1
Fix after meck refactoring
...
Plus, fixing a timing issue when restarting node. Sometimes we issued
the gets while the old node was still going down.
2012-12-04 10:19:24 -05:00
Sean Cribbs
29d4b1d787
Fix 'undefined' bug in partition_repair when finding the data dir.
2012-12-04 09:18:19 -06:00
Sean Cribbs
11885dafde
Fix import warnings.
2012-12-04 09:15:37 -06:00
Jared Morrow
41b47dc5d7
Merge pull request #109 from basho/jem-riaknostic-test-fix
...
Fix riaknostic test for Riak that includes riaknostic
2012-12-03 14:48:46 -08:00
Jared Morrow
1acaed71db
Fix typo found in review
2012-12-03 15:31:57 -07:00
Jordan West
2de1d4984f
Merge pull request #103 from basho/rt39-verify-busy-dist
...
Port regression_az1018.py
2012-12-03 13:49:17 -08:00
Jared Morrow
9c9749fb9a
Fix riaknostic test for Riak that includes riaknostic
...
In Riak 1.3.0 riaknostic was included by default. These
tests assumed riaknostic was *not* installed and would
fail on 1.3+ nodes. This change fixes that and refactors
the test to be a little more readable.
2012-12-03 14:13:55 -07:00
Jordan West
5823714b57
Merge branch 'rt39-verify-bdp-improved' into rt39-verify-busy-dist
2012-12-03 11:34:11 -08:00
Joe DeVivo
81d8ddbea9
Merge pull request #106 from basho/jd-gh-core-155-tweaks
...
wait_for_owners_according_to
2012-12-03 08:04:50 -08:00
Joe DeVivo
d06b760cb3
wait_for_owners_according_to
2012-12-03 07:46:03 -07:00
Jordan West
b11db0d74e
verify_busy_dist_port: remove use of grep via os:cmd, timer:sleep
...
* install a riak_sysmon custom handler and monitor for the busy_dist_port event on the riak node. when the handler detects the event it notifies the test process
* install riak_test_lager_backend on the riak node to capture log messages in memory. When the test process is notified that the busy dist port event fired on the riak node it retrieves the logs from the backend using the added get_logs/0 function and then checks for the busy_dist_port message
* there is a subtle race I *think*, that should rarely come up in practice, between lager and the riak_sysmon event handlers with this method of implementing the test that may require use of some form of retry/max retry still
2012-11-30 17:08:29 -08:00
Joe DeVivo
ca8b53576e
Merge pull request #104 from basho/jd-stop-hammer-time
...
a few timing tweaks
2012-11-29 13:38:58 -08:00
Jordan West
cb2b49df92
riak_test takes care of this for us
2012-11-29 13:17:02 -08:00
Jordan West
1de1245774
apparently i like whitespace :(
2012-11-29 13:00:34 -08:00
Jordan West
34d2d53290
add text from original agile zen ticket to test
2012-11-29 12:59:36 -08:00
Joe DeVivo
eb3ef53302
added rpc:stops to rt:teardown/0 and wait_for_kv to some rt:kv releated functions
2012-11-29 13:07:39 -07:00
Jordan West
2c3ca7327f
if we are going to sleep, at least do it (maybe) better
...
* check the grep logs a max number of times, sleep for some interval in-between each execution of grep
* actually delete the log file
* handle file d.n.e. when using grep (hackily)
2012-11-29 11:46:32 -08:00
Jordan West
e32f29a0d6
initial port of be-regression-az1018
2012-11-29 10:59:27 -08:00
Joe DeVivo
07084cf7af
Merge pull request #102 from basho/jd-stop-hammer-time
...
rt:stop/1 now uses straight rpc.
2012-11-29 10:18:12 -08:00
Joe DeVivo
d32b29d161
rt:stop/1 now uses straight rpc.
2012-11-29 11:07:34 -07:00
Joe DeVivo
422db33e8a
Merge pull request #101 from basho/jd-owners_according_to
...
added rt:assert_nodes_agree_about_ownership/1, and there was much rejoicing
2012-11-29 09:44:26 -08:00
Sean Cribbs
e4fa8ccc20
Add additional wait_for_service calls after restarting nodes.
2012-11-29 10:26:10 -05:00
Joe DeVivo
73dd9bf081
added rt:assert_nodes_agree_about_ownership/1, and there was much rejoicing
2012-11-29 07:12:44 -07:00
Joe DeVivo
56118e2e0e
Merge pull request #44 from basho/jd-cluster-membership
...
port be-systest-cluster-membership
2012-11-28 14:58:38 -08:00
Joe DeVivo
41a7a72e1a
Added wait_for_service to verify_build_cluster
2012-11-28 15:40:52 -07:00
Joe DeVivo
e5d5ab42f7
added data to the verify_build_cluster test
2012-11-28 14:55:23 -07:00
Joe DeVivo
a1183dcc78
Enhanced verify_build_cluster test.
...
Added verification of ring at every cluster change.
Added cluster steps to mirror the old cluster_membership b_e test.
2012-11-28 14:55:23 -07:00
Sean Cribbs
8b3ba70113
Merge pull request #100 from basho/sdc-pending-transfers
...
Increase stability / reliability of building a cluster
2012-11-28 13:54:17 -08:00
Sean Cribbs
1f54c37814
Reconfigure wait_until_no_pending_changes/1 and add wait_until_transfers_complete/1.
2012-11-28 16:31:22 -05:00
Sean Cribbs
6eb1012965
Merge pull request #36 from basho/sdc-prepost-hooks
...
port be-systest-prepost-hooks
2012-11-27 10:45:01 -08:00
Sean Cribbs
c45472736a
Make the postcommit hook send an Erlang message to the test process and check that it receives it.
2012-11-27 13:26:35 -05:00
Sean Cribbs
e9fe10bbd5
Merge pull request #41 from basho/sdc-python-client-tests
...
port be-systest-python-unit-tests
2012-11-27 09:59:40 -08:00
Sean Cribbs
4a4a667824
Add more verbose lager messages to the prereq.
2012-11-27 12:50:13 -05:00
Sean Cribbs
13ee1bb0e9
Use virtualenv to prevent installation of packages in protected dirs.
2012-11-27 11:23:26 -05:00
Sean Cribbs
6a39537e06
Add license header to hooks.erl.
2012-11-26 15:34:05 -05:00
Sean Cribbs
44301e8516
Port be-systest-prepost-hooks.
2012-11-26 15:32:36 -05:00
engelsanchez
1ce5baaec5
Merge pull request #96 from basho/fix-wait-for-service-only-for-node
...
Fix wait for service and use in listkeys
2012-11-26 07:22:51 -08:00