fix(tests): resolve issues with new config fields for user_watch in tests
This commit is contained in:
parent
36dfc8573c
commit
9822f67968
|
|
@ -77,6 +77,8 @@ async fn create_test_app_state() -> Result<Arc<AppState>> {
|
|||
jwt_secret: "test-secret".to_string(),
|
||||
upload_path: "./test-uploads".to_string(),
|
||||
watch_folder: "./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),
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ async fn create_test_app_state() -> Result<Arc<AppState>> {
|
|||
jwt_secret: "test_secret".to_string(),
|
||||
upload_path: "./test_uploads".to_string(),
|
||||
watch_folder: "./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),
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ mod tests {
|
|||
jwt_secret: "test-secret".to_string(),
|
||||
upload_path: "./test-uploads".to_string(),
|
||||
watch_folder: "./test-watch".to_string(),
|
||||
user_watch_base_dir: "./user_watch".to_string(),
|
||||
enable_per_user_watch: false,
|
||||
allowed_file_types: vec!["pdf".to_string()],
|
||||
watch_interval_seconds: Some(30),
|
||||
file_stability_check_ms: Some(500),
|
||||
|
|
@ -100,6 +102,8 @@ mod tests {
|
|||
jwt_secret: "test-secret".to_string(),
|
||||
upload_path: "./test-uploads".to_string(),
|
||||
watch_folder: "./test-watch".to_string(),
|
||||
user_watch_base_dir: "./user_watch".to_string(),
|
||||
enable_per_user_watch: false,
|
||||
allowed_file_types: vec!["pdf".to_string()],
|
||||
watch_interval_seconds: Some(30),
|
||||
file_stability_check_ms: Some(500),
|
||||
|
|
|
|||
|
|
@ -126,6 +126,8 @@ async fn create_test_app_state() -> Result<Arc<AppState>> {
|
|||
jwt_secret: "test-secret".to_string(),
|
||||
upload_path: "./test-uploads".to_string(),
|
||||
watch_folder: "./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),
|
||||
|
|
|
|||
|
|
@ -330,6 +330,8 @@ fn test_webdav_scheduler_creation() {
|
|||
server_address: "127.0.0.1:3000".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,
|
||||
jwt_secret: "test_secret".to_string(),
|
||||
allowed_file_types: vec!["pdf".to_string(), "png".to_string()],
|
||||
watch_interval_seconds: Some(10),
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ fn create_test_config_with_oidc(issuer_url: &str) -> Config {
|
|||
jwt_secret: "test-secret".to_string(),
|
||||
upload_path: "./test-uploads".to_string(),
|
||||
watch_folder: "./test-watch".to_string(),
|
||||
user_watch_base_dir: "./user_watch".to_string(),
|
||||
enable_per_user_watch: false,
|
||||
allowed_file_types: vec!["pdf".to_string()],
|
||||
watch_interval_seconds: Some(30),
|
||||
file_stability_check_ms: Some(500),
|
||||
|
|
|
|||
Loading…
Reference in New Issue