(code: u16, message: &str)
| 559 | } |
| 560 | |
| 561 | fn kube_api_error(code: u16, message: &str) -> KubeError { |
| 562 | KubeError::Api(kube::core::ErrorResponse { |
| 563 | status: if code == 404 { |
| 564 | "404 Not Found".to_string() |
| 565 | } else { |
| 566 | "Failure".to_string() |
| 567 | }, |
| 568 | message: message.to_string(), |
| 569 | reason: "Failed to parse error data".to_string(), |
| 570 | code, |
| 571 | }) |
| 572 | } |
| 573 | |
| 574 | #[test] |
| 575 | fn sandbox_api_version_probe_retries_on_structured_and_raw_404() { |
no outgoing calls