From a379bb59a2afc3eb93915b90da7c87e865bbd980 Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Fri, 15 Jul 2022 17:43:42 +0000 Subject: [PATCH] Add config to botstrap and trigger in test Signed-off-by: Ryan Hamilton --- library/common/config/config.cc | 5 +++++ test/java/integration/AndroidEnvoyExplicitFlowTest.java | 1 + 2 files changed, 6 insertions(+) diff --git a/library/common/config/config.cc b/library/common/config/config.cc index de6a619eb4..02990a894e 100644 --- a/library/common/config/config.cc +++ b/library/common/config/config.cc @@ -198,6 +198,9 @@ const char* config_template = R"( !ignore router_defs: &router_config "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router +!ignore socket_tag_defs: &socket_tag_config + "@type": type.googleapis.com/envoymobile.extensions.filters.http.socket_tag.SocketTag + !ignore http_filter_defs: &http_filters #{custom_filters} - name: envoy.filters.http.network_configuration @@ -206,6 +209,8 @@ const char* config_template = R"( typed_config: *local_error_config - name: envoy.filters.http.dynamic_forward_proxy typed_config: *dfp_config + - name: envoy.filters.http.socket_tag + typed_config: *socket_tag_config - name: envoy.router typed_config: *router_config diff --git a/test/java/integration/AndroidEnvoyExplicitFlowTest.java b/test/java/integration/AndroidEnvoyExplicitFlowTest.java index 09f2e50675..5322d77cb3 100644 --- a/test/java/integration/AndroidEnvoyExplicitFlowTest.java +++ b/test/java/integration/AndroidEnvoyExplicitFlowTest.java @@ -323,6 +323,7 @@ public MockResponse dispatch(RecordedRequest recordedRequest) { .setHttpMethod(RequestMethod.POST) .setUrl(mockWebServer.url("post/flowers").toString()) .addHeader("content-length", "23") + .addHeader("socket-tag", "0,0") .addBody("This is my request body"); Response response = sendRequest(requestScenario);