[MM-39999] Increase key length in plugin KV store to 150 (#19002)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b836edba40
Коммит
34c4e543f9
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
const (
|
||||
KeyValuePluginIdMaxRunes = 190
|
||||
KeyValueKeyMaxRunes = 50
|
||||
KeyValueKeyMaxRunes = 150
|
||||
)
|
||||
|
||||
type PluginKeyValue struct {
|
||||
|
||||
@@ -20,6 +20,6 @@ func TestPluginKeyIsValid(t *testing.T) {
|
||||
kv.Key = ""
|
||||
assert.NotNil(t, kv.IsValid())
|
||||
|
||||
kv.Key = "this is an extremely long key and should be invalid and this is being verified in this test"
|
||||
kv.Key = "this is an extremely long, long, long, long, long, long, long, long, long, long, long, long, long key and should be invalid and this is being verified in this test"
|
||||
assert.NotNil(t, kv.IsValid())
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user