MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_internal_console_proxy

Function test_internal_console_proxy

src/environmentd/tests/server.rs:2692–2713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2690
2691#[mz_ore::test]
2692fn test_internal_console_proxy() {
2693 let server = test_util::TestHarness::default().start_blocking();
2694
2695 let res = Client::builder()
2696 .build()
2697 .unwrap()
2698 .get(
2699 Url::parse(&format!(
2700 "http://{}/internal-console/",
2701 server.internal_http_local_addr()
2702 ))
2703 .unwrap(),
2704 )
2705 .send()
2706 .unwrap();
2707
2708 assert_eq!(res.status().is_success(), true);
2709 assert_contains!(
2710 res.headers().get(CONTENT_TYPE).unwrap().to_str().unwrap(),
2711 "text/html"
2712 );
2713}
2714
2715#[mz_ore::test]
2716#[allow(clippy::disallowed_methods)]

Callers

nothing calls this directly

Calls 6

start_blockingMethod · 0.80
unwrapMethod · 0.80
parseFunction · 0.50
sendMethod · 0.45
getMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected