nwaku/tests
Ivan FB 3e65cc18f6
REST store: get msgs from self node when store is mounted and no peerAddr is passed (#2387)
A node that handles REST-Store requests normally acts as a 
Store-client and therefore it retrieved the messages from another
Store-node.
With these changes, we allow a node with Store mounted, to retrieve
its messages. In other words, the node can act as a Store-server of
its messages.

* test_rest_store.nim: add a new test to validate that the self-node can
retrieve its messages to the REST client.

* rest/store/client.nim: add new proc to allow making a GET store
request without peerAddr.

* rest/store/handle.nim: add logic to handle requests that don't
provide peerAddr but the self/local node has Store mounted. In this case,
the self/local node will retrieve its locally stored messages.

* waku_store/self_req_handler.nim: logic to handle "store" requests
allowing the REST-store node to act as a Store-server node. The
'self_req_handler.nim' helps to bypass the store protocol and directly
retrieve the messages from the local/self node. I added this logic in
a separate file from 'protocol.nim' because it doesn't participate in
any libp2p communication.

* waku_store/protocol.nim: make 'queryHandler' attribute public so that
it can be used from the 'self_req_handler.nim' module.
2024-01-31 17:43:59 +01:00
..
common chore: message.nim - set max message size to 150KiB according to spec (#2298) 2024-01-03 13:11:50 +01:00
node fix: Fix test for filter client receiving messages after restart (#2360) 2024-01-19 13:05:06 +02:00
resources chore: message.nim - set max message size to 150KiB according to spec (#2298) 2024-01-03 13:11:50 +01:00
testlib feat: shard aware relay peer management (#2332) 2024-01-30 07:28:21 -05:00
waku_archive test(store): Implement store tests (#2235, 2240) 2023-12-19 15:38:43 +01:00
waku_core test(autosharding): Functional Tests (#2318) 2024-01-04 16:26:27 +01:00
waku_filter_v2 chore: Refactor of FilterV2 subscription management with Time-to-live maintenance (#2341) 2024-01-16 17:27:40 +01:00
waku_relay chore: improve POST /relay/v1/auto/messages/{topic} error handling (#2339) 2024-01-18 13:49:13 +01:00
waku_rln_relay chore(rln-relay-v2): use rln-v2 contract code (#2381) 2024-01-30 23:28:30 +05:30
waku_store chore: Refactor of FilterV2 subscription management with Time-to-live maintenance (#2341) 2024-01-16 17:27:40 +01:00
wakunode2 chore: improve POST /relay/v1/auto/messages/{topic} error handling (#2339) 2024-01-18 13:49:13 +01:00
wakunode_jsonrpc chore: improve POST /relay/v1/auto/messages/{topic} error handling (#2339) 2024-01-18 13:49:13 +01:00
wakunode_rest REST store: get msgs from self node when store is mounted and no peerAddr is passed (#2387) 2024-01-31 17:43:59 +01:00
all_tests_common.nim feat(coverage): Add simple coverage (#2067) 2023-09-27 15:53:23 +02:00
all_tests_waku.nim test(relay-filter): cleanup (#2138) 2023-11-15 16:15:38 +01:00
all_tests_wakunode2.nim feat(coverage): Add simple coverage (#2067) 2023-09-27 15:53:23 +02:00
nim.cfg feat(wakunode2): support log format format selection 2022-12-07 12:30:32 +01:00
postgres-docker-compose.yml Allow compile postgres tests only on Linux platforms (#1771) 2023-06-02 14:53:13 +02:00
test_all.nim feat(coverage): Add simple coverage (#2067) 2023-09-27 15:53:23 +02:00
test_helpers.nim feat(testlib): added global tests rng and waku2 sub-module 2023-02-13 11:43:49 +01:00
test_message_cache.nim chore(rest): refactor message cache (#2221) 2023-11-28 07:21:41 -05:00
test_peer_exchange.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_peer_manager.nim feat: shard aware relay peer management (#2332) 2024-01-30 07:28:21 -05:00
test_peer_storage.nim chore: refactoring peer storage (#2243) 2023-11-27 08:08:58 -05:00
test_peer_store_extended.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_utils_compat.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_waku_discv5.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_waku_dnsdisc.nim chore: Bump `nim-dnsdisc` (#2354) 2024-01-15 16:54:02 +02:00
test_waku_enr.nim fix: cluster id & sharding terminology (#2104) 2023-10-05 08:37:05 -04:00
test_waku_filter_legacy.nim feat: HTTP REST API: Filter support v2 (#1890) 2023-09-14 21:28:57 +02:00
test_waku_keepalive.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_waku_keystore.nim chore(rln-relay): use the only key from keystore if only 1 exists (#1984) 2023-09-04 15:46:44 +05:30
test_waku_keystore_keyfile.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_waku_lightpush.nim feat: shard aware relay peer management (#2332) 2024-01-30 07:28:21 -05:00
test_waku_metadata.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_waku_netconfig.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_waku_noise.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_waku_noise_sessions.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_waku_peer_exchange.nim chore: vendor bump for 0.23.0 (#2274) 2023-12-14 07:16:39 +01:00
test_waku_protobufs.nim feat: add new metadata protocol (#2062) 2023-10-11 08:58:45 +02:00
test_waku_rendezvous.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_waku_switch.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
test_wakunode.nim chore: improve POST /relay/v1/auto/messages/{topic} error handling (#2339) 2024-01-18 13:49:13 +01:00
test_wakunode_filter_legacy.nim chore: Refactor of FilterV2 subscription management with Time-to-live maintenance (#2341) 2024-01-16 17:27:40 +01:00
test_wakunode_lightpush.nim feat: shard aware relay peer management (#2332) 2024-01-30 07:28:21 -05:00