Commit Graph

363 Commits

Author SHA1 Message Date
Stefan Kostic
e489320363 Change transaction entries count in existing tests 2022-02-25 19:21:16 +01:00
Stefan Kostic
3858528607 Add transaction entry for fee 2022-02-25 00:23:37 +01:00
Stefan Kostic
b99182db64 Add configurable fixed amount for fee 2022-02-25 00:23:09 +01:00
Michael Bumann
072694cb2e Merge pull request #112 from getAlby/chore/update-readme
update README
2022-02-19 00:37:43 +02:00
kiwiidb
18ddf6cace update README 2022-02-18 18:02:10 +01:00
kiwiidb
2a1d4d8e08 Merge pull request #110 from getAlby/payment-and-info-tests
Payment and info tests
2022-02-18 16:40:01 +01:00
kiwiidb
38c1ea0cc9 Merge pull request #111 from getAlby/fix-typo
Fix typo
2022-02-18 16:30:05 +01:00
Michael Bumann
4a3c93bb17 Fix typo 2022-02-18 16:42:42 +02:00
kiwiidb
0a95a1e9b6 Merge pull request #107 from getAlby/fix/in-transit
Fix/in-transit
0.2.0
2022-02-18 14:49:46 +01:00
Stefan Kostic
0671e38697 Add get info tests 2022-02-18 14:30:57 +01:00
Stefan Kostic
b70578eaf9 Add check payment tests 2022-02-18 14:30:51 +01:00
Stefan Kostic
f5b58e6659 Add comment to explain async mock wrapper 2022-02-18 14:07:15 +01:00
Stefan Kostic
596dbc6eca Use sentry capture for handle payment errors 2022-02-18 12:46:35 +01:00
Stefan Kostic
a071b3bd1a Fix error message bun struct tag 2022-02-18 12:46:06 +01:00
Stefan Kostic
6a32645b59 Add missing test 2022-02-18 12:39:24 +01:00
Stefan Kostic
fd80bcea5d Fix error logging todos 2022-02-17 20:36:04 +01:00
Stefan Kostic
130760bbb1 Add error message field to invoice 2022-02-17 20:29:45 +01:00
Stefan Kostic
09aee50ec0 Cleanup 2022-02-17 20:17:29 +01:00
Stefan Kostic
5d0bcfdfa5 Add failing internal payment test 2022-02-17 20:15:32 +01:00
Stefan Kostic
e67d759797 Tear down test and suite properly in tests to fix failures 2022-02-17 20:00:29 +01:00
Stefan Kostic
720a40061e Add and use lnd mock with failing send payment sync 2022-02-17 19:47:08 +01:00
Stefan Kostic
63a3ea09b3 Add simple failure test 2022-02-17 18:32:30 +01:00
Stefan Kostic
17e42f42ea Add tear down test to create tests 2022-02-17 16:05:09 +01:00
Stefan Kostic
2e5f411cf1 Use context background on all needed places 2022-02-17 15:17:05 +01:00
Stefan Kostic
fea16623ab Implement handle failed payment method 2022-02-17 15:10:42 +01:00
Stefan Kostic
1d9e24f21c Implement handle successful payment method 2022-02-17 14:27:49 +01:00
kiwiidb
74da8f8088 new pr scope: don't bother with callbacks 2022-02-17 11:31:39 +01:00
kiwiidb
5c2d88d2f7 add desired integration test behaviour 2022-02-16 12:33:57 +01:00
kiwiidb
7ff25113e5 outline behaviour in comments 2022-02-16 12:29:11 +01:00
kiwiidb
26694c821f remove transactions, add empty func that will handle failed payments 2022-02-16 11:23:30 +01:00
kiwiidb
06f4291444 Merge pull request #105 from getAlby/chore/remove-unnecesary-deps
Chore/remove-unnecesary-deps
2022-02-16 09:21:55 +01:00
kiwiidb
61966e3d1c address PR comments 2022-02-16 09:12:37 +01:00
kiwiidb
d88ebf11d8 use the correct expiresAt timestamp 2022-02-15 18:16:10 +01:00
kiwiidb
20610aef06 remove btcec dependency 2022-02-15 17:24:57 +01:00
kiwiidb
fb8fe70d07 remove zpay32 dep 2022-02-15 17:19:35 +01:00
kiwiidb
a3b3e17d49 Merge pull request #104 from getAlby/fix/create-users
update create user call to use new func sig
2022-02-15 17:18:37 +01:00
kiwiidb
146e448cb8 update create user call to use new func sig 2022-02-15 16:52:39 +01:00
kiwiidb
9029d95353 Merge pull request #100 from getAlby/custom-usernames
Custom usernames and password when creating new users
2022-02-15 16:47:20 +01:00
kiwiidb
a44d9052e7 use the right struct to create user 2022-02-15 16:46:32 +01:00
kiwiidb
6ab8628654 Merge pull request #103 from getAlby/missing-integration-tests
Get incoming/outgoing invoices tests
2022-02-15 16:44:59 +01:00
kiwiidb
e551904e82 add fields explicitly in controllers 2022-02-15 16:43:55 +01:00
kiwiidb
f7be8c3663 export responses in controller package 2022-02-15 16:33:47 +01:00
Stefan Kostic
4985adf0da Use util addInvoice method in test incoming payment 2022-02-11 14:08:20 +01:00
Stefan Kostic
d808232001 Cancel invoice subscription on test suite teardown 2022-02-11 14:02:41 +01:00
Stefan Kostic
fd0d3bfe91 Revert db uril in tests 2022-02-11 12:15:57 +01:00
Stefan Kostic
53ec45b482 Add simple tear down test method 2022-02-11 12:09:30 +01:00
Stefan Kostic
140ee03f7c Move payinvoice to test util method and use it on all places in tests 2022-02-11 11:45:05 +01:00
Stefan Kostic
e36e64ec34 Fix outgoing invoice test 2022-02-11 11:32:55 +01:00
Stefan Kostic
170d7a028a Add tests for incoming invoices and start with outgoing invoice test 2022-02-11 00:38:04 +01:00
Stefan Kostic
afdbf563df Move createAddInvoiceReq to utils 2022-02-11 00:21:53 +01:00