MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_no_auto_start

Function test_no_auto_start

tests/test_clnrest.py:34–40  ·  view source on GitHub ↗

Ensure that we do not start clnrest unless a `clnrest-port` is configured.

(node_factory)

Source from the content-addressed store, hash-verified

32
33
34def test_no_auto_start(node_factory):
35 """Ensure that we do not start clnrest unless a `clnrest-port` is configured."""
36 l1 = node_factory.get_node()
37 # This might happen really early!
38 l1.daemon.logsearch_start = 0
39 assert [p for p in l1.rpc.plugin('list')['plugins'] if 'clnrest' in p['name']] == []
40 assert l1.daemon.is_in_log(r'plugin-clnrest: Killing plugin: disabled itself at init: `clnrest-port` option is not configured')
41
42
43def test_self_signed_certificates(node_factory):

Callers

nothing calls this directly

Calls 3

pluginMethod · 0.80
is_in_logMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected