Skip to content

Commit 2992815

Browse files
committed
tests: skip splicing / dual-funding tests when VLS_SKIP_SPLICE_TESTS
1 parent 1671af4 commit 2992815

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

tests/test_connection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ def test_disconnect_fundee(node_factory):
584584
assert len(l2.rpc.listpeers()) == 1
585585

586586

587+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
587588
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
588589
@pytest.mark.openchannel('v2')
589590
def test_disconnect_fundee_v2(node_factory):
@@ -660,6 +661,7 @@ def test_disconnect_half_signed_v2(node_factory):
660661
assert len(l1.rpc.listpeerchannels(l2.info['id'])['channels']) == 1
661662

662663

664+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
663665
@pytest.mark.openchannel('v1')
664666
@pytest.mark.openchannel('v2')
665667
def test_reconnect_signed(node_factory):
@@ -1212,7 +1214,8 @@ def test_v2_open(node_factory, bitcoind, chainparams):
12121214
result = l1.rpc.waitsendpay(p['payment_hash'])
12131215
assert(result['status'] == 'complete')
12141216

1215-
1217+
# policy failed: policy-onchain-no-channel-push validate_onchain_tx: channel push not allowed: dual-funding not supported yet
1218+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
12161219
@pytest.mark.openchannel('v1')
12171220
def test_funding_push(node_factory, bitcoind, chainparams):
12181221
""" Try to push peer some sats """
@@ -1836,6 +1839,7 @@ def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
18361839
l1.rpc.pay(inv)
18371840

18381841

1842+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
18391843
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
18401844
@pytest.mark.openchannel('v2')
18411845
def test_multifunding_v2_exclusive(node_factory, bitcoind):

tests/test_opening.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def test_v2_open_sigs_reconnect_2(node_factory, bitcoind):
172172
l2.daemon.wait_for_log(r'to CHANNELD_NORMAL')
173173

174174

175+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
175176
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
176177
@pytest.mark.openchannel('v2')
177178
def test_v2_open_sigs_reconnect_1(node_factory, bitcoind):
@@ -334,6 +335,7 @@ def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind):
334335
l1.daemon.wait_for_log(r'to CHANNELD_NORMAL')
335336

336337

338+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
337339
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
338340
@pytest.mark.openchannel('v2')
339341
def test_v2_rbf_single(node_factory, bitcoind, chainparams):
@@ -515,6 +517,7 @@ def test_v2_rbf_abort_retry(node_factory, bitcoind, chainparams):
515517
assert not l2.daemon.is_in_log('WIRE_CHANNEL_REESTABLISH')
516518

517519

520+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
518521
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
519522
@pytest.mark.openchannel('v2')
520523
def test_v2_rbf_abort_channel_opens(node_factory, bitcoind, chainparams):
@@ -670,6 +673,7 @@ def test_v2_rbf_liquidity_ad(node_factory, bitcoind, chainparams):
670673
l1.daemon.wait_for_log('State changed from CLOSINGD_SIGEXCHANGE to CLOSINGD_COMPLETE')
671674

672675

676+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
673677
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
674678
@pytest.mark.openchannel('v2')
675679
def test_v2_rbf_multi(node_factory, bitcoind, chainparams):
@@ -860,6 +864,7 @@ def test_rbf_reconnect_ack(node_factory, bitcoind, chainparams):
860864
l1.rpc.openchannel_bump(chan_id, chan_amount, initpsbt['psbt'])
861865

862866

867+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
863868
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
864869
@pytest.mark.openchannel('v2')
865870
def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
@@ -981,6 +986,7 @@ def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
981986
l2.daemon.wait_for_log(r'to CHANNELD_NORMAL')
982987

983988

989+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
984990
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
985991
@pytest.mark.openchannel('v2')
986992
def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
@@ -1062,6 +1068,7 @@ def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
10621068
assert l1_funding_txid == l2_funding_txid
10631069

10641070

1071+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
10651072
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
10661073
@pytest.mark.openchannel('v2')
10671074
def test_rbf_to_chain_before_commit(node_factory, bitcoind, chainparams):
@@ -1163,6 +1170,7 @@ def test_rbf_no_overlap(node_factory, bitcoind, chainparams):
11631170
l1.rpc.openchannel_update(chan_id, bump['psbt'])
11641171

