3
3
4
4
#include " source/common/buffer/buffer_impl.h"
5
5
6
+ #include " test/integration/filters/test_listener_filter.h"
6
7
#include " test/integration/http_integration.h"
7
8
#include " test/integration/http_protocol_integration.h"
8
9
#include " test/integration/ssl_utility.h"
@@ -140,8 +141,7 @@ class LdsInplaceUpdateTcpProxyIntegrationTest
140
141
141
142
void initialize () override {
142
143
config_helper_.renameListener (" tcp" );
143
- std::string tls_inspector_config = ConfigHelper::tlsInspectorFilter ();
144
- config_helper_.addListenerFilter (tls_inspector_config);
144
+ config_helper_.addListenerFilter (ConfigHelper::testInspectorFilter ());
145
145
146
146
config_helper_.addSslConfig ();
147
147
config_helper_.addConfigModifier ([](envoy::config::bootstrap::v3::Bootstrap& bootstrap) {
@@ -168,6 +168,7 @@ class LdsInplaceUpdateTcpProxyIntegrationTest
168
168
const std::string& request,
169
169
std::string& response) {
170
170
Buffer::OwnedImpl buffer (request);
171
+ TestListenerFilter::setAlpn (alpn);
171
172
return std::make_unique<RawConnectionDriver>(
172
173
lookupPort (" tcp" ), buffer,
173
174
[&response](Network::ClientConnection&, const Buffer::Instance& data) -> void {
@@ -298,8 +299,7 @@ class LdsInplaceUpdateHttpIntegrationTest
298
299
setUpstreamCount (2 );
299
300
300
301
config_helper_.renameListener (" http" );
301
- std::string tls_inspector_config = ConfigHelper::tlsInspectorFilter ();
302
- config_helper_.addListenerFilter (tls_inspector_config);
302
+ config_helper_.addListenerFilter (ConfigHelper::testInspectorFilter ());
303
303
config_helper_.addSslConfig ();
304
304
config_helper_.addConfigModifier (
305
305
[&](envoy::extensions::filters::network::http_connection_manager::v3::HttpConnectionManager&
@@ -361,6 +361,7 @@ class LdsInplaceUpdateHttpIntegrationTest
361
361
}
362
362
363
363
IntegrationCodecClientPtr createHttpCodec (const std::string& alpn) {
364
+ TestListenerFilter::setAlpn (alpn);
364
365
auto ssl_conn = dispatcher_->createClientConnection (
365
366
address_, Network::Address::InstanceConstSharedPtr (),
366
367
context_->createTransportSocket (std::make_shared<Network::TransportSocketOptionsImpl>(
0 commit comments