Commit Graph

28 Commits

Author SHA1 Message Date
David Dashyan 9e99c024d3
Replace headers (#2683)
Signed-off-by: David Dashyan <mail@davie.li>
2020-04-06 11:52:18 +02:00
Mike Klimontov c801c833fc Add unit transaction_mode_types (#2648)
Signed-off-by: Mike Klimontov <klimontovm@gmail.com>
2019-06-12 16:28:24 +02:00
Troy McConaghy abdd23f5a6 Problem: Source files contain no license info (#2455)
* Problem: Source files contain no license info

Solution: Add comments with SPDX license info to source files

* Python 3 files don't need # -*- coding: utf-8 -*-
2018-08-16 12:31:32 +02:00
Lev Berman 89b28b8471 Remove unsupported backends (#2289)
* Problem: RethinkDB, change feed, old mongo, admin interface are not supported any longer.

Solution: Remove unsupported functionality. Bring the MongoDB backend implementation completely to the localmongodb package. Fix the test setup.

* Problem: Nothing depends on multipipes any longer.

Solution: Remove multipipes from setup.py.

* Problem: The how-to-run-tests doc uses --database-backend.

Solution: Do not include the --database-backend option into the documented pytest usage.

* Problem: The backends docs are outdated.

Solution: Document MongoDB as the default and only backend for BigchainDB.

* Problem: The inputs fixtures uses old blocks API.

Solution: Change the inputs fixtures to use the new blocks API.

* Problem: rethinkdb package is not used anymore.

Solution: Remove the rethinkdb dependency from setup.py.

* Problem: The abci-marked tests use outdated Mongo conn.

Solution: Replace MongoDBConnection with LocalMongoDBConnection for them.
2018-05-23 11:34:00 +02:00
vrde 2815cffcb5
Flat UTXO collection and first integration with Tendermint™ (#1822)
* Remove testing for rethinkdb, mongodb, and Py3.5

* Add first tests

* Add validation

* Add command to start the ABCI Server

* Reuse existing MongoDB Connection class

* Use DuplicateTransaction

* Test only tendermint

* Update travis scripts

* Fix pep8 errors

* Update Makefile
2017-11-10 17:53:57 +01:00
Krish f35f01f1cb Add SSL support for MongoDB connections (#1510)
* Add SSL support for MongoDB connections

* Tests for TLS connectivity and other fixes

* Add test for ssl parameters

* Add test for AuthenticationError

* Cleanup branch

* Split env vars as per @r-marques suggestion

* Remove SSL_ENABLED and use BIGCHAINDB_DATABASE_SSL instead

* Changes as per comments from @r-marques

* Remove redundant tests

* Test for ConfigurationError
2017-06-13 12:04:34 +02:00
Thomas Conte 58d80e9731 Fix ssl param default value 2017-03-27 10:59:58 +02:00
Thomas Conte 08f040d218 Authentication support 2017-03-17 09:09:06 +01:00
Thomas Conte 696dbe7844 SSL connection support 2017-03-14 14:23:30 +01:00
vrde 213139d4c6
Improve tests and connection class 2017-02-27 02:54:02 +01:00
vrde c11808ecc5
Move common stuff to generic Connection class 2017-02-23 17:20:21 +01:00
vrde 702d74a584
Merge branch 'master' into implement-connection-run-for-mongodb 2017-02-02 19:37:14 +01:00
vrde 16571b539f
Normalize exceptions 2017-02-02 19:26:52 +01:00
Rodolphe Marques 927e57beba Changed `backend.connect` to handle backend specific kwargs.
Fixed tests
2017-01-23 17:29:42 +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
ryan 243c739d2b config changes 2016-12-16 12:18:41 +01:00
Sylvain Bellemare 5d0c7fabf9 Add a bit of logging 2016-12-13 11:59:57 +01:00
Sylvain Bellemare d3d42747b7 Add mongodb backend 2016-12-13 11:59:57 +01:00
Sylvain Bellemare caeea09d33 Put std lib import at the top 2016-12-13 11:50:04 +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
Brett Sun 5f9c0f7b1b Fix docstring rst errors in the backend modules 2016-12-12 16:07:41 +01:00
Brett Sun 27eaae01a7 Fix base connection's run query interface 2016-12-12 15:53:56 +01:00
vrde 87c7228bc4 Add docstring, fix name 2016-12-12 15:47:43 +01:00
vrde 26c844ec22 Add defaults, fix import 2016-12-12 15:47:43 +01:00
vrde 2fd0aeca9f Add error handling 2016-12-12 15:47:43 +01:00
Brett Sun c9a3d01112 Move db/ files into backend/ 2016-12-12 15:47:43 +01:00
vrde 53fb9f3d5f Add connection Class 2016-12-12 15:47:43 +01:00
vrde 9615ac22ae Create new modules layout 2016-12-12 15:47:43 +01:00