* Chore(filter v2) test updates (#811)
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* chore: rebase onto latest master
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* Fix error during rebase
* Sync filter tests with latest master
* Refactor context initialization for test
* test: Incorrect Subscribe Identifier refactored with custom subscribe
* test: refactor into multiple files
* test: Subscribe with multiple light nodes to one full node
* test: shared mode for full node creation
- test preview Subscribe fullNode to fullNode
* test: test Subscribe fullNode to fullNode
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
* string generators for testing
* fix CodeQL findings
* merge variants of UTF8 String generator into one
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
* Chore(filter v2) test updates (#811)
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* chore: rebase onto latest master
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* Fix error during rebase
* Sync filter tests with latest master
* Refactor context initialization for test
* test: Incorrect Subscribe Identifier refactored with custom subscribe
* test: refactor into multiple files
* test: Subscribe with multiple light nodes to one full node
* test: shared mode for full node creation
- test preview Subscribe fullNode to fullNode
* test: test Subscribe fullNode to fullNode
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
* test: unsubscribe all without content topics
* test: unsubscribe all without any filter specification
* test: move unsubscribe all tests to unsubscribe file
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
* refactor discovery and common service to separate package to remove package inter-dependencies
* relay on-demand discovery ,use proto to enr field mapping
* chore: no need to dial discovered peers as peermanager already does that
* on demand discovery for service peers during peer selection
* identify supported protocols for discovered peers and add to service slots
* fix: tests to use proper static sharding topics
* fix: random selection with default pubsubTopic
---------
Co-authored-by: richΛrd <info@richardramos.me>
* update relay REST API's to remove duplicate message cache, fix relay tests and admin test
* chore: enable REST and RPC unit tests
* update lightpush rest api to match yaml
* fix: filter rest unit test failures
* skipping legacy filter tests
* chore: add unit tests for autosharding relay REST API, fix success response (#868)
* Chore(filter v2) test updates (#811)
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* chore: rebase onto latest master
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* test: Test incorrect protocol identifiers
* fix: return errors in FilterSubscribeOption
* test: Test incorrect push identifier added
- test incorrect subscribe identifier separated
* test: Test Ping failure after unsubscription
* test: Test PubSub with single content topic
* test: Simplify test PubSub with single content topic
* test: Test with single pubsub and multiple content topics
* test: Test with multiple PubSub and multiple contentTopic
* test: Test with multiple overlaping contentTopics
- test contentTopics limit
* test: refactor tests to fix concurrent run errors
* test: Test subscription refresh
* test: Test error handling for subscribe
* test: Test subscription to multiple full nodes
* update test to fix#804
* Update waku/v2/protocol/filter/filter_test.go
Combine log messages
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Delete commented - temporary code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
fmt.Sprintf instead of "+" suffix => more performance and beauty
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Adjust comment with code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Combine multiple related log entries into one.
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Align comment with the code
Co-authored-by: richΛrd <info@richardramos.me>
* Update waku/v2/protocol/filter/filter_test.go
Use fmt.Sprintf() instead of "+" for more beauty and speed
Co-authored-by: richΛrd <info@richardramos.me>
* test: refactor tests with prepareData()
* Fix error during rebase
* Sync filter tests with latest master
* Refactor context initialization for test
* test: Incorrect Subscribe Identifier refactored with custom subscribe
* test: refactor into multiple files
* test: Subscribe with multiple light nodes to one full node
* test: shared mode for full node creation
- test preview Subscribe fullNode to fullNode
* test: test Subscribe fullNode to fullNode
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
* test: unsubscribe with single contentTopic
* test: extend test - unsubscribe with single contentTopic
* test: unsubscribe with multiple contentTopic
* test: unsubscribe with multiple pubSub/contentTopic
* test: refactor back to use waitForTimeout()
* test: unsubscribe error handling
---------
Co-authored-by: Richard Ramos <info@richardramos.me>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>