diff --git a/tests/integration_auto_resume_tests.rs b/tests/integration_auto_resume_tests.rs index afb8d69..35be010 100644 --- a/tests/integration_auto_resume_tests.rs +++ b/tests/integration_auto_resume_tests.rs @@ -37,6 +37,8 @@ async fn create_test_app_state() -> Arc { jwt_secret: "test_secret".to_string(), upload_path: "/tmp/test_uploads".to_string(), watch_folder: "/tmp/test_watch".to_string(), + user_watch_base_dir: "./user_watch".to_string(), + enable_per_user_watch: false, allowed_file_types: vec!["pdf".to_string(), "txt".to_string()], watch_interval_seconds: None, file_stability_check_ms: None, @@ -69,6 +71,7 @@ async fn create_test_app_state() -> Arc { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }) } diff --git a/tests/integration_cancellation_tests.rs b/tests/integration_cancellation_tests.rs index ce1bb64..be7b924 100644 --- a/tests/integration_cancellation_tests.rs +++ b/tests/integration_cancellation_tests.rs @@ -35,6 +35,8 @@ async fn create_test_app_state() -> Arc { jwt_secret: "test_secret".to_string(), upload_path: "/tmp/test_uploads".to_string(), watch_folder: "/tmp/test_watch".to_string(), + user_watch_base_dir: "./user_watch".to_string(), + enable_per_user_watch: false, allowed_file_types: vec!["pdf".to_string(), "txt".to_string()], watch_interval_seconds: Some(30), file_stability_check_ms: Some(500), diff --git a/tests/integration_document_upload_hash_duplicate_tests.rs b/tests/integration_document_upload_hash_duplicate_tests.rs index bd1f531..a25464b 100644 --- a/tests/integration_document_upload_hash_duplicate_tests.rs +++ b/tests/integration_document_upload_hash_duplicate_tests.rs @@ -109,6 +109,7 @@ async fn create_test_app_state() -> Result> { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })) } diff --git a/tests/integration_ignored_files_integration_tests.rs b/tests/integration_ignored_files_integration_tests.rs index 30e31df..4e8c745 100644 --- a/tests/integration_ignored_files_integration_tests.rs +++ b/tests/integration_ignored_files_integration_tests.rs @@ -52,6 +52,7 @@ async fn create_test_app_state() -> Result> { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })) } diff --git a/tests/integration_oidc_tests.rs b/tests/integration_oidc_tests.rs index 8f9c3c4..8fbce70 100644 --- a/tests/integration_oidc_tests.rs +++ b/tests/integration_oidc_tests.rs @@ -68,6 +68,7 @@ mod tests { )), oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })); (app, ()) @@ -159,6 +160,7 @@ mod tests { )), oidc_client, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })); (app, mock_server) diff --git a/tests/integration_source_scheduler_simple_tests.rs b/tests/integration_source_scheduler_simple_tests.rs index d295561..e4f7295 100644 --- a/tests/integration_source_scheduler_simple_tests.rs +++ b/tests/integration_source_scheduler_simple_tests.rs @@ -57,6 +57,7 @@ async fn create_test_app_state() -> Arc { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }) } diff --git a/tests/integration_source_scheduler_tests.rs b/tests/integration_source_scheduler_tests.rs index 4ceaf70..2ee6e1d 100644 --- a/tests/integration_source_scheduler_tests.rs +++ b/tests/integration_source_scheduler_tests.rs @@ -203,6 +203,7 @@ async fn create_test_app_state() -> Arc { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }) } diff --git a/tests/integration_source_sync_hash_duplicate_tests.rs b/tests/integration_source_sync_hash_duplicate_tests.rs index 8ff5265..64a836e 100644 --- a/tests/integration_source_sync_hash_duplicate_tests.rs +++ b/tests/integration_source_sync_hash_duplicate_tests.rs @@ -158,6 +158,7 @@ async fn create_test_app_state() -> Result> { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })) } diff --git a/tests/integration_stop_sync_functionality_tests.rs b/tests/integration_stop_sync_functionality_tests.rs index 5cee617..c2ede2b 100644 --- a/tests/integration_stop_sync_functionality_tests.rs +++ b/tests/integration_stop_sync_functionality_tests.rs @@ -68,6 +68,7 @@ async fn create_test_app_state() -> Arc { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }) } diff --git a/tests/integration_universal_source_sync_tests.rs b/tests/integration_universal_source_sync_tests.rs index ba3884c..3ea6c0e 100644 --- a/tests/integration_universal_source_sync_tests.rs +++ b/tests/integration_universal_source_sync_tests.rs @@ -165,6 +165,7 @@ async fn create_test_app_state() -> Arc { queue_service, oidc_client: None, sync_progress_tracker: Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }) } diff --git a/tests/integration_webdav_hash_duplicate_tests.rs b/tests/integration_webdav_hash_duplicate_tests.rs index 56819a3..5634b9c 100644 --- a/tests/integration_webdav_hash_duplicate_tests.rs +++ b/tests/integration_webdav_hash_duplicate_tests.rs @@ -156,6 +156,7 @@ async fn create_test_app_state() -> Result> { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, })) } diff --git a/tests/integration_webdav_integration_tests.rs b/tests/integration_webdav_integration_tests.rs index 1cd3413..4312dde 100644 --- a/tests/integration_webdav_integration_tests.rs +++ b/tests/integration_webdav_integration_tests.rs @@ -116,6 +116,7 @@ async fn setup_test_app() -> (Router, Arc) { queue_service, oidc_client: None, sync_progress_tracker: std::sync::Arc::new(readur::services::sync_progress_tracker::SyncProgressTracker::new()), + user_watch_service: None, }); let app = Router::new()