forked from TrueCloudLab/frostfs-api-go
state: implement SignedDataSource on DumpRequest message
This commit is contained in:
parent
ea12eabaf6
commit
603db9c325
2 changed files with 12 additions and 0 deletions
|
@ -20,3 +20,10 @@ func (m MetricsRequest) SignedData() ([]byte, error) {
|
||||||
func (m HealthRequest) SignedData() ([]byte, error) {
|
func (m HealthRequest) SignedData() ([]byte, error) {
|
||||||
return make([]byte, 0), nil
|
return make([]byte, 0), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignedData returns payload bytes of the request.
|
||||||
|
//
|
||||||
|
// Always returns an empty slice.
|
||||||
|
func (m DumpRequest) SignedData() ([]byte, error) {
|
||||||
|
return make([]byte, 0), nil
|
||||||
|
}
|
||||||
|
|
|
@ -37,6 +37,11 @@ func TestRequestSign(t *testing.T) {
|
||||||
return new(HealthRequest)
|
return new(HealthRequest)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ // DumpRequest
|
||||||
|
constructor: func() sigType {
|
||||||
|
return new(DumpRequest)
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
|
|
Loading…
Reference in a new issue