forked from TrueCloudLab/frostfs-api-go
accounting: implement SignedDataSource on ListRequest message
This commit is contained in:
parent
8c492a7712
commit
81f537cda8
4 changed files with 64 additions and 0 deletions
|
@ -104,6 +104,21 @@ func TestSignBalanceRequest(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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue