mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-16 16:26:16 +02:00
This reverts commit cd2a86afc4
.
This commit is contained in:
parent
cd2a86afc4
commit
a07d85b174
4 changed files with 22 additions and 104 deletions
|
@ -204,22 +204,12 @@ func Test_buildCluster(t *testing.T) {
|
|||
testutil.AssertProtoJSONEqual(t, `
|
||||
{
|
||||
"name": "example",
|
||||
"perConnectionBufferLimitBytes": 32768,
|
||||
"type": "STRICT_DNS",
|
||||
"typedExtensionProtocolOptions": {
|
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
|
||||
"explicitHttpConfig": {
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true,
|
||||
"initialStreamWindowSize": 65536,
|
||||
"initialConnectionWindowSize": 1048576
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectTimeout": "10s",
|
||||
"respectDnsTtl": true,
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true
|
||||
},
|
||||
"dnsLookupFamily": "V4_ONLY",
|
||||
"loadAssignment": {
|
||||
"clusterName": "example",
|
||||
|
@ -249,20 +239,7 @@ func Test_buildCluster(t *testing.T) {
|
|||
testutil.AssertProtoJSONEqual(t, `
|
||||
{
|
||||
"name": "example",
|
||||
"perConnectionBufferLimitBytes": 32768,
|
||||
"type": "STRICT_DNS",
|
||||
"typedExtensionProtocolOptions": {
|
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
|
||||
"explicitHttpConfig": {
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true,
|
||||
"initialStreamWindowSize": 65536,
|
||||
"initialConnectionWindowSize": 1048576
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectTimeout": "10s",
|
||||
"respectDnsTtl": true,
|
||||
"transportSocket": {
|
||||
|
@ -291,6 +268,9 @@ func Test_buildCluster(t *testing.T) {
|
|||
"sni": "example.com"
|
||||
}
|
||||
},
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true
|
||||
},
|
||||
"loadAssignment": {
|
||||
"clusterName": "example",
|
||||
"endpoints": [{
|
||||
|
@ -315,22 +295,12 @@ func Test_buildCluster(t *testing.T) {
|
|||
testutil.AssertProtoJSONEqual(t, `
|
||||
{
|
||||
"name": "example",
|
||||
"perConnectionBufferLimitBytes": 32768,
|
||||
"type": "STATIC",
|
||||
"typedExtensionProtocolOptions": {
|
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
|
||||
"explicitHttpConfig": {
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true,
|
||||
"initialStreamWindowSize": 65536,
|
||||
"initialConnectionWindowSize": 1048576
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectTimeout": "10s",
|
||||
"respectDnsTtl": true,
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true
|
||||
},
|
||||
"loadAssignment": {
|
||||
"clusterName": "example",
|
||||
"endpoints": [{
|
||||
|
@ -355,22 +325,12 @@ func Test_buildCluster(t *testing.T) {
|
|||
testutil.AssertProtoJSONEqual(t, `
|
||||
{
|
||||
"name": "example",
|
||||
"perConnectionBufferLimitBytes": 32768,
|
||||
"type": "STATIC",
|
||||
"typedExtensionProtocolOptions": {
|
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
|
||||
"explicitHttpConfig": {
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true,
|
||||
"initialStreamWindowSize": 65536,
|
||||
"initialConnectionWindowSize": 1048576
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectTimeout": "10s",
|
||||
"respectDnsTtl": true,
|
||||
"http2ProtocolOptions": {
|
||||
"allowConnect": true
|
||||
},
|
||||
"loadAssignment": {
|
||||
"clusterName": "example",
|
||||
"endpoints": [{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue