Commit Graph

41 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
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
6a32645b59 Add missing test 2022-02-18 12:39:24 +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
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
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
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
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
Stefan Kostic
68698c988b Move common test methods to separate utils file 2022-02-10 23:29:22 +01:00
kiwiidb
ec9bd46925 merge master into branch 2022-02-10 14:29:29 +01:00
kiwiidb
aa0896a1ad replace TODO context with Background context for integration tests 2022-02-10 11:57:01 +01:00
kiwiidb
54958e363a split up test init service 2022-02-10 11:54:42 +01:00
Stefan Kostic
06e4257aaa Add test for provided login and password 2022-02-09 22:59:11 +01:00
kiwiidb
f849c92842 integration test: alice tries to cheat 2022-02-07 13:51:46 +01:00
kiwiidb
fcb2934060 pay external invoices 2022-02-07 12:21:06 +01:00
kiwiidb
8006cec51d internal payments: test working 2022-02-07 12:07:21 +01:00
kiwiidb
a83ae07dac refactoring: allow to create users and tokens while setting up service 2022-02-07 11:27:11 +01:00
kiwiidb
56d03e8f40 only start listening when it's needed 2022-02-04 18:00:08 +01:00
kiwiidb
505f592265 tests: use postgres by default 2022-02-04 17:43:59 +01:00
kiwiidb
6a1803ceb4 tests: add deposit integration test 2022-02-04 15:28:34 +01:00
kiwiidb
1ae5df6b8c Feature: integration testing
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00