This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pytest framework and Travis CI added. * Use internal copy of python-bitcoinlib for bitcoin RawProxy RPC calls to minimise dependencies Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed python-bitcoinlib dependency as its now internal: lnd_grpc.bitcoin Signed-off-by: willcl-ark <will8clark@gmail.com> * Re-added params required to communicate with bitcoin RPC Signed-off-by: willcl-ark <will8clark@gmail.com> * Initial commit of working test framework Framework extracted from Christian Deckers Lightning Integration Test project found at https://github.com/cdecker/lightning-integration Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed BtcD references Signed-off-by: willcl-ark <will8clark@gmail.com> * Working with implementation of lnd_grpc utilising macaroon connection Signed-off-by: willcl-ark <will8clark@gmail.com> * Moved lightning and wallet stubs to below the credentials-builder. Code of stub generators otherwise unchanged. Added an insecure_stub() which can be used without macaroons Signed-off-by: willcl-ark <will8clark@gmail.com> * Passing tests added up to send_coins() Signed-off-by: willcl-ark <will8clark@gmail.com> * Cleaned up directory. Added test_subscribe_transactions() Signed-off-by: willcl-ark <will8clark@gmail.com> * Added get_addresses() helper function. Added test_new_address() Signed-off-by: willcl-ark <will8clark@gmail.com> * All non-interactive tests implemented and passing Signed-off-by: willcl-ark <will8clark@gmail.com> * Fixed teardown of fixtures Signed-off-by: willcl-ark <will8clark@gmail.com> * Reduced sleep time Signed-off-by: willcl-ark <will8clark@gmail.com> * Added send_many test Signed-off-by: willcl-ark <will8clark@gmail.com> * Added connection test Signed-off-by: willcl-ark <will8clark@gmail.com> * Added open_channel() test Signed-off-by: willcl-ark <will8clark@gmail.com> * Fixed lambda function to wait for the empty list Signed-off-by: willcl-ark <will8clark@gmail.com> * Linting Signed-off-by: willcl-ark <will8clark@gmail.com> * Remove bad test files Signed-off-by: willcl-ark <will8clark@gmail.com> * Revert parameter names Signed-off-by: willcl-ark <will8clark@gmail.com> * Amend parameters according to rebase off Pierre's PR#9 Signed-off-by: willcl-ark <will8clark@gmail.com> * LND requires a block generation to activate the services correctly. Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_open_channel() Signed-off-by: willcl-ark <will8clark@gmail.com> * Modified sleep timers Signed-off-by: willcl-ark <will8clark@gmail.com> * More efficient sleep timers. Improved wait_for logic Signed-off-by: willcl-ark <will8clark@gmail.com> * Added send_payment_sync test Signed-off-by: willcl-ark <will8clark@gmail.com> * Added a setup_nodes() helper function Signed-off-by: willcl-ark <will8clark@gmail.com> * Linting Signed-off-by: willcl-ark <will8clark@gmail.com> * Added alice, bob, carol and dave Signed-off-by: willcl-ark <will8clark@gmail.com> * Refactored to use alice, bob, carol and dave fixtures Signed-off-by: willcl-ark <will8clark@gmail.com> * add_funds() will consider fixture use across tests Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test for manually specified send_payment_sync Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test for send_payment Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed python-bitcoinlib dependency as its now internal: lnd_grpc.bitcoin Signed-off-by: willcl-ark <will8clark@gmail.com> * Initial commit of working test framework Framework extracted from Christian Deckers Lightning Integration Test project found at https://github.com/cdecker/lightning-integration Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed BtcD references Signed-off-by: willcl-ark <will8clark@gmail.com> * Working with implementation of lnd_grpc utilising macaroon connection Signed-off-by: willcl-ark <will8clark@gmail.com> * Passing tests added up to send_coins() Signed-off-by: willcl-ark <will8clark@gmail.com> * Cleaned up directory. Added test_subscribe_transactions() Signed-off-by: willcl-ark <will8clark@gmail.com> * Added get_addresses() helper function. Added test_new_address() Signed-off-by: willcl-ark <will8clark@gmail.com> * All non-interactive tests implemented and passing Signed-off-by: willcl-ark <will8clark@gmail.com> * Fixed teardown of fixtures Signed-off-by: willcl-ark <will8clark@gmail.com> * Reduced sleep time Signed-off-by: willcl-ark <will8clark@gmail.com> * Added send_many test Signed-off-by: willcl-ark <will8clark@gmail.com> * Added connection test Signed-off-by: willcl-ark <will8clark@gmail.com> * Added open_channel() test Signed-off-by: willcl-ark <will8clark@gmail.com> * Fixed lambda function to wait for the empty list Signed-off-by: willcl-ark <will8clark@gmail.com> * Linting Signed-off-by: willcl-ark <will8clark@gmail.com> * Remove bad test files Signed-off-by: willcl-ark <will8clark@gmail.com> * Revert parameter names Signed-off-by: willcl-ark <will8clark@gmail.com> * LND requires a block generation to activate the services correctly. Signed-off-by: willcl-ark <will8clark@gmail.com> * Added setup_dave() which can add a 3rd node Dave to the network. Dave is only connected with a channel to Carol currently Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_send_to_route() which is passing on a simple 3 node network Signed-off-by: willcl-ark <will8clark@gmail.com> * modify send_to_route_sync to accept working `routes` argument fixes broken `route` argument even though API docs state `routes` is deprecated and `route` should be used instead. Signed-off-by: willcl-ark <will8clark@gmail.com> * Return the routes iterable directly from query_routes() Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed debugging code from test_send_to_route_sync() Signed-off-by: willcl-ark <will8clark@gmail.com> * Revised setup_nodes() to accept a list of n nodes as argument Signed-off-by: willcl-ark <will8clark@gmail.com> * Linting Signed-off-by: willcl-ark <will8clark@gmail.com> * Use new setup_nodes() format Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_send_to_route() Signed-off-by: willcl-ark <will8clark@gmail.com> * Modified the send_to_route_generator so that it works (Magic!) Signed-off-by: willcl-ark <will8clark@gmail.com> * Aligned send_to_route arguments with send_to_route_sync() Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_subscribe_channel_events() Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed un-usable kwargs from subscribe_channel_events() Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_subscribe_channel_graph() Signed-off-by: willcl-ark <will8clark@gmail.com> * Added test_update_channel_policy() All tests passing Signed-off-by: willcl-ark <will8clark@gmail.com> * Added break_down_nodes() Interactive tests can now share instances of bob, carol and dave to significantly speed up test times. Clients are broken down following each test. Signed-off-by: willcl-ark <will8clark@gmail.com> * bob, carol and dave persist across classes Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed old tests Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed unnecessary cli.py Signed-off-by: willcl-ark <will8clark@gmail.com> * Remove unnecessary import Signed-off-by: willcl-ark <will8clark@gmail.com> * Initial write-up of test instructions Signed-off-by: willcl-ark <will8clark@gmail.com> * Trimmed test-requirements.txt for unnecessary dependencies Signed-off-by: willcl-ark <will8clark@gmail.com> * Amend add_funds() to consider a wallet with pre-existing balance ...now that fixtures are shared between non-interactive tests Signed-off-by: willcl-ark <will8clark@gmail.com> * Break down nodes as part of setup_nodes() Avoids cases where a previous test fails and skips break_down() leading to error in subsequent test Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed old code Signed-off-by: willcl-ark <will8clark@gmail.com> * Remove references to break_down_nodes() from test.py Related to d08f496 Signed-off-by: willcl-ark <will8clark@gmail.com> * Add single break_down_nodes() to test_open_channel() Avoids already connected error Signed-off-by: willcl-ark <will8clark@gmail.com> * Add _update_channel_policy() arguments as per PR#12 Signed-off-by: willcl-ark <will8clark@gmail.com> * Rebase lnd_grpc.py imports onto master Signed-off-by: willcl-ark <will8clark@gmail.com> * Import and linting fixes Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed redundant docs Signed-off-by: willcl-ark <will8clark@gmail.com> * Re-generated with correct import for PyPi packaging Signed-off-by: willcl-ark <will8clark@gmail.com> * Import and linting fixes Signed-off-by: willcl-ark <will8clark@gmail.com> * Added package name to __init__.py Signed-off-by: willcl-ark <will8clark@gmail.com> * Import and linting fixes Signed-off-by: willcl-ark <will8clark@gmail.com> * Exclude any hardlinks/binaries from bin/ using MANIFEST.in Signed-off-by: willcl-ark <will8clark@gmail.com> * Increment version. Remove tests from exclude=[] Signed-off-by: willcl-ark <will8clark@gmail.com> * remove pycaches * remove DS_Store * initialize bin directory * Reverted lnd_dir to data_dir Signed-off-by: willcl-ark <will8clark@gmail.com> * fully remove __pycache__ from branch * fully remove __pycache__ from branch * add gitignore to ensure pycaches are ignored in future * remote pycaches * amend .gitignore to fully ignore pycaches * Travis setup changes! Move tests into top level directory to seperate from main package Signed-off-by: willcl-ark <will8clark@gmail.com> Remove python-bitcoinlib from codebase Signed-off-by: willcl-ark <will8clark@gmail.com> Add python-bitcoinlib as a test-requirements.txt requirement Also update grpcio version to match main requirements.txt version Signed-off-by: willcl-ark <will8clark@gmail.com> add __init__.py to test_utils Don't require symlinking lnd into /bin folder Just read from PATH Signed-off-by: willcl-ark <will8clark@gmail.com> Make test-requirements.txt include all requirements! Signed-off-by: willcl-ark <will8clark@gmail.com> Add travis configurations Signed-off-by: willcl-ark <will8clark@gmail.com> Moved travis.yml so it's detected Signed-off-by: willcl-ark <will8clark@gmail.com> Made script executable for travis Signed-off-by: willcl-ark <will8clark@gmail.com> Made script executable for travis Signed-off-by: willcl-ark <will8clark@gmail.com> Add universe repo for xenial Signed-off-by: willcl-ark <will8clark@gmail.com> Don't build bitcoin, just grab binary Signed-off-by: willcl-ark <will8clark@gmail.com> Use Travis $HOME variable Signed-off-by: willcl-ark <will8clark@gmail.com> Reconfigure travis Signed-off-by: willcl-ark <will8clark@gmail.com> Typo in test command Signed-off-by: willcl-ark <will8clark@gmail.com> Typo in test command Signed-off-by: willcl-ark <will8clark@gmail.com> Typo in install command Signed-off-by: willcl-ark <will8clark@gmail.com> Typo in grpcio Signed-off-by: willcl-ark <will8clark@gmail.com> Add cheroot dependency Signed-off-by: willcl-ark <will8clark@gmail.com> Add cheroot dependency Signed-off-by: willcl-ark <will8clark@gmail.com> Troubleshooting travis environment Signed-off-by: willcl-ark <will8clark@gmail.com> Troubleshooting travis environment Signed-off-by: willcl-ark <will8clark@gmail.com> Fixed travis exports? Signed-off-by: willcl-ark <will8clark@gmail.com> Try manually copying binaries to /usr/local/bin Signed-off-by: willcl-ark <will8clark@gmail.com> Try manually copying binaries to /usr/local/bin Signed-off-by: willcl-ark <will8clark@gmail.com> Add TEST_DEBUG=1 to test script Signed-off-by: willcl-ark <will8clark@gmail.com> Add travis environment variable check for tls paths Signed-off-by: willcl-ark <will8clark@gmail.com> Reduce log verbosity to satisfy travis Signed-off-by: willcl-ark <will8clark@gmail.com> Removed superfluous print statements to further reduce travis log output Signed-off-by: willcl-ark <will8clark@gmail.com> Revert breaking print statement removals Signed-off-by: willcl-ark <will8clark@gmail.com> * Remove unnecessary travis scripts now that we grab binaries Signed-off-by: willcl-ark <will8clark@gmail.com> * Amend test.md to reflect PATH search for both binaries Signed-off-by: willcl-ark <will8clark@gmail.com> * Removed unnecessary bin folder from tests Signed-off-by: willcl-ark <will8clark@gmail.com> * Try to pass node_id to the logger Signed-off-by: willcl-ark <will8clark@gmail.com>
- Loading branch information