mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
set default codec type to auto/http1 (#2839)
This commit is contained in:
parent
70e0e866fc
commit
6b592afd3e
3 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue