Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fuzz testing RPC #2422 Fuzzer to test RPC connections, by sending: - [x] Invalid methods - [ ] Correct method with invalid formatted data - [x] Correct method with validly formatted random data How to run fuzzing ------------------- ```bach $ cd chain/jsonrpc $ cargo install cargo-fuzz # (if not installed) $ cargo fuzz run fuzz_target_1 ``` **Note** there is some bug in Rust, already fixed but still not included in nightly release, somehow related to MacOS Catalina, so fuzzing is possible only in Linux (definitely) and probably on Windows (haven't check). References: rust-lang/rust#63047 (comment) servo/core-foundation-rs#357 Test plan --------- 1. test query methods with valid random data and ensure RPC response status is 200 and response contains `error` key instead of `result`. 2. test for valid methods with invalid format of data. Should return 200 and `error` in response. 3. test for invalid methods
- Loading branch information