forked from TrueCloudLab/frostfs-api-go
container: implement SignedDataSource on GetRequest message
This commit is contained in:
parent
eedb97d135
commit
a41f22782b
4 changed files with 67 additions and 0 deletions
|
@ -74,6 +74,21 @@ func TestRequestSign(t *testing.T) {
|
|||
cid := req.GetCID()
|
||||
cid[0]++
|
||||
|
||||
req.SetCID(cid)
|
||||
},
|
||||
},
|
||||
},
|
||||
{ // GetRequest
|
||||
constructor: func() sigType {
|
||||
return new(GetRequest)
|
||||
},
|
||||
payloadCorrupt: []func(sigType){
|
||||
func(s sigType) {
|
||||
req := s.(*GetRequest)
|
||||
|
||||
cid := req.GetCID()
|
||||
cid[0]++
|
||||
|
||||
req.SetCID(cid)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue