diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 112a4eef..15d3e655 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -92,10 +92,6 @@ jobs: testLsps2GetVersions, testLsps2GetInfo, testLsps2Buy, - testLsps2HappyFlow, - testLsps2Cltv, - testLsps2NoBalance, - testLsps2ZeroConfUtxo, testOpenZeroConfChannelOnReceive, testOpenZeroConfSingleHtlc, testZeroReserve, @@ -123,6 +119,33 @@ jobs: - lsp: CLN client: LND + run-lsps2-test: + runs-on: ubuntu-22.04 + needs: + - setup-itest + - setup-bitcoin-core + - setup-lnd-client + - setup-lnd-lsp + - setup-cln + - build-lspd + name: test ${{ matrix.lsp }}-lsp ${{ matrix.client }}-client ${{ matrix.test }} + strategy: + max-parallel: 4 + matrix: + test: [ + testLsps2HappyFlow, + testLsps2Cltv, + testLsps2NoBalance, + testLsps2ZeroConfUtxo, + ] + lsp: [ + LND, + CLN + ] + client: [ + CLN + ] + steps: - name: Checkout uses: actions/checkout@v3 diff --git a/itest/lspd_test.go b/itest/lspd_test.go index a46d6c2e..4506b288 100644 --- a/itest/lspd_test.go +++ b/itest/lspd_test.go @@ -18,8 +18,14 @@ func TestLspd(t *testing.T) { return } testCases := allTestCases + var lndLndTestCases []*testCase + for _, c := range testCases { + if !c.isLsps2 { + lndLndTestCases = append(lndLndTestCases, c) + } + } runTests(t, testCases, "LND-lsp-CLN-client", lndLspFunc, clnClientFunc) - runTests(t, testCases, "LND-lsp-LND-client", legacyOnionLndLspFunc, lndClientFunc) + runTests(t, lndLndTestCases, "LND-lsp-LND-client", legacyOnionLndLspFunc, lndClientFunc) runTests(t, testCases, "CLN-lsp-CLN-client", clnLspFunc, clnClientFunc) } @@ -117,6 +123,7 @@ type testCase struct { name string test func(t *testParams) skipCreateLsp bool + isLsps2 bool timeout time.Duration } @@ -195,20 +202,24 @@ var allTestCases = []*testCase{ test: testLsps2Buy, }, { - name: "testLsps2HappyFlow", - test: testLsps2HappyFlow, + name: "testLsps2HappyFlow", + test: testLsps2HappyFlow, + isLsps2: true, }, { - name: "testLsps2Cltv", - test: testLsps2Cltv, + name: "testLsps2Cltv", + test: testLsps2Cltv, + isLsps2: true, }, { - name: "testLsps2NoBalance", - test: testLsps2NoBalance, + name: "testLsps2NoBalance", + test: testLsps2NoBalance, + isLsps2: true, }, { name: "testLsps2ZeroConfUtxo", test: testLsps2ZeroConfUtxo, + isLsps2: true, skipCreateLsp: true, }, }