diff --git a/tests/bruno/e2e/open-use-close-a-channel/08-add-tlc-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/08-add-tlc-from-NODE1.bru deleted file mode 100644 index d73164b61..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/08-add-tlc-from-NODE1.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: add tlc from NODE1 - type: http - seq: 8 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "add_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "amount": "0xbebc200", - "payment_hash": "0xcb7bce98a778f130d34da522623d7e56705bddfe0dc4781bd2331211134a19a5", - "expiry": 40 - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result.tlc_id: isDefined -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); - bru.setVar("TLC_ID2", res.body.result.tlc_id); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/10-add-tlc-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/10-add-tlc-from-NODE1.bru deleted file mode 100644 index d587ba7f9..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/10-add-tlc-from-NODE1.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: add tlc from NODE1 - type: http - seq: 10 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "add_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "amount": "0xbebc200", - "payment_hash": "0xcb7bce98a778f130d34da522623d7e56705bddfe0dc4781bd2331211134a19a5", - "expiry": 40 - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result.tlc_id: isDefined -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); - bru.setVar("TLC_ID4", res.body.result.tlc_id); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/11-add-tlc-from-NODE3.bru b/tests/bruno/e2e/open-use-close-a-channel/11-add-tlc-from-NODE3.bru deleted file mode 100644 index 9316ffb9f..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/11-add-tlc-from-NODE3.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: add tlc from NODE3 - type: http - seq: 11 -} - -post { - url: {{NODE3_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "add_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "amount": "0x11e1a300", - "payment_hash": "0x29449e2cc6f56a691253fe88e3a378171c81573b09247010b4f1cb8c806e1e38", - "expiry": 40 - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result.tlc_id: isDefined -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); - bru.setVar("TLC_ID5", res.body.result.tlc_id); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/12-remove-tlc-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/12-remove-tlc-from-NODE1.bru deleted file mode 100644 index 0159fdcd6..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/12-remove-tlc-from-NODE1.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: remove tlc from NODE1 - type: http - seq: 12 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID1}}", - "reason": { - "payment_preimage": "0x0000000000000000000000000000000000000000000000000000000000000000" - } - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/13-remove-tlc-from-NODE3.bru b/tests/bruno/e2e/open-use-close-a-channel/13-remove-tlc-from-NODE3.bru deleted file mode 100644 index 607783bb1..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/13-remove-tlc-from-NODE3.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: remove tlc from NODE3 - type: http - seq: 13 -} - -post { - url: {{NODE3_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID2}}", - "reason": { - "error_code": "0x2a" - } - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/15-shutdown-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/15-shutdown-from-NODE1.bru deleted file mode 100644 index 123bac3f9..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/15-shutdown-from-NODE1.bru +++ /dev/null @@ -1,45 +0,0 @@ -meta { - name: send shutdown from NODE1 - type: http - seq: 15 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "shutdown_channel", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "close_script": { - "code_hash": "0x2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a", - "hash_type": "data", - "args": "0x0101010101010101010101010101010101010101" - }, - "fee": "0xbebc200" - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/16-shutdown-from-NODE3.bru b/tests/bruno/e2e/open-use-close-a-channel/16-shutdown-from-NODE3.bru deleted file mode 100644 index ba2116ad0..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/16-shutdown-from-NODE3.bru +++ /dev/null @@ -1,45 +0,0 @@ -meta { - name: send shutdown from NODE3 - type: http - seq: 16 -} - -post { - url: {{NODE3_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "shutdown_channel", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "close_script": { - "code_hash": "0x2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a", - "hash_type": "data", - "args": "0x0202020202020202020202020202020202020202" - }, - "fee": "0x0" - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/17-remove-tlc-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/17-remove-tlc-from-NODE1.bru deleted file mode 100644 index d11e68ac0..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/17-remove-tlc-from-NODE1.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: remove tlc from NODE1 - type: http - seq: 17 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID3}}", - "reason": { - "error_code": "0x2a" - } - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/18-remove-tlc-from-NODE3.bru b/tests/bruno/e2e/open-use-close-a-channel/18-remove-tlc-from-NODE3.bru deleted file mode 100644 index 4306509b6..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/18-remove-tlc-from-NODE3.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: remove tlc from NODE3 - type: http - seq: 18 -} - -post { - url: {{NODE3_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID4}}", - "reason": { - "error_code": "0x2a" - } - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/19-remove-tlc-error-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/19-remove-tlc-error-from-NODE1.bru deleted file mode 100644 index b7f087ff2..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/19-remove-tlc-error-from-NODE1.bru +++ /dev/null @@ -1,44 +0,0 @@ -meta { - name: remove tlc from NODE1 - type: http - seq: 19 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID5}}", - "reason": { - "payment_preimage": "0x0000000000000000000000000000000000000000000000000000000000000042" - } - } - ] - } -} - -assert { - res.body.error: isDefined - res.body.result: isUndefined -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); - console.log(res.body); -} diff --git a/tests/bruno/e2e/open-use-close-a-channel/20-remove-tlc-from-NODE1.bru b/tests/bruno/e2e/open-use-close-a-channel/20-remove-tlc-from-NODE1.bru deleted file mode 100644 index 20988dd79..000000000 --- a/tests/bruno/e2e/open-use-close-a-channel/20-remove-tlc-from-NODE1.bru +++ /dev/null @@ -1,43 +0,0 @@ -meta { - name: remove tlc from NODE1 - type: http - seq: 20 -} - -post { - url: {{NODE1_RPC_URL}} - body: json - auth: none -} - -headers { - Content-Type: application/json - Accept: application/json -} - -body:json { - { - "id": "42", - "jsonrpc": "2.0", - "method": "remove_tlc", - "params": [ - { - "channel_id": "{{CHANNEL_ID}}", - "tlc_id": "{{TLC_ID5}}", - "reason": { - "payment_preimage": "0x0000000000000000000000000000000000000000000000000000000000000002" - } - } - ] - } -} - -assert { - res.body.error: isUndefined - res.body.result: isNull -} - -script:post-response { - // Sleep for sometime to make sure current operation finishes before next request starts. - await new Promise(r => setTimeout(r, 100)); -}