container: implement SignedDataSource on ListRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 15:17:11 +03:00
parent a41f22782b
commit f91adcb560
4 changed files with 69 additions and 2 deletions

View file

@ -93,6 +93,21 @@ func TestRequestSign(t *testing.T) {
},
},
},
{ // ListRequest
constructor: func() sigType {
return new(ListRequest)
},
payloadCorrupt: []func(sigType){
func(s sigType) {
req := s.(*ListRequest)
owner := req.GetOwnerID()
owner[0]++
req.SetOwnerID(owner)
},
},
},
}
for _, item := range items {