forked from TrueCloudLab/frostfs-api-go
state: implement SignedDataSource on ChangeStateRequest message
This commit is contained in:
parent
5545b25a95
commit
ab198b4049
4 changed files with 89 additions and 0 deletions
|
@ -47,6 +47,18 @@ func TestRequestSign(t *testing.T) {
|
|||
return new(DumpVarsRequest)
|
||||
},
|
||||
},
|
||||
{
|
||||
constructor: func() sigType {
|
||||
return new(ChangeStateRequest)
|
||||
},
|
||||
payloadCorrupt: []func(sigType){
|
||||
func(s sigType) {
|
||||
req := s.(*ChangeStateRequest)
|
||||
|
||||
req.SetState(req.GetState() + 1)
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, item := range items {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue