@@ -2,8 +2,11 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from typing import Mapping, Any
|
||||||
|
|
||||||
|
|
||||||
class TestLightning(unittest.TestCase):
|
class TestLightning(unittest.TestCase):
|
||||||
|
agents: Mapping[str, Mapping[str, Any]]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run_shell(args, timeout=30):
|
def run_shell(args, timeout=30):
|
||||||
@@ -103,13 +106,13 @@ class TestLightningSwapserver(TestLightning):
|
|||||||
|
|
||||||
class TestLightningWatchtower(TestLightning):
|
class TestLightningWatchtower(TestLightning):
|
||||||
agents = {
|
agents = {
|
||||||
'alice':{
|
'alice': {
|
||||||
},
|
},
|
||||||
'bob':{
|
'bob': {
|
||||||
'lightning_listen': 'localhost:9735',
|
'lightning_listen': 'localhost:9735',
|
||||||
'watchtower_url': 'http://wtuser:wtpassword@127.0.0.1:12345',
|
'watchtower_url': 'http://wtuser:wtpassword@127.0.0.1:12345',
|
||||||
},
|
},
|
||||||
'carol':{
|
'carol': {
|
||||||
'enable_plugin_watchtower': 'true',
|
'enable_plugin_watchtower': 'true',
|
||||||
'watchtower_user': 'wtuser',
|
'watchtower_user': 'wtuser',
|
||||||
'watchtower_password': 'wtpassword',
|
'watchtower_password': 'wtpassword',
|
||||||
@@ -123,15 +126,15 @@ class TestLightningWatchtower(TestLightning):
|
|||||||
|
|
||||||
class TestLightningJIT(TestLightning):
|
class TestLightningJIT(TestLightning):
|
||||||
agents = {
|
agents = {
|
||||||
'alice':{
|
'alice': {
|
||||||
'accept_zeroconf_channels': 'true',
|
'accept_zeroconf_channels': 'true',
|
||||||
},
|
},
|
||||||
'bob':{
|
'bob': {
|
||||||
'lightning_listen': 'localhost:9735',
|
'lightning_listen': 'localhost:9735',
|
||||||
'lightning_forward_payments': 'true',
|
'lightning_forward_payments': 'true',
|
||||||
'accept_zeroconf_channels': 'true',
|
'accept_zeroconf_channels': 'true',
|
||||||
},
|
},
|
||||||
'carol':{
|
'carol': {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,17 +144,17 @@ class TestLightningJIT(TestLightning):
|
|||||||
|
|
||||||
class TestLightningJITTrampoline(TestLightningJIT):
|
class TestLightningJITTrampoline(TestLightningJIT):
|
||||||
agents = {
|
agents = {
|
||||||
'alice':{
|
'alice': {
|
||||||
'use_gossip': 'false',
|
'use_gossip': 'false',
|
||||||
'accept_zeroconf_channels': 'true',
|
'accept_zeroconf_channels': 'true',
|
||||||
},
|
},
|
||||||
'bob':{
|
'bob': {
|
||||||
'lightning_listen': 'localhost:9735',
|
'lightning_listen': 'localhost:9735',
|
||||||
'lightning_forward_payments': 'true',
|
'lightning_forward_payments': 'true',
|
||||||
'lightning_forward_trampoline_payments': 'true',
|
'lightning_forward_trampoline_payments': 'true',
|
||||||
'accept_zeroconf_channels': 'true',
|
'accept_zeroconf_channels': 'true',
|
||||||
},
|
},
|
||||||
'carol':{
|
'carol': {
|
||||||
'use_gossip': 'false',
|
'use_gossip': 'false',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user