[#182] Rename methods to match updated field names

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-27 16:55:19 +03:00 committed by Alex Vanin
parent 5be034ab80
commit dc9fcd5d98
17 changed files with 47 additions and 47 deletions

View file

@ -29,7 +29,7 @@ func generateFilter(t acl.HeaderType, k, v string) *acl.HeaderFilter {
filter := new(acl.HeaderFilter)
filter.SetHeaderType(t)
filter.SetMatchType(acl.MatchTypeStringEqual)
filter.SetName(k)
filter.SetKey(k)
filter.SetValue(v)
return filter
@ -122,7 +122,7 @@ func TestHeaderFilter_StableMarshal(t *testing.T) {
t.Run("non empty", func(t *testing.T) {
filterFrom.SetHeaderType(acl.HeaderTypeObject)
filterFrom.SetMatchType(acl.MatchTypeStringEqual)
filterFrom.SetName("Hello")
filterFrom.SetKey("Hello")
filterFrom.SetValue("World")
wire, err := filterFrom.StableMarshal(nil)