2072 Commits

Author SHA1 Message Date
Rodolphe Marques
d246a1498f Added some tests for changefeed generics
pepify import
googlify docstring
2016-12-13 12:46:52 +01:00
Rodolphe Marques
8c46e40761 fixed documentation 2016-12-13 11:40:20 +01:00
Rodolphe Marques
007b574eb8 fixed missing import 2016-12-13 11:27:29 +01:00
Rodolphe Marques
e303e355db Delete outdated pipelines/utils.py
Reorganized and fixed tests.
2016-12-13 11:17:24 +01:00
Rodolphe Marques
134f9e85a0 Updated vote pipeline to use the changefeed abstraction
Fixed tests.
2016-12-13 11:16:37 +01:00
Rodolphe Marques
f09285d32f Fixed some code typos
Changed election pipeline to use the new changefeed abstraction
2016-12-13 11:16:29 +01:00
Rodolphe Marques
8266dfadb0 Fixed typos
Fixed failing test
2016-12-13 11:15:49 +01:00
Rodolphe Marques
dbf53c80e7 Removed rethinkdb dependencies in pipelines.block 2016-12-13 11:15:26 +01:00
Rodolphe Marques
341f43267a Initial implementation of the changefeed abstraction 2016-12-13 11:14:25 +01:00
Sylvain Bellemare
9f57d57f24 Test rethinkdb and mongodb in separate travis jobs 2016-12-13 10:25:47 +01:00
Sylvain Bellemare
b6293702ce Add todo note about not installing db drivers 2016-12-13 10:22:52 +01:00
Sylvain Bellemare
2486fb3d39 Add pymongo in install requirements 2016-12-13 10:22:52 +01:00
Sylvain Bellemare
2f4ee4d8b9 Set default of database-backend to env var if set 2016-12-13 10:22:39 +01:00
Sylvain Bellemare
b2c6474d35 Parametrize backend config 2016-12-13 10:22:39 +01:00
Troy McConaghy
4493c17476 Merge pull request #930 from bigchaindb/fix-links-in-docs
Fixed broken & redirecting links in the docs
2016-12-12 18:41:47 +01:00
Brett Sun
d7d223801d Add configuration documentation for new database.backend setting (#934) 2016-12-12 18:31:34 +01:00
Sylvain Bellemare
8a68e24e69 Abstract db layer cherrypick docs (#932)
* Add README.md to tests/ to describe test structure and pytest customizations

* Add package-level docstrings to backends

* Add README.md explaining the backend architecture

* Small improvements to docstrings in backend modules

* Restructure the backend automodule docs

* Add more docstrings to backend connections

* Add init to base backend Connection class to document expected interface

* Reword the backend/README.md docs
2016-12-12 18:28:43 +01:00
Sylvain Bellemare
4c3d5f0e2b Merge pull request #788 from bigchaindb/abstract-db-layer
Abstract database interface
2016-12-12 17:45:19 +01:00
Sylvain Bellemare
24a701096d Filter out block id 2016-12-12 17:38:41 +01:00
Sylvain Bellemare
ff583c5546 Test generic backend functions 2016-12-12 17:38:28 +01:00
Brett Sun
5f9c0f7b1b Fix docstring rst errors in the backend modules 2016-12-12 16:07:41 +01:00
Scott Sadler
448ee87944 flatten transaction - code changes 2016-12-12 16:07:41 +01:00
Scott Sadler
32c8b65f08 Remove metadata uuid 2016-12-12 16:07:41 +01:00
Brett Sun
345fc27a39 Remove durability from all database-related calls 2016-12-12 16:07:41 +01:00
Sylvain Bellemare
b9cfc5d9a2 Sync up with master 2016-12-12 15:53:56 +01:00
Sylvain Bellemare
49fca5cf3f Fix tests 2016-12-12 15:53:56 +01:00
vrde
2a820b46f3 Add connection Class 2016-12-12 15:53:56 +01:00
vrde
95b353459d Add pytest option to switch backend in tests 2016-12-12 15:53:56 +01:00
vrde
0a14f97a18 Add option to switch backend 2016-12-12 15:53:56 +01:00
vrde
6814b06c7b Add db connection info to logging 2016-12-12 15:53:56 +01:00
vrde
a634aea5a7 Add logging statement 2016-12-12 15:53:56 +01:00
vrde
3c3c1ce880 Improve tests for class initialization 2016-12-12 15:53:56 +01:00
Brett Sun
d6703e10f3 Remove unnecessary 'backend' setting from test's configuration as it's provided now by a pytest option 2016-12-12 15:53:56 +01:00
Brett Sun
b51a59e503 Use as the argument name for for clarity 2016-12-12 15:53:56 +01:00
Brett Sun
ad65e86131 Rename to in schema function arguments to for consistency 2016-12-12 15:53:56 +01:00
Brett Sun
3555b7ef94 Add argument to allow an existing connection to be reused when initializing the database 2016-12-12 15:53:56 +01:00
Brett Sun
af243907dd Fix wrong argument order for python 3.4 2016-12-12 15:53:56 +01:00
Brett Sun
ae52e015ce Fix changefeed tests that were mocking the wrong thing 2016-12-12 15:53:56 +01:00
Brett Sun
27eaae01a7 Fix base connection's run query interface 2016-12-12 15:53:56 +01:00
Brett Sun
8ffdd6a2ce Fix rethinkdb schema index test 2016-12-12 15:53:56 +01:00
Brett Sun
9a7e695e18 Fix tests still relying on being able to access removed attribute of the Bigchain class 2016-12-12 15:48:48 +01:00
Brett Sun
ccd8e74868 Fix initialization-related tests for rethinkdb schema 2016-12-12 15:48:48 +01:00
Brett Sun
32b6c50d63 Fix usage of backend functions that weren't getting a connection passed in 2016-12-12 15:48:48 +01:00
Brett Sun
8caeed54bf Fix backend module dispatch error tests broken from renaming 2016-12-12 15:48:48 +01:00
Brett Sun
2657226573 Fix Bigchain class tests due to changes to internal attributes 2016-12-12 15:48:48 +01:00
Brett Sun
597cd778e9 Fix interactive drop database commands 2016-12-12 15:48:48 +01:00
Brett Sun
dc31f7f607 Fix small module issues related to rethinkdb schema tests 2016-12-12 15:48:48 +01:00
Brett Sun
108b5cba30 Fix tests broken by adding a 'backend' key to the config 2016-12-12 15:48:48 +01:00
Brett Sun
da71b3d84b Fix backend module dispatch decorator tests broken from renaming 2016-12-12 15:48:48 +01:00
Brett Sun
941b47d1ac Fix misc tests affected by changes related to database abstraction 2016-12-12 15:48:48 +01:00