diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-25 14:39:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-25 14:39:13 -0600 |
| commit | ab2a06d2a1e63cdedfd06717114f128e1e9dc1a8 (patch) | |
| tree | 91377a31c98915d08a8c0ff59e19633dfc91be2b /tests/authorization | |
| parent | 86c9564a82f56b7c5ee60f4bff9fb07ca3e4a6eb (diff) | |
test: start to extract builders
Diffstat (limited to 'tests/authorization')
| -rw-r--r-- | tests/authorization/cedar_authorizer_test.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs index 2ed3dd68..4531da67 100644 --- a/tests/authorization/cedar_authorizer_test.rs +++ b/tests/authorization/cedar_authorizer_test.rs @@ -9,12 +9,12 @@ mod tests { #[test] fn test_cedar_authorizer_allows_valid_token() { let authorizer = CedarAuthorizer::new(); - let mut headers = HashMap::new(); - headers.insert( - "authorization".to_string(), - "Bearer valid-token".to_string(), - ); let request = create_request(|item: &mut HttpRequest| { + let mut headers = HashMap::new(); + headers.insert( + "authorization".to_string(), + "Bearer valid-token".to_string(), + ); item.headers = headers; }); |