11651172

1173+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
11661174
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
11671175
@pytest.mark.openchannel('v2')
11681176
def test_rbf_fails_to_broadcast(node_factory, bitcoind, chainparams):
@@ -1244,6 +1252,7 @@ def run_retry():
12441252
assert last_txs['tx']
12451253

12461254

1255+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
12471256
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
12481257
@pytest.mark.openchannel('v2')
12491258
def test_rbf_broadcast_close_inflights(node_factory, bitcoind, chainparams):
@@ -1319,6 +1328,7 @@ def run_retry():
13191328
assert inflights[1]['scratch_txid'] not in bitcoind.rpc.getrawmempool()
13201329

13211330

1331+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
13221332
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
13231333
@pytest.mark.openchannel('v2')
13241334
def test_rbf_non_last_mined(node_factory, bitcoind, chainparams):
@@ -1419,6 +1429,7 @@ def censoring_sendrawtx(r):
14191429
l1.daemon.wait_for_log(r'to ONCHAIN')
14201430

14211431

1432+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
14221433
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
14231434
@pytest.mark.openchannel('v2')
14241435
def test_funder_options(node_factory, bitcoind):
@@ -1485,6 +1496,8 @@ def test_funder_options(node_factory, bitcoind):
14851496
assert chan_info['funding']['local_funds_msat'] == Millisatoshi('1000000000msat')
14861497

14871498

1499+
# policy-onchain-no-fund-inbound validate_onchain_tx: can't sign for inbound channel: dual-funding not supported yet
1500+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
14881501
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
14891502
def test_funder_contribution_limits(node_factory, bitcoind):
14901503
opts = {'experimental-dual-fund': None,
@@ -2325,6 +2338,7 @@ def _no_utxo_response(r):
23252338
wait_for(lambda: l2.rpc.listpeerchannels()['channels'] == [])
23262339

23272340

2341+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
23282342
@pytest.mark.openchannel('v2')
23292343
def test_openchannel_no_unconfirmed_inputs_accepter(node_factory, bitcoind):
23302344
""" If the accepter flags 'require-confirmed-inputs' for an open,

tests/test_splicing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
)
1010

1111

12+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
1213
@pytest.mark.openchannel('v1')
1314
@pytest.mark.openchannel('v2')
1415
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -48,6 +49,7 @@ def test_splice(node_factory, bitcoind):
4849
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
4950

5051

52+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
5153
@pytest.mark.openchannel('v1')
5254
@pytest.mark.openchannel('v2')
5355
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -106,6 +108,7 @@ def test_splice_gossip(node_factory, bitcoind):
106108
assert not l2.daemon.is_in_log("invalid local_channel_announcement")
107109

108110

111+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
109112
@pytest.mark.openchannel('v1')
110113
@pytest.mark.openchannel('v2')
111114
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -141,6 +144,7 @@ def test_splice_listnodes(node_factory, bitcoind):
141144
assert len(l2.rpc.listnodes()['nodes']) == 2
142145

143146

147+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
144148
@pytest.mark.openchannel('v1')
145149
@pytest.mark.openchannel('v2')
146150
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -177,6 +181,7 @@ def test_splice_out(node_factory, bitcoind):
177181
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
178182

179183

184+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
180185
@pytest.mark.openchannel('v1')
181186
@pytest.mark.openchannel('v2')
182187
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -288,6 +293,7 @@ def test_commit_crash_splice(node_factory, bitcoind):
288293
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
289294

290295

296+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
291297
@pytest.mark.openchannel('v1')
292298
@pytest.mark.openchannel('v2')
293299
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')

tests/test_splicing_disconnect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)
99

1010

11+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
1112
@pytest.mark.openchannel('v1')
1213
@pytest.mark.openchannel('v2')
1314
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -63,6 +64,7 @@ def test_splice_disconnect_sig(node_factory, bitcoind):
6364
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
6465

6566

67+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
6668
@pytest.mark.openchannel('v1')
6769
@pytest.mark.openchannel('v2')
6870
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')

0 commit comments

Comments
 (0)