[bisq-network/bisq] Refactor apitest for api calls to any daemon type (#4525)
Stan
notifications at github.com
Mon Sep 14 15:53:09 UTC 2020
These changes fix the test harness so test api calls can be made to any type of daemon (arbitrator, bob, alice), not just alice. A new `DisputeAgentRegistrationTest` case is included in these changes -- it needs to send requests to an arbitration daemon.
This PR should be reviewed & merged after [4524](https://github.com/bisq-network/bisq/pull/4524).
You can view, comment on, or merge this pull request online at:
https://github.com/bisq-network/bisq/pull/4525
-- Commit Summary --
* Move version service proto def to bottom of grpc.proto
* Add dispute agents service proto def to grpc.proto
* Add core impl for registering dispute agents
* Add GrpcDisputeAgentsService to GrpcServer
* Create GrpcDisputeAgentsService stub
* Replace "localhost" strings with InetAddress.getLoopbackAddress calls
* Refactor test cases to use arbitrary grpc stubs
* Add api dispute agent registration test case
* Bump version to 1.3.8
-- File Changes --
M apitest/scripts/mainnet-test.sh (4)
M apitest/src/main/java/bisq/apitest/config/ApiTestConfig.java (4)
M apitest/src/test/java/bisq/apitest/ApiTestCase.java (27)
M apitest/src/test/java/bisq/apitest/method/GetBalanceTest.java (4)
M apitest/src/test/java/bisq/apitest/method/GetVersionTest.java (3)
M apitest/src/test/java/bisq/apitest/method/MethodTest.java (27)
A apitest/src/test/java/bisq/apitest/method/RegisterDisputeAgentsTest.java (108)
M apitest/src/test/java/bisq/apitest/method/WalletProtectionTest.java (51)
M apitest/src/test/java/bisq/apitest/scenario/FundWalletScenarioTest.java (8)
M cli/src/main/java/bisq/cli/GrpcStubs.java (3)
M core/src/main/java/bisq/core/api/CoreApi.java (14)
A core/src/main/java/bisq/core/api/CoreDisputeAgentsService.java (145)
A daemon/src/main/java/bisq/daemon/grpc/GrpcDisputeAgentsService.java (45)
M daemon/src/main/java/bisq/daemon/grpc/GrpcServer.java (2)
M proto/src/main/proto/grpc.proto (30)
-- Patch Links --
https://github.com/bisq-network/bisq/pull/4525.patch
https://github.com/bisq-network/bisq/pull/4525.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200914/8a0cab89/attachment.html>
More information about the bisq-github
mailing list