rgb-cln/tests
Vincenzo Palazzo fca62113f5 plugin: fetchinvoice: set the quantity in invreq
While the user trying to fetch an invoice by specifing the quantity we do
not work as expected.

Running the command

```
lightning-cli fetchinvoice -k offer='lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqffqszsk2p6hycmgv9ek2grpyphxjcm9ypmkjer8v46pyzmhd9jxwet5wvhxxmmdzsqs593pq0ylsvakdua5h976f4g3eautgjt3udvtyga47eaw7339sjrhpwpwz' quantity=2
```

and we answer back with

```json
{
   "code": -32602,
   "message": "quantity parameter required"
}
```

This is caused because we forget to bind the `quanity` field from the
RPC into the `invrequest`.

Reported-by: @aaronbarnardsound
Link: https://github.com/ElementsProject/lightning/issues/6089
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Changelog-EXPERIMENTAL: fetchinvoice: fix: do not ignore the `quantity` field
into the invreq field.
2023-03-20 20:25:02 +00:00
..
data upgradewallet: JSONRPC call to update p2sh outputs to a native segwit 2023-02-04 15:31:16 +10:30
fuzz tests/fuzz: don't pull in JSON common at all. 2022-11-09 20:25:58 +10:30
plugins libplugin: don't spew datastore errors to LOG_DEBUG. 2023-02-11 12:22:40 -06:00
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
fixtures.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
test_bookkeeper.py dual-fund: remove anchor assumption for all dual-funded channels 2023-02-04 15:31:16 +10:30
test_cln_rs.py ci: Use bzip2 and release to reduce artifact size 2023-01-16 13:53:48 +10:30
test_closing.py pytest: fix flake in test_closing_disconnected_notify 2023-02-06 18:51:44 +10:30
test_connection.py pytest: listpeers new attribute num_channels 2023-02-07 14:46:04 -06:00
test_db.py test_backfill_scriptpubkeys: stop first cln node before second sub-test 2023-03-20 10:47:29 +10:30
test_gossip.py pytest: remove zombie test. 2023-03-06 16:15:22 -06:00
test_invoices.py lightningd: Add `signinvoice` to sign a BOLT11 invoice. 2023-02-06 15:54:32 -06:00
test_misc.py lightningd: remove deprecated behavior where checkmessage would fail quietly. 2023-03-18 15:55:49 +10:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py test (df): check 'require-confirmed-inputs' for v2 opens 2023-02-07 21:03:36 -06:00
test_pay.py plugin: fetchinvoice: set the quantity in invreq 2023-03-20 20:25:02 +00:00
test_plugin.py pytest: remove openchannel('v2') marker from test_sql 2023-02-28 14:11:12 -06:00
test_wallet.py upgradewallet: JSONRPC call to update p2sh outputs to a native segwit 2023-02-04 15:31:16 +10:30
utils.py More accurate elements commitment tx size estimation 2023-02-06 18:50:26 -06:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30