| 2690 | |
| 2691 | #[mz_ore::test] |
| 2692 | fn 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)] |