diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-04 13:08:37 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-04 13:08:37 -0600 |
| commit | 743c484d5ed62c01485ff275aca357ea3e7b45a8 (patch) | |
| tree | d563107325c2dd619d4f1ac4e20370c2d0ff8906 /tests/authorization/check_service_test.rs | |
| parent | afba4a7c66663b284301e71c9045620beef1c120 (diff) | |
chore: add additional request logging
Diffstat (limited to 'tests/authorization/check_service_test.rs')
| -rw-r--r-- | tests/authorization/check_service_test.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs index 0a2997cf..a4b8f2ee 100644 --- a/tests/authorization/check_service_test.rs +++ b/tests/authorization/check_service_test.rs @@ -58,8 +58,18 @@ mod tests { ]; for path in static_paths { - let request = tonic::Request::new(build_request(|http| { - http.headers = build_headers(vec![(":path".to_string(), path.to_string())]); + let request = tonic::Request::new(build_request(|item: &mut HttpRequest| { + let method = String::from("GET"); + let host = String::from("sparkle.staging.runway.gitlab.net"); + + item.method = method.clone(); + item.path = path.to_string(); + item.host = host.to_string(); + item.headers = build_headers(vec![ + (String::from(":path"), path.to_string()), + (String::from(":method"), method), + (String::from(":authority"), host), + ]); })); let response = subject().check(request).await; |
