Ensure that we do not start clnrest unless a `clnrest-port` is configured.
(node_factory)
| 32 | |
| 33 | |
| 34 | def 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 | |
| 43 | def test_self_signed_certificates(node_factory): |