lightning-terminal/itest
Viktor Torstensson 067eeafd7e
itest: add kvdb -> SQL migration test
This commit implements an itest kvdb -> SQL migration itest. The
intention of the itest is to verify that the kvdb -> SQL migration flow
works for a litd node which has data inserted to the bbolt database.
To verify that, the minimum amount of data required to trigger the full
migration flow is inserted into the bbolt database, which is one object
to each database file. Those objects are:
* One account - accounts.DB file
* One session - session.db file
* One action - rules.db file

As the respective unit tests for each migration extensively tests that
data of all forms for each database file can successfully be migrated,
the itest only focuses on testing that the full migration flow works,
and leaves the responsibility of data variation coverage to the
respective unit test.

The test is executed in different steps, and uses RPCs to seed and
validate migration fixtures:
1. Start a node with a bbolt backend.
2. Insert one account, one session and one action via RPC.
3. Snapshot the inserted objects via RPC.
4. Restart with the configured SQL backend to trigger migration.
5. Query objects again via RPC.
6. Compare the new objects to the pre-migration snapshot.
7. Assert the migrated objects in SQL via direct queries, to verify that
it's actually the SQL database that contains the migrated objects.
2026-05-14 11:38:45 +02:00
..
assertions.go itest: add custom channel integration test 2024-12-19 21:21:39 +01:00
litd_accounts_test.go itest: formatting enhancements for tap payments 2025-10-15 11:07:21 +02:00
litd_firewall_test.go session: fix mailbox TLS ALPN regression 2026-04-05 17:21:21 -05:00
litd_migration_test.go itest: add kvdb -> SQL migration test 2026-05-14 11:38:45 +02:00
litd_mode_integrated_test.go session: fix mailbox TLS ALPN regression 2026-04-05 17:21:21 -05:00
litd_mode_remote_test.go itest: add a stateless_init test 2024-10-14 16:57:00 +02:00
litd_node.go itest: remove custom channels tests and backward compat infrastructure 2026-03-16 15:37:49 +01:00
litd_stateless_init_test.go itest: add a stateless_init test 2024-10-14 16:57:00 +02:00
litd_test.go itest: remove custom channels tests and backward compat infrastructure 2026-03-16 15:37:49 +01:00
litd_test_list_off_test.go multi: remove legacy // +build tag Lines 2025-11-25 01:38:22 +01:00
litd_test_list_on_test.go itest: add kvdb -> SQL migration test 2026-05-14 11:38:45 +02:00
log.go multi: update LND and friends 2025-03-26 09:20:52 -05:00
network_harness.go itest: remove custom channels tests and backward compat infrastructure 2026-03-16 15:37:49 +01:00
server_harness.go itest: export ServerHarness publicly 2023-05-11 00:55:14 +02:00
test_harness.go itest: remove custom channels tests and backward compat infrastructure 2026-03-16 15:37:49 +01:00