Guest User

Untitled

a guest
Oct 21st, 2019
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. TEST_P(IntegrationTest, Request) {
  3. config_helper_.addFilter(ConfigHelper::DEFAULT_HEALTH_CHECK_FILTER);
  4. initialize();
  5. codec_client_ = makeHttpConnection(lookupPort("http"));
  6.  
  7. autonomous_upstream_ = true;
  8. auto response =
  9. codec_client_->makeHeaderOnlyRequest(Http::TestHeaderMapImpl{{":method", "CONNECT"},
  10. {":path", "/"},
  11. {":authority", "host"}});
  12. response->waitForEndStream();
  13. EXPECT_EQ("200", response->headers().Status()->value().getStringView());
  14. EXPECT_TRUE(response->complete());
  15. }
RAW Paste Data