Skip to content

Commit

Permalink
Complete SignedSSVMessage tests (#441)
Browse files Browse the repository at this point in the history
* Add SignedSSVMessage missing tests

* Rename file according to test name

* Add missing SignedSSVMessages tests in qbft

* Add missing SignedSSVMessages tests in ssv postconsensus

* Add missing SignedSSVMessages tests in ssv preconsensus

* Generate JSON tests

* Remove SignedSSVMessage tests from QBFT/messages

* Add SignedSSVMessage validation tests in SSV/Runner/Consensus

* Generate JSON tests

* Generate JSON tests
  • Loading branch information
MatheusFranco99 authored Jul 3, 2024
1 parent c31ad31 commit 981a403
Show file tree
Hide file tree
Showing 148 changed files with 38,835 additions and 12 deletions.
1 change: 1 addition & 0 deletions qbft/spectest/all_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ var AllTests = []tests.TestF{
messages.ProposeDataEncoding,
messages.SignedMsgNoSigners,
messages.SignedMsgDuplicateSigners,

messages.SignedMsgMultiSigners,
messages.GetRoot,
messages.RoundChangeJustificationsUnmarshalling,
Expand Down
15 changes: 15 additions & 0 deletions ssv/spectest/all_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ var AllTests = []tests.TestF{
postconsensus.PartialInvalidRootQuorumThenValidQuorum,
postconsensus.PartialInvalidSigQuorumThenValidQuorum,
postconsensus.MixedCommittees,
postconsensus.InvalidSignedMessageNoSignature,
postconsensus.InvalidSignedMessageEmptySignature,
postconsensus.InvalidSignedMessageDifferentLength,
postconsensus.InvalidSignedMessageNoSigners,

newduty.ConsensusNotStarted,
newduty.NotDecided,
Expand Down Expand Up @@ -102,6 +106,13 @@ var AllTests = []tests.TestF{
consensus.ValidMessage,
consensus.InvalidSignature,
consensus.DecidedSlashableAttestation,
consensus.NoSigners,
consensus.NonUniqueSigners,
consensus.ZeroSigner,
consensus.NoSignatures,
consensus.EmptySignature,
consensus.SignersAndSignaturesWithDifferentLength,
consensus.NilSSVMessage,

synccommitteeaggregator.SomeAggregatorQuorum,
synccommitteeaggregator.NoneAggregatorQuorum,
Expand Down Expand Up @@ -141,6 +152,10 @@ var AllTests = []tests.TestF{
preconsensus.InvalidQuorumThenValidQuorum,
preconsensus.InconsistentOperatorSigner,
preconsensus.NilSSVMessage,
preconsensus.InvalidSignedMessageNoSigners,
preconsensus.InvalidSignedMessageNoSignatures,
preconsensus.InvalidSignedMessageEmptySignature,
preconsensus.InvalidSignedMessageDifferentLength,

valcheckduty.WrongValidatorIndex,
valcheckduty.WrongValidatorPK,
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 981a403

Please sign in to comment.