4266 Commits

Author SHA1 Message Date
z-bowen
2ade51056e Problem: upsert-validator approve has no error handling for an unauthorized signing key
Solution: Raise an exception if the signature doesn't match one of the authorized keys
2018-08-23 14:18:13 +02:00
z-bowen
8c0bf8caa0 Problem: run_upsert_validator_approve casts votes for *all* voters, not just the user calling the command
Solution: Filter vote txs by the users public key
2018-08-23 14:06:56 +02:00
z-bowen
7b1c55fc50 Problem: run_upsert_validator_approve was getting the voting power in a convoluted way
Solution: Changed it to get the voting power from the election outputs
2018-08-23 13:50:31 +02:00
z-bowen
356e52a1c7 Problem: Fixture private_validator_keys no longer used anywhere
Solution: Deleted it
2018-08-23 12:05:42 +02:00
z-bowen
48a45b2f3f Problem: Typo in dummy parameter
Solution: Fixed it
2018-08-23 12:05:08 +02:00
z-bowen
5fa5be14e9 Problem: validators fixture was failing to get the validator set when height=0
Solution: Leaving `height` parameter unspecified gets the latest validator set, which is fine for my use case
2018-08-23 11:45:01 +02:00
z-bowen
9cae187ede Problem: Outdated call to bigchaindb.store_transaction() in one of the tests
Solution: Refactored the test to use `bigchaindb.store_bulk_transactions()`
2018-08-23 11:42:59 +02:00
z-bowen
59f6d878fc Merge branch 'master' into upsert-val-approve 2018-08-22 18:17:50 +02:00
z-bowen
e5a4cf9a87 Merge branch 'master' of github.com:bigchaindb/bigchaindb 2018-08-22 18:16:53 +02:00
z-bowen
d7feb8841a Problem: Needed a tendermint test to cover run_upsert_validator_approve
Solution: Wrote a test
2018-08-22 18:08:14 +02:00
z-bowen
e7d89abfce Problem: Needed some of the fixtures from tests/upsert_validator/conftest.py for tests in another directory
Solution: Moved the fixtures to `tests/conftest.py`
2018-08-22 18:07:14 +02:00
codegeschrei
90f2fdfc23 Problem: several tests are skipped (#2452)
* Problem: several tests are skipped
Solution: activate or remove tests

* Problem: store_transaction is deprecated
Solution: replace it with store_bulk_transaction

* Problem: we don't test the transaction split
Solution: undelete `test_store_transaction`

* Problem: failing tests
Solution: merge master and change deprecated store_transaction
2018-08-22 10:48:43 +02:00
codegeschrei
55a9151c14 Problem: tests in test_bigchain_api are not activated (#2456)
* Problem: tests in test_bigchain_api are not activated
Solution: remove or active tests

* Problem: TransactionNotInValidBlock was removed
Solution: remove TransactionNotInValidBlock from tests
2018-08-22 09:56:44 +02:00
z-bowen
4a4cbc8de0 Problem: test_upsert_validator fails if run with the initial block height == 0
Solution: Added a little helper function to make sure there is at least one block in the chain when the test is executed
2018-08-21 17:24:28 +02:00
z-bowen
32459c6a75 Problem: Validators fixture patched the validators, but never unpatched them
Solution: Modified the fixture so it sets everything back the way it was once the test is done
2018-08-21 17:21:34 +02:00
z-bowen
5db6735415 Problem: Wrong method name
Solution: Refactored `current_validators` to `get_validators`
2018-08-21 17:19:54 +02:00
Troy McConaghy
acc60bcce1 Problem: 'backlog' still referenced by some code & comments (#2474)
Solution: Remove all references to 'backlog'.
Also make the tuple of TABLES common to all backend databases.
2018-08-21 10:27:25 +02:00
Troy McConaghy
4815e75855 Problem: People reading HTTP API docs not told about the option to query MongoDB directly (#2463)
Solution: Tell them
2018-08-21 10:26:39 +02:00
z-bowen
08bb60ecb8 Merge branch 'master' into upsert-val-approve 2018-08-20 17:10:43 +02:00
z-bowen
fa3a8ddb2c Merge branch 'master' of github.com:bigchaindb/bigchaindb 2018-08-20 17:09:49 +02:00
Vanshdeep Singh
01dba7e883 Problem: Cannot conclude validator election (#2445)
Solution: Gather votes and conclude election when supermajority is achieved
2018-08-20 16:57:32 +02:00
z-bowen
3eee9dc5b4 Problem: No test covering the parser for upsert-validator approve
Solution: Expended a test to cover the new parser
2018-08-20 15:02:11 +02:00
z-bowen
028a31a5f4 Problem: Wrong dict key for public keys in fixtures
Solution: Fixed the fixtures
2018-08-20 12:39:57 +02:00
z-bowen
cf3530ed59 Problem: public_key['data'] is now public_key['value']
Solution: Aligned the code with the change in key name
2018-08-20 10:47:16 +02:00
Troy McConaghy
a3dce723be
Problem: Config settings docs missing some configs & inconsistent (#2461)
* Problem: Config settings docs missing some configs & inconsistent

Solution: Document some undocumented config settings and make the config settings docs page more consistent

* Problem: No docs about how config setting env var name determined

Solution: Explain and show the relationship between the config-file name and the environment variable name of config settings
2018-08-20 09:34:55 +02:00
z-bowen
33691cf5cb Problem: Docserver failing to parse doctring for run_upsert_validator_approve
Solution: Added a line break. Not sure this will work... Fingers crossed.
2018-08-17 16:58:33 +02:00
z-bowen
b7d5f20f8c Problem: ´@pytest.mark.tendermint´ together with ´@pytest.mark.bdb´ causes the test infrastructure to hang
Solution: Removed the ´bdb´ marker from the test. We don't seem to need it anyway...
2018-08-17 16:47:47 +02:00
Troy McConaghy
bd49a3804f
Problem: Docs say "BigchainDB cluster" but IRL we say "BigchainDB network" (#2471)
Solution: Edit the docs to say "BigchainDB network" instead
2018-08-17 16:04:58 +02:00
Troy McConaghy
423820bcda
Problem: simple-network-setup page getting long (#2464)
Solution: Start refactoring it into a new section
2018-08-17 14:19:58 +02:00
vrde
0142e98dba Problem: Rapid JSON is outdated and slow (#2470)
Solution: Use the last version of Rapid JSON.
2018-08-17 14:08:49 +02:00
z-bowen
c3cd8ecece Merge branch 'master' into upsert-val-approve 2018-08-17 11:28:58 +02:00
z-bowen
0a285edf1a Merge branch 'master' of github.com:bigchaindb/bigchaindb 2018-08-17 11:27:36 +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
z-bowen
921797e5a3 Merge branch 'master' into upsert-val-approve 2018-08-15 11:56:33 +02:00
z-bowen
645f26c1aa Merge branch 'master' of github.com:bigchaindb/bigchaindb 2018-08-15 11:53:57 +02:00
codegeschrei
4cba93962e Problem: mocking in abci test
Solution: create test scenario to test the voting
2018-08-14 14:53:17 +02:00
codegeschrei
a535daf955 Problem: There is no way to vote for an election
Solution: add `approve` command
2018-08-13 17:17:43 +02:00
Zachary Bowen
3092beb995 Reenable test bigchain api - part 1 (#2415)
* Problem: core.py contains an unused class, `Bigchain`

Solution: Remove core.py. Refactor BigchainDB Class to remove inheritance from Bigchain.

* Fixed flake8 complaint about too many blank lines

* Attempting to fix Sphinx docs. This may result in some redundant commits, as I don't know what I'm doing, and I can't experiment without running the CI...

Sorry in advance!

* Updating from master changed BigchainDB.process_post_response to a private method, so I had to align with that.

* Fixed a couple stale references to bigchaindb.Bigchain in docstrings

* Missed a reference to `Bigchain` in a patch call...

* Problem: Tests in class `TestBigChainAPI` from `tests/db/test_bigchain_api.py` were disabled

Solution: Fixed the tests that still made sense, and deleted the rest.

* Problem: Flake8 style complaints

Solution: Made things prettier

* Problem: Debugging comments were slightly NSFW

Solution: Deleted the debugging comments

* Problem: Stale use of `pytest.mark.genesis` decorator on these tests

Solution: Removed the decorator

* Problem: CriticalDoubleInclusion exception was no longer used anywhere in the code

Solution: Deleted it

* Problem: Unused exception `GenesisBlockAlreadyExistsError`

Solution: Deleted it

* Problem: I removed a test that covered writing to the DB and checking that everything is stored faithfully

Solution: Replaced it and got it working again
2018-08-13 09:54:45 +02:00
Troy McConaghy
bbf5310ac8
Problem: community drivers not working w/ latest BDB (#2443)
Solution: In the docs page listing the Community-Driven Libraries and Tools, make it clear that they might not work with the latest version of BigchainDB. Make it a warning rather than a note.
2018-08-10 11:39:44 +02:00
Zachary Bowen
3760824261 Create dynamic upsert validator commands (#2446)
* Problem: Need a method to initiate a new upsert-validator election

Solution: Added subcommand `new` to `upsert_validator`

* Problem: Changes to upsert-validator needed to be reflected in the docs

Solution: Wrote a section for `upsert-validator new`
2018-08-09 17:29:21 +02:00
z-bowen
e18632b390 Merge branch 'master' of github.com:bigchaindb/bigchaindb 2018-08-09 17:19:16 +02:00
Muawia Khan
3011548317 Problem: remove autodraft from download link (#2454) 2018-08-09 15:17:46 +02:00
Troy McConaghy
4636a48918 Problem: Glossary no longer referenced by any docs (#2441)
Solution: Remove Glossary section from the server docs
2018-08-09 11:16:56 +02:00
Troy McConaghy
205e2cf3fd Problem: Immutability page in docs sometimes wrong or controversial (#2435)
Solution: Edit that page
2018-08-09 11:16:05 +02:00
Troy McConaghy
4806b81577 Problem: Inconsistent HTTP API docs (#2403)
- Make the title of the asset search section consistent with the example (and consistent with the metadata search title and example).
- Add a note that one can use `asset?search` or `asset/?search`, and the same for metadata.
2018-08-09 11:14:48 +02:00
Troy McConaghy
65b6040e6b Problem: Codecov shield commented-out in README.md (#2421)
Solution: Uncomment it, since Codecov is working again

![Codecov](https://img.shields.io/codecov/c/github/bigchaindb/bigchaindb/master.svg)
2018-08-08 16:46:23 +02:00
Dan Acristinii
ab41b463d8 fixed validator curl port (#2447) 2018-08-08 15:45:08 +02:00
codegeschrei
44be8f572f Problem: Block parameters are not required anymore (#2374)
* Problem: all blocks are valid
Solution: remove the status from transactions

* Problem: changed the return type of get_transaction_filtered
Solution: return tx class instead of dict
2018-08-08 15:08:34 +02:00
Vanshdeep Singh
54b81d3ae8 Problem: Random failure for event handler test (#2423)
Solution: Random failure of test
`tests/test_events.py::test_event_handler_raises_when_called_after_start` seem
to be because of `get_nowait` which returns way to quickly even when the queue
has data. Increasing timeout seems to fix the issue.
2018-08-08 14:23:07 +02:00
Troy McConaghy
66fd001311
Problem: Doc re/ handling external PRs has moved (#2444)
Solution: Modify the file `HOW_TO_HANDLE_PULL_REQUESTS.md` to point its readers to the new document about how to handle external pull requests: [BEP-16](https://github.com/bigchaindb/BEPs/tree/master/16).
2018-08-08 13:27:48 +02:00