Skip to content

Commit

Permalink
Add config to botstrap and trigger in test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Hamilton <[email protected]>
  • Loading branch information
RyanTheOptimist committed Jul 15, 2022
1 parent 6726dea commit a379bb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/common/config/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/java/integration/AndroidEnvoyExplicitFlowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a379bb5

Please sign in to comment.