set default codec type to auto/http1 (#2839)

This commit is contained in:
Denis Mishin 2021-12-21 13:26:07 -05:00 committed by GitHub
parent 70e0e866fc
commit 6b592afd3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -313,6 +313,7 @@ func TestOptionsFromViper(t *testing.T) {
EnvoyAdminAccessLogPath: os.DevNull,
EnvoyAdminProfilePath: os.DevNull,
EnvoyAdminAddress: "127.0.0.1:9901",
CodecType: CodecTypeAuto,
},
false,
},
@ -334,6 +335,7 @@ func TestOptionsFromViper(t *testing.T) {
EnvoyAdminAccessLogPath: os.DevNull,
EnvoyAdminProfilePath: os.DevNull,
EnvoyAdminAddress: "127.0.0.1:9901",
CodecType: CodecTypeAuto,
},
false,
},
@ -691,3 +693,8 @@ func mustParseWeightedURLs(t *testing.T, urls ...string) []WeightedURL {
require.NoError(t, err)
return wu
}
func TestDefaults(t *testing.T) {
o := NewDefaultOptions()
assert.Equal(t, CodecTypeAuto, o.CodecType)
}