-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Unit testing (Sentinel/Beacon API) (#9387)
## Lists of Bugs found (and fixed) * version in wrong format. * Avoid crash in validators endpoint * Fixed formatting in the archive node sanitizer * Tracking MetadataV2/MetadataV1/Ping with DiscV5. * More relevant responses to Status and MetadataV2/V1
- Loading branch information
1 parent
63a1422
commit 66b0aa7
Showing
39 changed files
with
1,459 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tests: | ||
- name: head_expected_withdrawals | ||
actual: | ||
handler: i | ||
path: /eth/v1/builder/states/head/expected_withdrawals | ||
expect: | ||
file: "expected_withdrawals_head" | ||
fs: td | ||
- name: head_expected_avg | ||
actual: | ||
handler: i | ||
path: /eth/v1/builder/states/8320/expected_withdrawals | ||
expect: | ||
file: "expected_withdrawals_avg" | ||
fs: td |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
tests: | ||
- name: head_validators_all | ||
actual: | ||
handler: i | ||
path: /eth/v1/beacon/states/head/validators | ||
expect: | ||
file: "head_validators_all" | ||
fs: td | ||
- name: validators_some | ||
actual: | ||
handler: i | ||
path: /eth/v1/beacon/states/159/validators?id=0,1,2,0xb0e7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc&status=active | ||
expect: | ||
file: "validators_some" | ||
fs: td | ||
- name: validator | ||
actual: | ||
handler: i | ||
path: /eth/v1/beacon/states/159/validators/0xb0e7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc | ||
expect: | ||
file: "validator_1" | ||
fs: td | ||
- name: validator_not_found | ||
actual: | ||
handler: i | ||
path: /eth/v1/beacon/states/159/validators/0xffe7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc | ||
compare: | ||
exprs: | ||
- "actual_code==404" | ||
- name: head_validators_balances | ||
actual: | ||
handler: i | ||
path: /eth/v1/beacon/states/head/validator_balances | ||
expect: | ||
file: "head_validators_balances" | ||
fs: td |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.