mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 03:42:49 +02:00
envoyconfig: add bootstrap layered runtime configuration (#2343)
This commit is contained in:
parent
3073146ff2
commit
cb09aa4199
3 changed files with 46 additions and 0 deletions
|
@ -40,6 +40,22 @@ func TestBuilder_BuildBootstrapAdmin(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestBuilder_BuildBootstrapLayeredRuntime(t *testing.T) {
|
||||
b := New("localhost:1111", "localhost:2222", filemgr.NewManager(), nil)
|
||||
staticCfg, err := b.BuildBootstrapLayeredRuntime()
|
||||
assert.NoError(t, err)
|
||||
testutil.AssertProtoJSONEqual(t, `
|
||||
{ "layers": [{
|
||||
"name": "static_layer_0",
|
||||
"staticLayer": {
|
||||
"overload": {
|
||||
"global_downstream_max_connections": 50000
|
||||
}
|
||||
}
|
||||
}] }
|
||||
`, staticCfg)
|
||||
}
|
||||
|
||||
func TestBuilder_BuildBootstrapStaticResources(t *testing.T) {
|
||||
t.Run("valid", func(t *testing.T) {
|
||||
b := New("localhost:1111", "localhost:2222", filemgr.NewManager(), nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue