81 lines
16 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

DEBUG  tests.conftest:conftest.py:51 Running fixture setup: test_id
DEBUG  tests.conftest:conftest.py:57 Running test: test_filter_update_subscription_with_invalid_content_topic_format with id: 2025-12-24_04-13-39__4f7115db-1697-4410-a3d0-0dafa25ad435
DEBUG  src.steps.common:common.py:19 Running fixture setup: common_setup
DEBUG  src.steps.filter:filter.py:28 Running fixture setup: filter_setup
DEBUG  src.steps.filter:filter.py:34 Running fixture setup: setup_main_relay_node
DEBUG  src.node.docker_mananger:docker_mananger.py:19 Docker client initialized with image wakuorg/nwaku:latest
DEBUG  src.node.waku_node:waku_node.py:86 WakuNode instance initialized with log path ./log/docker/node1_2025-12-24_04-13-39__4f7115db-1697-4410-a3d0-0dafa25ad435__wakuorg_nwaku:latest.log
DEBUG  src.node.waku_node:waku_node.py:90 Starting Node...
DEBUG  src.node.docker_mananger:docker_mananger.py:22 Attempting to create or retrieve network waku
DEBUG  src.node.docker_mananger:docker_mananger.py:25 Network waku already exists
DEBUG  src.node.docker_mananger:docker_mananger.py:108 Generated random external IP 172.18.57.197
DEBUG  src.node.docker_mananger:docker_mananger.py:101 Generated ports ['37485', '37486', '37487', '37488', '37489']
DEBUG  src.node.waku_node:waku_node.py:439 RLN credentials were not set
INFO  src.node.waku_node:waku_node.py:176 RLN credentials not set or credential store not available, starting without RLN
DEBUG  src.node.waku_node:waku_node.py:178 Using volumes []
DEBUG  src.node.docker_mananger:docker_mananger.py:49 docker run -i -t -p 37485:37485 -p 37486:37486 -p 37487:37487 -p 37488:37488 -p 37489:37489 wakuorg/nwaku:latest --listen-address=0.0.0.0 --rest=true --rest-admin=true --websocket-support=true --log-level=TRACE --rest-relay-cache-capacity=100 --websocket-port=37487 --rest-port=37485 --tcp-port=37486 --discv5-udp-port=37488 --rest-address=0.0.0.0 --nat=extip:172.18.57.197 --peer-exchange=true --discv5-discovery=true --cluster-id=3 --nodekey=3f95aa003677a0a0b5db1a9adbfff3da555fb715fb9c32bd789bce82e2ec3dff --shard=0 --metrics-server=true --metrics-server-address=0.0.0.0 --metrics-server-port=37489 --metrics-logging=true --relay=true --filter=true
DEBUG  src.node.docker_mananger:docker_mananger.py:55 docker network connect --ip 172.18.57.197 waku 5c646b9755d467a72f99fe9886c59ce03a61443a33d7b1f64193f4e59ec2b40d
DEBUG  src.node.docker_mananger:docker_mananger.py:58 Container started with ID 5c646b9755d4. Setting up logs at ./log/docker/node1_2025-12-24_04-13-39__4f7115db-1697-4410-a3d0-0dafa25ad435__wakuorg_nwaku:latest.log
DEBUG  src.node.waku_node:waku_node.py:190 Started container from image wakuorg/nwaku:latest. REST: 37485
DEBUG  src.libs.common:common.py:47 Sleeping for 1 seconds
ERROR  src.node.docker_mananger:docker_mananger.py:89 Max retries reached for container f3fbf0c5f689. Exiting log stream.
ERROR  src.node.docker_mananger:docker_mananger.py:89 Max retries reached for container 26006b9068f1. Exiting log stream.
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X GET "http://127.0.0.1:37485/health" -H "Content-Type: application/json" -d 'None'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'{"nodeHealth":"READY","protocolsHealth":[{"Relay":"NOT_READY","desc":"No connected peers"},{"Rln Relay":"NOT_MOUNTED"},{"Lightpush":"NOT_MOUNTED"},{"Legacy Lightpush":"NOT_MOUNTED"},{"Filter":"NOT_READY","desc":"Relay is not ready, filter will not be able to sort out messages"},{"Store":"NOT_MOUNTED"},{"Legacy Store":"NOT_MOUNTED"},{"Peer Exchange":"READY"},{"Rendezvous":"NOT_READY","desc":"No Rendezvous peers are available yet"},{"Mix":"NOT_MOUNTED"},{"Lightpush Client":"NOT_READY","desc":"No Lightpush service peer available yet"},{"Legacy Lightpush Client":"NOT_READY","desc":"No Lightpush service peer available yet"},{"Store Client":"NOT_READY","desc":"No Store service peer available yet, neither Store service set up for the node"},{"Legacy Store Client":"NOT_READY","desc":"No Legacy Store service peers are available yet, neither Store service set up for the node"},{"Filter Client":"NOT_READY","desc":"No Filter service peer available yet"}]}'
INFO  src.node.waku_node:waku_node.py:287 Node protocols are initialized !!
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X GET "http://127.0.0.1:37485/debug/v1/info" -H "Content-Type: application/json" -d 'None'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'{"listenAddresses":["/ip4/172.18.57.197/tcp/37486/p2p/16Uiu2HAmGDdAUhBh9TgmArTrj9SzJ8wDgyqYB79oMqKWLcrFvwNf","/ip4/172.18.57.197/tcp/37487/ws/p2p/16Uiu2HAmGDdAUhBh9TgmArTrj9SzJ8wDgyqYB79oMqKWLcrFvwNf"],"enrUri":"enr:-L24QCJashqH3czZzoiMLhdTp5f1BkKOX0Ujuyc5yK0y8vhncM5I_g9ebabuI4OfrUWyOs9rPpXP8D94vCZTDQH-xUECgmlkgnY0gmlwhKwSOcWKbXVsdGlhZGRyc5YACASsEjnFBpJuAAoErBI5xQaSb90DgnJzhQADAQAAiXNlY3AyNTZrMaEDNO9FnVTwUtylVaKbwwOgINteet_Vg5S4cVP6g2adQoiDdGNwgpJug3VkcIKScIV3YWt1MgU"}'
INFO  src.node.waku_node:waku_node.py:292 REST service is ready !!
DEBUG  src.steps.filter:filter.py:39 Running fixture setup: setup_main_filter_node
DEBUG  src.node.docker_mananger:docker_mananger.py:19 Docker client initialized with image wakuorg/nwaku:latest
DEBUG  src.node.waku_node:waku_node.py:86 WakuNode instance initialized with log path ./log/docker/node2_2025-12-24_04-13-39__4f7115db-1697-4410-a3d0-0dafa25ad435__wakuorg_nwaku:latest.log
DEBUG  src.node.waku_node:waku_node.py:90 Starting Node...
DEBUG  src.node.docker_mananger:docker_mananger.py:22 Attempting to create or retrieve network waku
DEBUG  src.node.docker_mananger:docker_mananger.py:25 Network waku already exists
DEBUG  src.node.docker_mananger:docker_mananger.py:108 Generated random external IP 172.18.146.212
DEBUG  src.node.docker_mananger:docker_mananger.py:101 Generated ports ['20277', '20278', '20279', '20280', '20281']
DEBUG  src.node.waku_node:waku_node.py:439 RLN credentials were not set
INFO  src.node.waku_node:waku_node.py:176 RLN credentials not set or credential store not available, starting without RLN
DEBUG  src.node.waku_node:waku_node.py:178 Using volumes []
DEBUG  src.node.docker_mananger:docker_mananger.py:49 docker run -i -t -p 20277:20277 -p 20278:20278 -p 20279:20279 -p 20280:20280 -p 20281:20281 wakuorg/nwaku:latest --listen-address=0.0.0.0 --rest=true --rest-admin=true --websocket-support=true --log-level=TRACE --rest-relay-cache-capacity=100 --websocket-port=20279 --rest-port=20277 --tcp-port=20278 --discv5-udp-port=20280 --rest-address=0.0.0.0 --nat=extip:172.18.146.212 --peer-exchange=true --discv5-discovery=true --cluster-id=3 --nodekey=e0dbcd8a4aab2c0aaef13697fab9b2149985d4986d11f1ebeaca3f33c77daeaf --shard=0 --metrics-server=true --metrics-server-address=0.0.0.0 --metrics-server-port=20281 --metrics-logging=true --relay=false --discv5-bootstrap-node=enr:-L24QCJashqH3czZzoiMLhdTp5f1BkKOX0Ujuyc5yK0y8vhncM5I_g9ebabuI4OfrUWyOs9rPpXP8D94vCZTDQH-xUECgmlkgnY0gmlwhKwSOcWKbXVsdGlhZGRyc5YACASsEjnFBpJuAAoErBI5xQaSb90DgnJzhQADAQAAiXNlY3AyNTZrMaEDNO9FnVTwUtylVaKbwwOgINteet_Vg5S4cVP6g2adQoiDdGNwgpJug3VkcIKScIV3YWt1MgU --filternode=/ip4/172.18.57.197/tcp/37486/p2p/16Uiu2HAmGDdAUhBh9TgmArTrj9SzJ8wDgyqYB79oMqKWLcrFvwNf
DEBUG  src.node.docker_mananger:docker_mananger.py:55 docker network connect --ip 172.18.146.212 waku b7a297e9bcf085b363bb56ed5ef8eff3708fa9e142975be30d54904a4e6e5099
DEBUG  src.node.docker_mananger:docker_mananger.py:58 Container started with ID b7a297e9bcf0. Setting up logs at ./log/docker/node2_2025-12-24_04-13-39__4f7115db-1697-4410-a3d0-0dafa25ad435__wakuorg_nwaku:latest.log
DEBUG  src.node.waku_node:waku_node.py:190 Started container from image wakuorg/nwaku:latest. REST: 20277
DEBUG  src.libs.common:common.py:47 Sleeping for 1 seconds
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X GET "http://127.0.0.1:20277/health" -H "Content-Type: application/json" -d 'None'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'{"nodeHealth":"READY","protocolsHealth":[{"Relay":"NOT_MOUNTED"},{"Rln Relay":"NOT_MOUNTED"},{"Lightpush":"NOT_MOUNTED"},{"Legacy Lightpush":"NOT_MOUNTED"},{"Filter":"NOT_MOUNTED"},{"Store":"NOT_MOUNTED"},{"Legacy Store":"NOT_MOUNTED"},{"Peer Exchange":"READY"},{"Rendezvous":"NOT_READY","desc":"No Rendezvous peers are available yet"},{"Mix":"NOT_MOUNTED"},{"Lightpush Client":"NOT_READY","desc":"No Lightpush service peer available yet"},{"Legacy Lightpush Client":"NOT_READY","desc":"No Lightpush service peer available yet"},{"Store Client":"NOT_READY","desc":"No Store service peer available yet, neither Store service set up for the node"},{"Legacy Store Client":"NOT_READY","desc":"No Legacy Store service peers are available yet, neither Store service set up for the node"},{"Filter Client":"READY"}]}'
INFO  src.node.waku_node:waku_node.py:287 Node protocols are initialized !!
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X GET "http://127.0.0.1:20277/debug/v1/info" -H "Content-Type: application/json" -d 'None'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'{"listenAddresses":["/ip4/172.18.146.212/tcp/20278/p2p/16Uiu2HAmRs93pZePj67iBb4mhij7bP5rAeDrQd7oYnhE6XkQd4iC","/ip4/172.18.146.212/tcp/20279/ws/p2p/16Uiu2HAmRs93pZePj67iBb4mhij7bP5rAeDrQd7oYnhE6XkQd4iC"],"enrUri":"enr:-L24QMlAmlzli0Pg8oItR9ysUKg4DOcXgakZ3JLVFdoS_LLdCDvdeUNABqtlILyzDXokzc6r9lHruQKZUhOUT_qiLsYCgmlkgnY0gmlwhKwSktSKbXVsdGlhZGRyc5YACASsEpLUBk82AAoErBKS1AZPN90DgnJzhQADAQAAiXNlY3AyNTZrMaEDxES8S4eFpOxA_MEkjNvgGNcntG1yqkX5wzBx99BRxbGDdGNwgk82g3VkcIJPOIV3YWt1MgA"}'
INFO  src.node.waku_node:waku_node.py:292 REST service is ready !!
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X POST "http://127.0.0.1:20277/admin/v1/peers" -H "Content-Type: application/json" -d '["/ip4/172.18.57.197/tcp/37486/p2p/16Uiu2HAmGDdAUhBh9TgmArTrj9SzJ8wDgyqYB79oMqKWLcrFvwNf"]'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'OK'
DEBUG  src.steps.filter:filter.py:47 Running fixture setup: subscribe_main_nodes
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X POST "http://127.0.0.1:37485/relay/v1/subscriptions" -H "Content-Type: application/json" -d '["/waku/2/rs/3/1"]'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'OK'
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X POST "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "9fd4e494-bbd3-4269-a167-ac983e0f379d", "contentFilters": ["/test/1/waku-filter/proto"], "pubsubTopic": "/waku/2/rs/3/1"}'
INFO  src.node.api_clients.base_client:base_client.py:22 Response status code: 200. Response content: b'{"requestId":"9fd4e494-bbd3-4269-a167-ac983e0f379d","statusDesc":"OK"}'
DEBUG  tests.filter.test_subscribe_update:test_subscribe_update.py:87 Running test with contetn topic Empty string
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X PUT "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "1", "contentFilters": [{"description": "Empty string", "value": ""}], "pubsubTopic": "/waku/2/rs/3/1"}'
ERROR  src.node.api_clients.base_client:base_client.py:16 HTTP error occurred: 400 Client Error: Bad Request for url: http://127.0.0.1:20277/filter/v2/subscriptions. Response content: b'{"requestId":"unknown","statusDesc":"BAD_REQUEST: Failed to decode request: (status: 400 Bad Request, headers: , kind: Error, errobj: (status: 400 Bad Request, message: \\"Invalid content body, could not decode. Unable to deserialize data: \\", contentType: \\"text/plain\\"))"}'
DEBUG  tests.filter.test_subscribe_update:test_subscribe_update.py:87 Running test with contetn topic A dictionary
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X PUT "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "1", "contentFilters": [{"description": "A dictionary", "value": {"key": "YWFh"}}], "pubsubTopic": "/waku/2/rs/3/1"}'
ERROR  src.node.api_clients.base_client:base_client.py:16 HTTP error occurred: 400 Client Error: Bad Request for url: http://127.0.0.1:20277/filter/v2/subscriptions. Response content: b'{"requestId":"unknown","statusDesc":"BAD_REQUEST: Failed to decode request: (status: 400 Bad Request, headers: , kind: Error, errobj: (status: 400 Bad Request, message: \\"Invalid content body, could not decode. Unable to deserialize data: \\", contentType: \\"text/plain\\"))"}'
DEBUG  tests.filter.test_subscribe_update:test_subscribe_update.py:87 Running test with contetn topic An integer
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X PUT "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "1", "contentFilters": [{"description": "An integer", "value": 1234567890}], "pubsubTopic": "/waku/2/rs/3/1"}'
ERROR  src.node.api_clients.base_client:base_client.py:16 HTTP error occurred: 400 Client Error: Bad Request for url: http://127.0.0.1:20277/filter/v2/subscriptions. Response content: b'{"requestId":"unknown","statusDesc":"BAD_REQUEST: Failed to decode request: (status: 400 Bad Request, headers: , kind: Error, errobj: (status: 400 Bad Request, message: \\"Invalid content body, could not decode. Unable to deserialize data: \\", contentType: \\"text/plain\\"))"}'
DEBUG  tests.filter.test_subscribe_update:test_subscribe_update.py:87 Running test with contetn topic A list
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X PUT "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "1", "contentFilters": [{"description": "A list", "value": ["YWFh"]}], "pubsubTopic": "/waku/2/rs/3/1"}'
ERROR  src.node.api_clients.base_client:base_client.py:16 HTTP error occurred: 400 Client Error: Bad Request for url: http://127.0.0.1:20277/filter/v2/subscriptions. Response content: b'{"requestId":"unknown","statusDesc":"BAD_REQUEST: Failed to decode request: (status: 400 Bad Request, headers: , kind: Error, errobj: (status: 400 Bad Request, message: \\"Invalid content body, could not decode. Unable to deserialize data: \\", contentType: \\"text/plain\\"))"}'
DEBUG  tests.filter.test_subscribe_update:test_subscribe_update.py:87 Running test with contetn topic A bool
INFO  src.node.api_clients.base_client:base_client.py:37 curl -v -X PUT "http://127.0.0.1:20277/filter/v2/subscriptions" -H "Content-Type: application/json" -d '{"requestId": "1", "contentFilters": [{"description": "A bool", "value": true}], "pubsubTopic": "/waku/2/rs/3/1"}'
ERROR  src.node.api_clients.base_client:base_client.py:16 HTTP error occurred: 400 Client Error: Bad Request for url: http://127.0.0.1:20277/filter/v2/subscriptions. Response content: b'{"requestId":"unknown","statusDesc":"BAD_REQUEST: Failed to decode request: (status: 400 Bad Request, headers: , kind: Error, errobj: (status: 400 Bad Request, message: \\"Invalid content body, could not decode. Unable to deserialize data: \\", contentType: \\"text/plain\\"))"}'
DEBUG  tests.conftest:conftest.py:59 Running fixture teardown: test_setup
DEBUG  tests.conftest:conftest.py:83 Running fixture teardown: close_open_nodes
DEBUG  src.node.waku_node:waku_node.py:234 Stopping container with id 5c646b9755d4
DEBUG  src.node.waku_node:waku_node.py:241 Container stopped.
DEBUG  src.node.waku_node:waku_node.py:234 Stopping container with id b7a297e9bcf0
DEBUG  src.node.waku_node:waku_node.py:241 Container stopped.
DEBUG  tests.conftest:conftest.py:98 Running fixture teardown: check_waku_log_errors
DEBUG  src.node.docker_mananger:docker_mananger.py:144 No errors found in the waku logs.
DEBUG  src.node.docker_mananger:docker_mananger.py:144 No errors found in the waku logs.