12 Commits

Author SHA1 Message Date
Rodolphe Marques
6fd8c7a20b Feat/105/secondary indexes inputs outputs (#1125)
* Added inputs/outputs secondary indexes for rethinkdb

Added tests.

* Added inputs/outputs secondary indexes for mongodb

Fixed tests.

* fixed comment
2017-02-02 09:45:13 +01:00
Rodolphe Marques
e7ffcf5705 Added replicaset name to bigchaindb config (#1063)
* Added replicaset name to bigchaindb config

* changed travis replSet to match bigchaindb default

* Updated initialize_replica_set

It now initializes the replica set with the name provided by the
bigchaindb config file.


* initialize_replica_set is now called when creating a mongodb connection.

This way we are sure that a replica set exists when we return a
connection.

* Moved the initialize replica set logic to the connection.

* update the config documentation
2017-01-20 14:05:28 +01:00
Rodolphe Marques
e52cb40edb Some more tests for mongodb code (#1036)
* Some more tests for mongodb code

Cleanup connection code

* pep8 fixes
2017-01-13 10:25:45 +01:00
Sylvain Bellemare
1cfd3de60e Fix flake8 errors in tests 2017-01-11 05:13:27 -05:00
Rodolphe Marques
aa6d4fdcc8 small fix to test 2017-01-10 15:31:16 +01:00
Rodolphe Marques
7f05974f0f Added a secondary index with uniqueness constraint in backlog.
Several test fixes
2017-01-09 13:25:42 +01:00
Rodolphe Marques
9c0d696b7e Better unittests
Simplify code
2016-12-21 16:52:57 +01:00
Rodolphe Marques
5fedabe586 fix test 2016-12-21 15:55:29 +01:00
Rodolphe Marques
1dd6c748b9 Merge remote-tracking branch 'origin/master' into feat/980/initialise-replica-set-mongo 2016-12-21 15:54:02 +01:00
Rodolphe Marques
4a14c7c8f1 Initialize replica set for mongodb when running bigchaindb init 2016-12-21 15:53:25 +01:00
Sylvain Bellemare
a269375278 Use pytest custom marker "bdb"
note that the marker, although invoked for the entire module, will be
applied for each function
2016-12-20 20:37:28 +01:00
Rodolphe Marques
050990aac1 Created tests for mongodb schema
Removed some unused secondary indexes
2016-12-19 15:45:02 +01:00