@@ -13,6 +13,7 @@ mod tests {
1313 use uuid:: Uuid ;
1414
1515 use crate :: {
16+ authorization,
1617 handlers:: { router, users:: UserResponse , AppState } ,
1718 models, test_utils,
1819 } ;
@@ -35,13 +36,15 @@ mod tests {
3536 . into_connection ( ) ;
3637
3738 let auth = test_utils:: get_default_auth ( ) ;
39+ let authz = authorization:: Authorization { } ;
3840
3941 let ( default_auth_header, default_auth_header_value) =
4042 test_utils:: get_default_auth_header ( ) ;
4143
4244 let router = router ( AppState {
4345 conn : Arc :: new ( conn) ,
4446 authentication : Arc :: from ( auth) ,
47+ authorization : Arc :: from ( authz) ,
4548 } ) ;
4649
4750 let response = router
@@ -94,13 +97,15 @@ mod tests {
9497 . into_connection ( ) ;
9598
9699 let auth = test_utils:: get_default_auth ( ) ;
100+ let authz = authorization:: Authorization { } ;
97101
98102 let ( default_auth_header, default_auth_header_value) =
99103 test_utils:: get_default_auth_header ( ) ;
100104
101105 let router = router ( AppState {
102106 conn : Arc :: new ( conn) ,
103107 authentication : Arc :: from ( auth) ,
108+ authorization : Arc :: from ( authz) ,
104109 } ) ;
105110
106111 let response = router
@@ -158,13 +163,15 @@ mod tests {
158163 . into_connection ( ) ;
159164
160165 let auth = test_utils:: get_default_auth ( ) ;
166+ let authz = authorization:: Authorization { } ;
161167
162168 let ( default_auth_header, default_auth_header_value) =
163169 test_utils:: get_default_auth_header ( ) ;
164170
165171 let router = router ( AppState {
166172 conn : Arc :: new ( conn) ,
167173 authentication : Arc :: from ( auth) ,
174+ authorization : Arc :: from ( authz) ,
168175 } ) ;
169176
170177 let body = serde_json:: json!( {
@@ -231,13 +238,15 @@ mod tests {
231238 . into_connection ( ) ;
232239
233240 let auth = test_utils:: get_default_auth ( ) ;
241+ let authz = authorization:: Authorization { } ;
234242
235243 let ( default_auth_header, default_auth_header_value) =
236244 test_utils:: get_default_auth_header ( ) ;
237245
238246 let router = router ( AppState {
239247 conn : Arc :: new ( conn) ,
240248 authentication : Arc :: from ( auth) ,
249+ authorization : Arc :: from ( authz) ,
241250 } ) ;
242251
243252 let body = serde_json:: json!( {
@@ -286,13 +295,15 @@ mod tests {
286295 . into_connection ( ) ;
287296
288297 let auth = test_utils:: get_default_auth ( ) ;
298+ let authz = authorization:: Authorization { } ;
289299
290300 let ( default_auth_header, default_auth_header_value) =
291301 test_utils:: get_default_auth_header ( ) ;
292302
293303 let router = router ( AppState {
294304 conn : Arc :: new ( conn) ,
295305 authentication : Arc :: from ( auth) ,
306+ authorization : Arc :: from ( authz) ,
296307 } ) ;
297308
298309 let response = router
0 commit comments