-
Notifications
You must be signed in to change notification settings - Fork 24
/
all_tests.go
192 lines (177 loc) · 6.72 KB
/
all_tests.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package spectest
import (
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests"
committeemultipleduty "github.com/ssvlabs/ssv-spec/ssv/spectest/tests/committee/multipleduty"
committeesingleduty "github.com/ssvlabs/ssv-spec/ssv/spectest/tests/committee/singleduty"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/dutyexe"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/partialsigcontainer"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/consensus"
runnerconstruction "github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/construction"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/duties/newduty"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/duties/proposer"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/duties/synccommitteeaggregator"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/postconsensus"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/runner/preconsensus"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/valcheck/valcheckattestations"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/valcheck/valcheckduty"
"github.com/ssvlabs/ssv-spec/ssv/spectest/tests/valcheck/valcheckproposer"
)
var AllTests = []tests.TestF{
runner.FullHappyFlow,
postconsensus.TooManyRoots,
postconsensus.TooFewRoots,
postconsensus.UnorderedExpectedRoots,
postconsensus.UnknownSigner,
postconsensus.InconsistentBeaconSigner,
postconsensus.PostFinish,
postconsensus.NoRunningDuty,
postconsensus.InvalidMessageSignature,
postconsensus.InvalidBeaconSignatureInQuorum,
postconsensus.DuplicateMsgDifferentRoots,
postconsensus.DuplicateMsgDifferentRootsThenQuorum,
postconsensus.DuplicateMsg,
postconsensus.InvalidExpectedRoot,
postconsensus.PreDecided,
postconsensus.PostQuorum,
postconsensus.InvalidMessage,
postconsensus.InvalidOperatorSignature,
postconsensus.InvalidMessageSlot,
postconsensus.ValidMessage,
postconsensus.ValidMessage7Operators,
postconsensus.ValidMessage10Operators,
postconsensus.ValidMessage13Operators,
postconsensus.Quorum,
postconsensus.Quorum7Operators,
postconsensus.Quorum10Operators,
postconsensus.Quorum13Operators,
postconsensus.InvalidDecidedValue,
postconsensus.InvalidThenQuorum,
postconsensus.InvalidQuorumThenValidQuorum,
postconsensus.InconsistentOperatorSigner,
postconsensus.NilSSVMessage,
postconsensus.InvalidValidatorIndex,
postconsensus.InvalidValidatorIndexQuorum,
postconsensus.InvalidAndValidValidatorIndexesQuorum,
postconsensus.PartialInvalidRootQuorumThenValidQuorum,
postconsensus.PartialInvalidSigQuorumThenValidQuorum,
postconsensus.MixedCommittees,
postconsensus.InvalidSignedMessageNoSignature,
postconsensus.InvalidSignedMessageEmptySignature,
postconsensus.InvalidSignedMessageDifferentLength,
postconsensus.InvalidSignedMessageNoSigners,
newduty.ConsensusNotStarted,
newduty.NotDecided,
newduty.PostDecided,
newduty.Finished,
newduty.Valid,
newduty.PostWrongDecided,
newduty.PostInvalidDecided,
newduty.PostFutureDecided,
newduty.DuplicateDutyFinished,
newduty.DuplicateDutyNotFinished,
newduty.FirstHeight,
committeesingleduty.StartDuty,
committeesingleduty.StartNoDuty,
committeesingleduty.ValidBeaconVote,
committeesingleduty.WrongBeaconVote,
committeesingleduty.Decided,
committeesingleduty.HappyFlow,
committeesingleduty.PastMessageDutyNotFinished,
committeesingleduty.PastMessageDutyFinished,
committeesingleduty.PastMessageDutyDoesNotExist,
committeesingleduty.ProposalWithConsensusData,
committeesingleduty.WrongMessageID,
committeesingleduty.StartWithNoSharesForDuty,
committeesingleduty.MissingSomeShares,
committeemultipleduty.SequencedDecidedDuties,
committeemultipleduty.SequencedHappyFlowDuties,
committeemultipleduty.ShuffledDecidedDuties,
committeemultipleduty.ShuffledHappyFlowDutiesWithTheSameValidators,
committeemultipleduty.ShuffledHappyFlowDutiesWithDifferentValidators,
committeemultipleduty.FailedThanSuccessfulDuties,
consensus.FutureDecidedNoInstance,
consensus.FutureDecided,
consensus.InvalidDecidedValue,
consensus.FutureMessage,
consensus.PastMessage,
consensus.PostFinish,
consensus.PostDecided,
consensus.ValidDecided,
consensus.ValidDecided7Operators,
consensus.ValidDecided10Operators,
consensus.ValidDecided13Operators,
consensus.ValidMessage,
consensus.InvalidSignature,
consensus.DecidedSlashableAttestation,
consensus.NoSigners,
consensus.NonUniqueSigners,
consensus.ZeroSigner,
consensus.NoSignatures,
consensus.EmptySignature,
consensus.SignersAndSignaturesWithDifferentLength,
consensus.NilSSVMessage,
synccommitteeaggregator.SomeAggregatorQuorum,
synccommitteeaggregator.NoneAggregatorQuorum,
synccommitteeaggregator.AllAggregatorQuorum,
proposer.ProposeBlindedBlockDecidedRegular,
proposer.ProposeRegularBlockDecidedBlinded,
proposer.BlindedRunnerAcceptsNormalBlock,
proposer.NormalProposerAcceptsBlindedBlock,
preconsensus.NoRunningDuty,
preconsensus.TooFewRoots,
preconsensus.TooManyRoots,
preconsensus.UnorderedExpectedRoots,
preconsensus.InvalidSignedMessage,
preconsensus.InvalidOperatorSignature,
preconsensus.InvalidExpectedRoot,
preconsensus.DuplicateMsg,
preconsensus.DuplicateMsgDifferentRoots,
preconsensus.PostFinish,
preconsensus.PostDecided,
preconsensus.PostQuorum,
preconsensus.Quorum,
preconsensus.Quorum7Operators,
preconsensus.Quorum10Operators,
preconsensus.Quorum13Operators,
preconsensus.ValidMessage,
preconsensus.InvalidMessageSlot,
preconsensus.ValidMessage7Operators,
preconsensus.ValidMessage10Operators,
preconsensus.ValidMessage13Operators,
preconsensus.InconsistentBeaconSigner,
preconsensus.UnknownSigner,
preconsensus.InvalidBeaconSignatureInQuorum,
preconsensus.InvalidMessageSignature,
preconsensus.InvalidThenQuorum,
preconsensus.InvalidQuorumThenValidQuorum,
preconsensus.InconsistentOperatorSigner,
preconsensus.NilSSVMessage,
preconsensus.InvalidSignedMessageNoSigners,
preconsensus.InvalidSignedMessageNoSignatures,
preconsensus.InvalidSignedMessageEmptySignature,
preconsensus.InvalidSignedMessageDifferentLength,
valcheckduty.WrongValidatorIndex,
valcheckduty.WrongValidatorPK,
valcheckduty.WrongDutyType,
valcheckduty.FarFutureDutySlot,
valcheckattestations.Slashable,
valcheckattestations.SourceHigherThanTarget,
valcheckattestations.FarFutureTarget,
valcheckattestations.BeaconVoteDataNil,
valcheckattestations.Valid,
valcheckattestations.MinoritySlashable,
valcheckattestations.MajoritySlashable,
valcheckattestations.ValidNonSlashableSlot,
valcheckproposer.BlindedBlock,
dutyexe.WrongDutyRole,
dutyexe.WrongDutyPubKey,
partialsigcontainer.OneSignature,
partialsigcontainer.Quorum,
partialsigcontainer.Duplicate,
partialsigcontainer.DuplicateQuorum,
partialsigcontainer.Invalid,
runnerconstruction.OneShare,
runnerconstruction.NoShares,
runnerconstruction.ManyShares,
}