Commit Graph

20 Commits

Author SHA1 Message Date
kiwiidb
6e9eb5d467 integration test complete but failing 2023-05-24 12:24:32 +02:00
kiwiidb
0867baaecc integration test wip 2023-05-24 12:05:37 +02:00
kiwiidb
7fcc8bebb5 add integration test 2023-05-24 11:31:58 +02:00
kiwiidb
49578644f9 add test for creating account with admin key 2022-10-03 15:41:32 +02:00
kiwiidb
40e34086d7 all tests passing 2022-06-15 18:27:03 +02:00
Stefan Kostic
2332e7a7d8 Add and use expected requests and responses for integration tests 2022-04-05 21:01:06 +02:00
Stefan Kostic
720a40061e Add and use lnd mock with failing send payment sync 2022-02-17 19:47:08 +01:00
Stefan Kostic
17e42f42ea Add tear down test to create tests 2022-02-17 16:05:09 +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
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
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
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