add curated clightning plugins
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from collections import OrderedDict
|
||||
import json
|
||||
|
||||
|
||||
def succeed(*cmds):
|
||||
@@ -138,6 +139,20 @@ def _():
|
||||
def _():
|
||||
assert_running("clightning")
|
||||
assert_matches("su operator -c 'lightning-cli getinfo' | jq", '"id"')
|
||||
if test_data["clightning-plugins"]:
|
||||
plugin_list = succeed("lightning-cli plugin list")
|
||||
plugins = json.loads(plugin_list)["plugins"]
|
||||
active = set(plugin["name"] for plugin in plugins if plugin["active"])
|
||||
failed = set(test_data["clightning-plugins"]).difference(active)
|
||||
if failed:
|
||||
raise Exception(
|
||||
f"The following clightning plugins are inactive:\n{failed}.\n\n"
|
||||
f"Output of 'lightning-cli plugin list':\n{plugin_list}"
|
||||
)
|
||||
else:
|
||||
log.log("Active clightning plugins:")
|
||||
for p in test_data["clightning-plugins"]:
|
||||
log.log(os.path.basename(p))
|
||||
|
||||
|
||||
@test("lnd")
|
||||
|
||||
Reference in New Issue
Block a user