state: implement SignedDataSource on ChangeStateRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 16:31:39 +03:00
parent 5545b25a95
commit ab198b4049
4 changed files with 89 additions and 0 deletions

View file

@ -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 {