Conversation
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
…TestServer Signed-off-by: Chidera Olibie <colibie@google.com>
…TestServer Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
…TestServer Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Chidera Olibie <colibie@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
|
If you're seeing port binding issues on Mac this is probably due to the fact that it's running on a sandbox without network by default. Just do what other tests do: envoy-mobile/test/kotlin/integration/BUILD Line 121 in 4710ef4 |
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
test/java/io/envoyproxy/envoymobile/engine/testing/QuicTestServerTest.java
Show resolved
Hide resolved
colibie
left a comment
There was a problem hiding this comment.
Awesome. So happy this finally works.
RyanTheOptimist
left a comment
There was a problem hiding this comment.
Nice! This looks great. A few comments, mostly around comments.
| // end pre-setup | ||
|
|
||
| upstream_config_.upstream_protocol_ = Http::CodecType::HTTP3; | ||
| upstream_config_.udp_fake_upstream_ = FakeUpstreamConfig::UdpConfig(); |
There was a problem hiding this comment.
nit: Could these both be done in the constructor since they don't seem to change per start()?
There was a problem hiding this comment.
I moved line 49, but kept line 48: the upstream_protocol will become a parameter soon. the goal is to also use this server to H2 also. Some renaming will take place later.
| extern "C" { // functions | ||
| #endif | ||
|
|
||
| void start_server(); |
There was a problem hiding this comment.
nit: Should we have brief comments for these methods?
| ON_CALL(factory_context_, scope()).WillByDefault(testing::ReturnRef(stats_store_)); | ||
| } | ||
|
|
||
| void QuicTestServer::startQuicTestServer() { |
There was a problem hiding this comment.
Should this perhaps ASSERT(!upstream_)?
| ENVOY_LOG_MISC(debug, "Upstream now listening on {}", upstream_->localAddress()->asString()); | ||
| } | ||
|
|
||
| void QuicTestServer::shutdownQuicTestServer() { upstream_.reset(); } |
There was a problem hiding this comment.
Should this ASSERT(upstream_)?
| public: | ||
| QuicTestServer(); | ||
|
|
||
| void startQuicTestServer(); |
There was a problem hiding this comment.
Brief comments here would be nice.
| private static final AtomicBoolean sServerRunning = new AtomicBoolean(); | ||
|
|
||
| /* | ||
| * Starts the server. |
There was a problem hiding this comment.
Comment what happens if the server is already running?
|
|
||
| public static final String getServerCertKey() { return KEY_USED; } | ||
|
|
||
| public static long createMockCertVerifier() { |
There was a problem hiding this comment.
Out of curiosity, what does the return value represent?
There was a problem hiding this comment.
IDK - removed :-)
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
Signed-off-by: Charles Le Borgne <cleborgne@google.com>
RyanTheOptimist
left a comment
There was a problem hiding this comment.
Looks great to me! Thanks for doing this.
* origin/main: (21 commits) owners: adding charles (envoyproxy#2038) [OWNERS] Update Envoy Mobile owners (envoyproxy#2031) [deps] Update rules_android to a stable release URL (envoyproxy#2032) [json] Remove com_github_nlohmann_json override & patch (envoyproxy#2030) Enable the "received byte count" feature. (envoyproxy#2004) Run Kotlin macOS tests without EngFlow (envoyproxy#2018) final_intel: adding response flags (envoyproxy#2009) fix (envoyproxy#2025) stream intel: update kotlin public interface to align with swift (envoyproxy#2013) tls: update bundled root certificates (envoyproxy#2016) tooling: first pass at oncall tooling (envoyproxy#2014) test: Solve CI flakiness for test/java/org/chromium/net/urlconnection:urlconnection_test (envoyproxy#2007) envoy: 519774f742 (envoyproxy#2015) Default timestamp to -1 for envoy_final_stream_intel (envoyproxy#2006) QuicTestServer (envoyproxy#1989) bump boringssl to Envoy's version (envoyproxy#1999) docs: addding release notes (envoyproxy#2001) release: cutting the 0.4.5 release (envoyproxy#2000) Revert "bazel: change bazelisk for M1 support (envoyproxy#1966)" (envoyproxy#1998) Decompress even when `no-transform` is specified (envoyproxy#1995) ... Signed-off-by: JP Simard <jp@jpsim.com>
This PR was authored by colibie at 95%
Description: copy of pr/1870 authored by colibie where missing bits were added
Risk Level: N/A
Testing: test added
Docs Changes: N/A
Release Notes: N/A
Signed-off-by: Charles Le Borgne cleborgne@google.com