forked from TrueCloudLab/frostfs-sdk-go
[#258] Fix string encoding of identifiers
Use `EncodeToString` method to get protocol string according to type docs. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6cb513c976
commit
82d762f536
9 changed files with 40 additions and 35 deletions
|
@ -122,7 +122,7 @@ func TestSearchFilters_AddParentIDFilter(t *testing.T) {
|
|||
require.Len(t, fsV2, 1)
|
||||
|
||||
require.Equal(t, v2object.FilterHeaderParent, fsV2[0].GetKey())
|
||||
require.Equal(t, par.String(), fsV2[0].GetValue())
|
||||
require.Equal(t, par.EncodeToString(), fsV2[0].GetValue())
|
||||
require.Equal(t, v2object.MatchStringEqual, fsV2[0].GetMatchType())
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ func TestSearchFilters_AddObjectIDFilter(t *testing.T) {
|
|||
require.Len(t, fsV2, 1)
|
||||
|
||||
require.Equal(t, v2object.FilterHeaderObjectID, fsV2[0].GetKey())
|
||||
require.Equal(t, id.String(), fsV2[0].GetValue())
|
||||
require.Equal(t, id.EncodeToString(), fsV2[0].GetValue())
|
||||
require.Equal(t, v2object.MatchStringEqual, fsV2[0].GetMatchType())
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue