linkerd2/proxy
Eliza Weisman f3cd0c4f27
proxy: Make `outbound_updates_newer_services` test forward-compatible (#939)
This is in preparation for landing the Tokio upgrade.

The test `discovery::outbound_updates_newer_services` currently contains an
assertion that an HTTP/2 request to an HTTP/1 service will return a response
with status code 500. This is because the current version of Hyper on which
Conduit depends does not support protocol upgrades.

However, commit hyperium/hyper@bc6af88a32, which
adds support for this kind of protocol upgrade, was recently merged to Hyper's
master branch. Therefore, this assertion will no longer be correct once we 
depend on the upcoming Hyper release. When we migrate to the new Tokio, it will
be necessary to upgrade our Hyper dependency as well, and this test will fail.

I've modified the test to no longer make assertions about the response's status
code, so that it's compatible with both the current and future Hyper versions.
If the response is not `Ok`, the test will still fail, since 
`tests::support::Client::request()` `expect`s that the response is successful,
but the status code is ignored. I've added a comment in the test explaining 
this.

Eventually, when the master version of Conduit depends on the latest Hyper, we
may want to change this test to assert that the status code is 200 instead. We
may also want to add more tests for Hyper's protocol upgrade functionality, but
that seems out of scope for this PR.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-05-11 14:36:03 -07:00
..
benches proxy: Fix metrics constructor in benches (#881) 2018-04-30 17:48:07 -07:00
controller-grpc proxy: Support destination label matching for tap (#817) 2018-04-19 17:58:45 -07:00
convert Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
futures-mpsc-lossy Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
router proxy/router: Implement LRU cache eviction (#925) 2018-05-10 19:06:31 -07:00
src proxy/router: Implement LRU cache eviction (#925) 2018-05-10 19:06:31 -07:00
tests proxy: Make `outbound_updates_newer_services` test forward-compatible (#939) 2018-05-11 14:36:03 -07:00
Cargo.toml proxy: Parse units with duration configurations (#909) 2018-05-08 13:54:12 -07:00
Dockerfile proxy: Update to Rust 1.26.0 (#942) 2018-05-11 13:52:56 -07:00
assert_macro proxy: Unbreak process_start_time_seconds metric (#825) 2018-04-20 15:59:08 -07:00