46 Commits

Author SHA1 Message Date
Adithya Vardhan
badb700837 chore: allow 0 limits for send/receive amount/volume (#486)
* chore: allow 0 limits for send/receive amount/volume

* fix: use pointers for claims

* fix: tests to set default as -1

* chore: add 0 check in outgoing exceeded tests

* chore: also default max account balance to -1

* chore: remove dbUri :P

* chore: remove print statements

* chore: add more tests for limits
2024-04-05 09:21:08 +02:00
Michael Bumann
e33693398e Soft delete users (#476)
* Update Makefile

* Optionally load test DB from env variable

* Add option to soft-delete a user

This allows users to be marked as deleted.
An additional middleware checks if a user is deleted or deactivated and rejects
requests for those as StatusUnauthorized.

note: the middelware adds an additional DB query to load the user.
2024-01-09 19:38:01 +02:00
René Aaron
4eb9f0923a fix: exclude erroneous payments (#467)
* fix: exclude errorneous payments

* fix: add invoicesfor in tests

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2023-12-12 17:47:55 +01:00
kiwiidb
7d62fd0ab7 turns out this was necessary for tests 2023-09-28 16:42:27 +02:00
kiwiidb
08e5b6fc54 more refactoring 2023-09-22 10:43:42 +02:00
kiwiidb
def32f2d45 move pubkey checks to lnd client 2023-06-22 16:13:36 +02:00
Lucas Rouckhout
9db249a790 Fix old integration tests 2023-05-30 11:26:23 +02:00
kiwiidb
2af71fe66b add rmq integration test 2023-04-01 14:52:21 +02:00
kiwiidb
6d7e871f33 fix test + refactor 2023-04-01 14:13:20 +02:00
Lucas Rouckhout
dbe5ce83a3 WIP SACE 2023-03-04 17:52:03 +01:00
Lucas Rouckhout
3e611a45ab Merge branch 'main' into feature/rabbitmq-publish 2023-02-18 09:20:55 +01:00
kiwiidb
9af3e318c6 feature: add db pool config 2023-02-16 14:53:56 +01:00
kiwiidb
4dee1da2ae feature: add db pool config 2023-02-16 14:46:39 +01:00
Lucas Rouckhout
e2a819c747 Oopsie poopsie forgot my local URI 2023-02-04 15:52:08 +01:00
Lucas Rouckhout
fb932f00b8 WIP integration tests for rabbitmq 2023-02-04 15:00:27 +01:00
kiwiidb
5f3c325daf fix merge conflicts 2022-06-18 10:49:28 +02:00
kiwiidb
c8bdddc013 remove all sqlite dependencies and mentions 2022-06-17 08:56:00 +02:00
kiwiidb
9574b41a08 working on test refactoring 2022-06-15 11:39:54 +02:00
kiwiidb
e15e55c175 refactor tests 2022-05-02 19:10:39 +02:00
kiwiidb
a6c6a14484 start integration tests for ws 2022-04-12 12:17:59 +02:00
Stefan Kostic
2332e7a7d8 Add and use expected requests and responses for integration tests 2022-04-05 21:01:06 +02:00
kiwiidb
96af86dcc3 Merge pull request #134 from getAlby/unauthorized-invoice-endpoint
Unauthorized invoice endpoint
2022-03-22 07:51:08 +01:00
Stefan Kostic
7060fca760 Extract test err response util fn 2022-03-21 23:25:03 +01:00
Stefan Kostic
805e0970a5 Add tests for new endpoint 2022-03-21 23:20:54 +01:00
kiwiidb
e5e03659d6 update tests with custom record 2022-03-18 14:10:37 +01:00
kiwiidb
a3c6f294e0 fix merge conflict 2022-03-08 14:57:46 +01:00
Stefan Kostic
ba7c045729 Add keysend tests 2022-03-08 01:11:02 +01:00
Stefan Kostic
90e90dc79c Merge branch 'main' into fee-handling 2022-03-04 17:46:36 +01:00
Stefan Kostic
831895a8e0 Remove integration tests util todo and fix comment 2022-03-04 17:28:04 +01:00
kiwiidb
c63aa0c7d2 add lnd3 credentials 2022-03-01 13:05:39 +01:00
kiwiidb
735cd6a839 fee handling should come from payment response 2022-03-01 10:06:29 +01:00
Stefan Kostic
5033a33593 Add fee handling to tests 2022-02-25 19:40:46 +01:00
Stefan Kostic
4d0300a330 Set different expiry for access and refresh tokens 2022-02-24 20:46:05 +01:00
Stefan Kostic
6a32645b59 Add missing test 2022-02-18 12:39:24 +01:00
Stefan Kostic
09aee50ec0 Cleanup 2022-02-17 20:17: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
kiwiidb
20610aef06 remove btcec dependency 2022-02-15 17:24:57 +01:00
kiwiidb
146e448cb8 update create user call to use new func sig 2022-02-15 16:52:39 +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
afdbf563df Move createAddInvoiceReq to utils 2022-02-11 00:21:53 +01:00
Stefan Kostic
68698c988b Move common test methods to separate utils file 2022-02-10 23:29:22 +01:00