Commit graph

1282 commits

Author SHA1 Message Date
Jonathan Zernik
831c96d47e
Add args to docstring for bitcoin client class (#1535) 2021-10-07 20:09:13 -07:00
Jonathan Zernik
545d45299a
Add docstrings for bitcoin client class (#1534) 2021-10-07 20:06:31 -07:00
Jonathan Zernik
315a84f846
Add comment for block hash and block header fixtures in bitcoin client test (#1533) 2021-10-07 19:52:45 -07:00
Jonathan Zernik
e0c63e2927
Add tests for bitcoin client get count method (#1530)
* Add tests for bitcoin client get count method

* Rename bitcoin exceptions

* Got test working for bitcoin http error

* Added tests for get block count and get block hash

* Added tests for all bitcoin client methods

* Added tests for invalid results

* Remove check for empty result which is not needed

* Add test for all bitcoin request errors

* Rename bitcoin connection error exception

* Remove print statments from bitcoin client

* Got 100% coverage for bitcoin client

* Add todos to assert mocks called with correct args

* Rename bitcoin core client class and module
2021-10-07 19:42:15 -07:00
Jonathan Zernik
7a88fd95ed
Retry init db on startup so that itest passes (#1532) 2021-10-07 19:29:31 -07:00
Jonathan Zernik
8d0d658e4d
Better use of fixtures for profile ids (#1529) 2021-10-07 04:25:26 -07:00
Jonathan Zernik
7aa88efd17
Improve fixure for liked and unliked squeak hashes (#1528) 2021-10-07 03:59:52 -07:00
Jonathan Zernik
be5815d402
Use more fixtures for timeline query test (#1527)
* Use fixture for followed and unfollowed squeaks in timeline test

* Use fixture for inserted signing profile

* Use more fixtures for profiles in tests

* Use better fixture for get like squeaks query test

* Use fixtures for liked and unliked squeak in set liked and set unliked test
2021-10-07 03:50:03 -07:00
Jonathan Zernik
c5d189dde3
Use more fixtures for squeak db test (#1526)
* Add test for get liked squeaks and set like and set unliked

* Simplify squeak db tests with more fixtures

* Add test for get locked squeak

* Add test for get secret key for missing squeak
2021-10-07 02:51:46 -07:00
Jonathan Zernik
411db3d6b8
Add test for get liked squeaks and set like and set unliked (#1525) 2021-10-07 02:17:48 -07:00
yzernik
4560601d34 Release version 0.1.160 2021-10-07 00:48:43 -07:00
Jonathan Zernik
61e29ce27a
Add opentimestamps GitHub action (#1524)
* Add opentimestamps github action

* Remove custom message
2021-10-06 21:41:15 -07:00
Jonathan Zernik
e1a9674200
Add unit test for set profile following (#1520) 2021-10-06 15:39:42 -07:00
Jonathan Zernik
2a55b44b97
Add get timeline squeak entries test (#1518)
* WIP: most of timeline db query test

* Got unit test for timeline query working with followed profile

* Remove old commented create signing profile function
2021-10-05 19:38:35 -07:00
Jonathan Zernik
9c599ee0e3
Add test util functions (#1515)
* Create test utils module for unit tests

* Improve squeak db unit tests using generated block header object

* Add assertion for block time in get squeak entry test
2021-10-05 15:28:25 -07:00
Jonathan Zernik
1259300ba0
Capitalize bitcoin in readme (#1511) 2021-10-05 03:02:26 -07:00
Jonathan Zernik
c3f4f80d30
Move set up test socket function to util module (#1510) 2021-10-05 00:39:12 -07:00
yzernik
90b38ff076 Release version 0.1.159 2021-10-04 23:23:31 -07:00
Jonathan Zernik
dbb440afea
Simplify unit test for connection manager ignore address for inbound connection (#1509) 2021-10-04 22:15:53 -07:00
Jonathan Zernik
24dc6c7af3
Use context managers to open and close sockets in unit test for squeak node (#1508) 2021-10-04 22:04:57 -07:00
Jonathan Zernik
95d48ca74c
Use thread pool and futures for connection manager unit test (#1506) 2021-10-04 21:35:17 -07:00
Jonathan Zernik
c62dc14d65
Mock out more components in unit test for squeak node (#1505) 2021-10-04 20:52:32 -07:00
Jonathan Zernik
156d3fe905
Update frontend build (#1503) 2021-10-04 20:34:39 -07:00
Jonathan Zernik
7c33f33c51
Use stop propagation to ignore click on tx details in transaction item (#1502) 2021-10-04 20:29:09 -07:00
Jonathan Zernik
f2ba8dc004
Fix autofocus in open channel dialog (#1501) 2021-10-04 20:22:30 -07:00
Jonathan Zernik
596a04b20f
Update docs to use pip install . (#1500) 2021-10-04 20:16:20 -07:00
Jonathan Zernik
c83f156760
Update frontend build (#1499) 2021-10-04 20:12:18 -07:00
Jonathan Zernik
e995b49b7d
Add more details to development doc (#1498) 2021-10-04 19:24:51 -07:00
Jonathan Zernik
3f9a67a439
Change description in setup.py (#1497) 2021-10-04 19:20:12 -07:00
Jonathan Zernik
b020b9aff9
Update development doc move lnd dir permissions (#1496)
* Update development doc to explain lnd dir permissions in backend section

* Try fix formatting of tor env vars

* Try again fix formatting of tor env vars
2021-10-04 19:18:45 -07:00
Jonathan Zernik
411f050c93
Got itest working with lnd using tor for both listen and connect (#1495)
* Got itest working with lnd using tor for both listen and connect

* Got itest working with configurable target address for lnd tor config

* Update development doc with tor service in background services
2021-10-04 18:33:16 -07:00
Jonathan Zernik
028b0b5ef1
Use separate lnd container in docker compose (#1479)
* Other lnd container in docker-compose seems to work

* Add new docker-compose using btcd

* Fix external host config for docker-compose

* Remove btcctl container from docker-compose in docker dir

* Mount btcd rpc certs dir to host dir

* Revert "Mount btcd rpc certs dir to host dir"

This reverts commit a79246fb3c.

* Use bitcoin-core instead of btcd in docker-compose.btcd

* Got squeaknode connection and buy working from host machine to container

* Got host to container connection working in main docker-compose

* Remove old comments from docker-compose

* Make squeaknode container use persistent volume

* Add tor proxy to dockerfile

* Update development doc with containerized squeaknode info

* Remove docker-compose.btcd.yml

* Remove unused configs from docker config.ini

* Add zmq hash block port to docker config.ini
2021-10-04 15:12:45 -07:00
Jonathan Zernik
742f524263
Add unit test for network connection using connection manager (#1493) 2021-10-04 00:48:46 -07:00
Jonathan Zernik
5d753ace14
Add unit test for get squeak secret key from db (#1492)
* Add unit test for get squeak secret key from db

* Add unit test for get missing squeak secret key from db
2021-10-03 21:31:17 -07:00
Jonathan Zernik
3effe81546
Add unit test for get missing squeak entry from db (#1491) 2021-10-03 21:11:28 -07:00
Jonathan Zernik
2eb1f1025d
Add unit test for get squeak entry from db (#1490) 2021-10-03 21:02:29 -07:00
Jonathan Zernik
080d6299b5
Add unit test for duplicate squeak (#1489)
* Add unit test for insert duplicate squeak in db

* Add unit test for get missing squeak from db
2021-10-03 20:52:04 -07:00
Jonathan Zernik
2e0fc25051
Got unit test working for insert and retrieve squeak in db (#1488) 2021-10-03 20:39:24 -07:00
Jonathan Zernik
70511ea291
Remove print statements from unit test (#1487) 2021-10-03 19:53:06 -07:00
Jonathan Zernik
24e64fc30b
Mock out db in unit test (#1485)
* Simplify fixtures in squeak node unit test

* Mock out get connection string which creates data dir
2021-10-03 19:49:22 -07:00
Jonathan Zernik
be8ebe7f42
Add config to enable squeak node test to cover everything (#1484)
* Add config to enable squeak node test to cover everything

* Add separate test for webadmin enabled
2021-10-03 16:14:42 -07:00
Jonathan Zernik
4fe0953f43
Got test passing for start stop squeaknode (#1483)
* Got test passing for start stop squeaknode

* Remove print statements from test
2021-10-03 15:24:24 -07:00
Jonathan Zernik
985d160372
Raise custom error when inserting duplicate squaek in db. (#1478)
* Raise custom error when inserting duplicate squaek in db.

* Don't raise error in insert db method, return optional primary key

* Update the docstring for insert squeak

* Insert received offer db method returns optional primary key

* Use optional return type for insert received payment method

* Comment out unused db exceptions for duplicate inserts
2021-10-03 01:09:35 -07:00
Jonathan Zernik
d7b9c76555
Raise custom error when inserting duplicate received offer in db. (#1476) 2021-10-02 12:06:04 -07:00
Jonathan Zernik
1ede8b9468
Move create saved peer function to peers module (#1473) 2021-10-02 11:25:08 -07:00
Jonathan Zernik
e2bd6ae384
Add profiles module with unit tests (#1468) 2021-10-02 02:48:09 -07:00
Jonathan Zernik
b7afc1f921
Add codecov badge (#1466)
* Add codecov badge to readme

* Change spacing of readme badges
2021-10-02 01:17:04 -07:00
Jonathan Zernik
b5438d2461
Add codecov to github workflow (#1465)
* Add codecov to github workflow

* Include setup python and tox in github workflow

* Install tox in github workflow test step

* Add protoc install to github ci

* Call coverage directly in github ci

* Install requirements-dev in github ci

* Call make gen-protos in github ci before pytest

* Install tox before run tests

* Call coverage xml before codecov upload

* Use codecov token

* Don't use codecov token
2021-10-02 01:09:51 -07:00
Jonathan Zernik
f68d8628ea
Move secret key tweak functions to secret keys module (#1464) 2021-10-02 00:07:51 -07:00
Jonathan Zernik
52cfc3765a
Remove unused functions in core util module (#1463) 2021-10-01 21:46:13 -07:00