state: implement SignedDataSource on DumpVarsRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 16:16:54 +03:00
parent 603db9c325
commit 5545b25a95
2 changed files with 12 additions and 0 deletions

View file

@ -27,3 +27,10 @@ func (m HealthRequest) SignedData() ([]byte, error) {
func (m DumpRequest) SignedData() ([]byte, error) { func (m DumpRequest) 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 DumpVarsRequest) SignedData() ([]byte, error) {
return make([]byte, 0), nil
}

View file

@ -42,6 +42,11 @@ func TestRequestSign(t *testing.T) {
return new(DumpRequest) return new(DumpRequest)
}, },
}, },
{ // DumpVarsRequest
constructor: func() sigType {
return new(DumpVarsRequest)
},
},
} }
for _, item := range items { for _, item := range items {