Commit Graph

14 Commits

Author SHA1 Message Date
Kelly McLaughlin
cf55f195a5 Add option to return exit code from rt:admin calls
Add an rt:admin/3 function that accepts a list of options as the third
parameter.  Currently the only valid option is return_exit_code. The
rtdev, rtssh, and rt_cs_dev harnesses have been updated to support
this option. If return_to_exit is specified the return from a
?HARNESS:admin call is a pair with the exit code as the first member
and the command output as the second member. Finally the
basic_command_line test has been changed to use return_for_exit to
verify the changes.
2014-10-10 15:37:54 -06:00
Jared Morrow
ede36f5cc4 Remove riak attach test due to remsh issues with ports 2013-04-16 08:40:13 -06:00
Jared Morrow
ead021728e Add functionality for remsh riak attach in Riak 1.4
Adds attach_direct function to correspond to `riak attach-direct`
as well as change the basic_command_line test to test both
`riak attach` and `riak attach-direct`.

Corresponds to functionality added in basho/riak#254
2013-04-11 11:17:42 -06:00
Engel A. Sanchez
0e8ecce7d5 Add riak_test behavior 2012-12-14 10:50:49 -05:00
Jared Morrow
d379b2258e Add riak getpid test to basic_command_line
This test functionality added to address PID issues found
on FreeBSD using riak_test.

The issue was addressed in basho/riak#251
2012-12-05 10:40:41 -07:00
Joe DeVivo
d32b29d161 rt:stop/1 now uses straight rpc. 2012-11-29 11:07:34 -07:00
Joe DeVivo
a68d9e2e47 Removed comment from basic_command_line questioning the validity of the
test. It's super valid!
2012-11-16 08:02:38 -07:00
Sean Cribbs
538c559ac7 Refactor basic_command_line test.
* Try to do as much as possible while the node is up/down, without
  changing its state. Rapidly starting and stopping the node has
  strange effects.
* We should consider removing the restart functionality from the
  `riak` script, as it leaves things in undetermined states.
2012-11-15 20:03:55 -05:00
Jared Morrow
4b07292c69 Fix basic_command_line test to allow for different pipe paths
The `basic_command_line` test would start the `riak attach` test
by searching for the string `erlang.pipe.1` on the first line.
In some cases you will use `erlang.pipe.X` where X is an increasing
integer.  This change simply removes that requirement from the
top of the test and checks for the proceeding string instead.
2012-10-18 07:28:31 -06:00
Joe DeVivo
5ee99bbbab Added source headers 2012-10-10 15:14:06 -07:00
Jared Morrow
d44b4f2ce9 Add a more interesting test to riak console 2012-10-02 12:41:46 -06:00
Jared Morrow
461a3df115 Adjust command-line test to be more test-y of riak attach 2012-10-02 12:00:38 -06:00
Joe DeVivo
8b12621c70 Added attach and console testing via ports (rough draft) 2012-09-26 16:37:11 -07:00
Jared Morrow
88f643cc95 Add basic command line tool testing
Attempt to replicate the b_e command line test
https://github.com/basho/basho_expect/blob/master/basho_expect/systest_riak_command_line.py
2012-09-25 12:59:26 -06:00