summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update tests for Python 3 compatibilityWouter Bolsterlee2016-07-271-125/+123
|
* Rewrite str_increment() as bytes_increment()Wouter Bolsterlee2016-07-271-13/+15
| | | | ...and make it work on both Python 3 and 2.
* Port to thriftpyWouter Bolsterlee2016-03-271-3/+3
|
* No longer confuse batching/caching; add Table.scan(scan_batching=...)Wouter Bolsterlee2014-02-251-0/+7
| | | | | For details, see the comments added in this commit, and issues #54 and issue #56.
* Revert "Allow batch_size=None in Table.scan() to avoid filter incompatibilities"Wouter Bolsterlee2014-02-251-8/+1
| | | | | This reverts commit 8481d317804e060b12839b571ef22306074fba9c, since it is not a correct fix. See issue #56.
* Allow batch_size=None in Table.scan() to avoid filter incompatibilitiesWouter Bolsterlee2014-01-251-1/+8
| | | | | | | | Allow None as a valid value for the batch_size argument to Table.scan(), since HBase does not support specifying a batch size when some scanner filters are used. Fixes issue #54.
* Add support for retrieving sorted columns in HBase >= 0.96Wouter Bolsterlee2013-11-081-0/+19
| | | | | This is possible with the HBase 0.96 Thrift API. This feature uses a new 'sorted_columns' argument to Table.scan(). Fixes issue #39.
* Default to 0.96 compatibility mode in testsWouter Bolsterlee2013-11-081-1/+1
|
* Compatibility fixes for HBase 0.96Wouter Bolsterlee2013-11-081-1/+0
| | | | | | | | HBase 0.96.0 is more strict wrt column family names without a column qualifier. In previous versions a trailing ':' character after a column family name (e.g. 'cf1:') did not make any difference compared to the version without it (e.g. 'cf1'), but from 0.96.0 this is no longer the case...
* Reduce test loop and add more random failures to simulate the functionality.Roger Hu2013-06-071-3/+4
|
* Delete test table from previous test run before running testsWouter Bolsterlee2013-06-071-0/+10
|\
| * Try to remove the table if it exists before starting tests.Roger Hu2013-06-041-0/+9
|/ | | | Aborting the tests half-way causes issues since teardown_module() is not called.
* Rewrite connection pool exception handlingWouter Bolsterlee2013-06-041-4/+15
| | | | | | | | | | | | The connection pool now uses a much simpler try/except/finally block in the context manager function to detect network/Thrift errors. The pool will now only refreshes connections when Thrift or socket errors occur, and will not react to unrelated application errors anymore. With this approach, the _ClientProxy hack is not needed anymore, so it has been completely eliminated. See issue #25.
* Set debug log level when running tests as __main__Wouter Bolsterlee2013-06-041-0/+3
|
* Also allow 'long' type for 'timestamp' argsWouter Bolsterlee2013-05-221-0/+1
| | | | Fixes issue #23.
* Add tests for the connection poolWouter Bolsterlee2013-05-201-15/+104
|
* More cosmetic changesWouter Bolsterlee2013-01-291-14/+19
|
* Cosmetic changesWouter Bolsterlee2013-01-291-2/+2
|
* Add 'timeout' parameter to Connection constructorWouter Bolsterlee2013-01-291-0/+6
| | | | Fixes issue #15.
* Add 'disable' parameter to Connection.delete_table()Wouter Bolsterlee2012-09-121-2/+1
|
* Add unit test for manually closed scannersWouter Bolsterlee2012-09-121-0/+7
| | | | | | The unit tests for Table.scan() now test manually closing a scanner using the generator function's .close() method. See issue #8 for more information about this.
* Support HAPPYBASE_TRANSPORT env var for the testsWouter Bolsterlee2012-07-121-1/+3
|
* Add table_prefix_separator argument to Connection()Wouter Bolsterlee2012-06-041-1/+7
| | | | Also cleanup error handling in the constructor. Closes issue #3.
* Hit all scanner code paths for 0.90 compatibility testsWouter Bolsterlee2012-05-241-0/+7
|
* Use HAPPYBASE_COMPAT env var to run compatibility testsWouter Bolsterlee2012-05-241-7/+9
| | | | ...by lack of better way to do it.
* Implement partial scanner API for HBase 0.90 compat modeWouter Bolsterlee2012-05-241-1/+9
|
* Initial steps for HBase/Thrift compatibility modesWouter Bolsterlee2012-05-231-0/+4
|
* Avoid limited scannerOpenWithPrefix() Thrift APIWouter Bolsterlee2012-05-231-6/+0
| | | | | | | Avoid the scannerOpenWithPrefix() Thrift function by implementing the prefix matching logic on the client side, and using scannerOpenWithScan afterwards. The result is that prefix scans now support both 'timestamp' and 'filter' parameters, whereas that raised NotImplementedError before.
* Implement a str_increment() utility functionWouter Bolsterlee2012-05-231-6/+31
|
* Add unit tests (requires nose)Wouter Bolsterlee2012-05-203-0/+427