From e73c9218d7a9fdeedf7908738efe7c61f57a650f Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 3 Jun 2020 16:34:10 +0200 Subject: [PATCH] itest: add REST API tests --- lntest/itest/lnd_test.go | 4 + lntest/itest/log_error_whitelist.txt | 4 +- lntest/itest/rest_api.go | 412 +++++++++++++++++++++++++++ lntest/node.go | 1 + 4 files changed, 420 insertions(+), 1 deletion(-) create mode 100644 lntest/itest/rest_api.go diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index 701349ed..215c710d 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -14665,6 +14665,10 @@ var testsCases = []*testCase{ name: "send multi path payment", test: testSendMultiPathPayment, }, + { + name: "REST API", + test: testRestApi, + }, } // TestLightningNetworkDaemon performs a series of integration tests amongst a diff --git a/lntest/itest/log_error_whitelist.txt b/lntest/itest/log_error_whitelist.txt index 4267a3ae..6541cab0 100644 --- a/lntest/itest/log_error_whitelist.txt +++ b/lntest/itest/log_error_whitelist.txt @@ -130,6 +130,8 @@