[MM-39999] Increase key length in plugin KV store to 150 (#19002)

Этот коммит содержится в:
Ben Schumacher
2021-12-20 13:13:50 +01:00
коммит произвёл GitHub
родитель b836edba40
Коммит 34c4e543f9
5 изменённых файлов: 89 добавлений и 3 удалений

Просмотреть файл

@@ -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())
}