Force etcd2 to use application/json, add base64-wrapper decoder as fallback
This commit is contained in:
@@ -349,7 +349,7 @@ func (g TestGroup) StorageCodec() runtime.Codec {
|
||||
// etcd2 only supports string data - we must wrap any result before returning
|
||||
// TODO: remove for etcd3 / make parameterizable
|
||||
if !storageSerializer.EncodesAsText {
|
||||
s = runtime.NewBase64Serializer(s)
|
||||
s = runtime.NewBase64Serializer(s, s)
|
||||
}
|
||||
ds := recognizer.NewDecoder(s, api.Codecs.UniversalDeserializer())
|
||||
|
||||
|
Reference in New Issue
Block a user