-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
itest: add integration tests for integrated and remote modes #294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great set of initial test coverage!
This'll enable us to more easily test the final bundle to make sure we haven't introduced any breaking changes across the set of daemons we package, in both the remote and integrated mode.
Did an initial pass, main question is w.r.t the first few commits: is there anything fundamental preventing us from just using the lnd/lntest
package as is and not copying over all the structs? I ask as there're a few updates to the lntest
package itself queued up as lnd
PRs, and ideally we can just update our commit hash here vs needing to manually cherry-pick the set of changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tAck 🚀 Awesome auth coverage!
One thing i noticed was that make itest-only
only works if make build-itest
was run previously (ie the btcd-itest, litd-itest & lnd-itest binaries have been built already). So maybe building these binaries should be extracted into their own make file func so that both those methods can call it?
6ca49cc
to
00f3612
Compare
Thanks for the review and feedback. I'm going to look into back-porting some of the custom stuff we need to make a harness for |
Is this ready for another round of review? Want to make sure we're able to have proper itest coverage for the set of pending PRs that modify authentication. |
Yes, it's ready for another round. But merging is now blocked by the release of |
1d23f25
to
156731e
Compare
@guggero, remember to re-request review from reviewers when ready |
156731e
to
80cef9a
Compare
I refactored this PR to re-use some of the structs from |
473ed75
to
e5d5555
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 🚀 although , my comment from before remain. Cant run the tests with make itest-only
without first having run make itest
which does the whole app build first. This is because make itest
doesnt build the required btcd & lnd binaries by itself. Maybe it should?
The |
There are some lnd RPCs that don't require any authentication. Those weren't included in the main server RPC permission list, so we needed to add them separately to allow such calls to be made through the LiT RPC proxy.
e5d5555
to
73f51e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐡
This PR adds a full integration test suite for testing the different proxy and authentication modes of the built-in proxy.