fix(tests): fix integration_webdav_first_time_scan_tests
This commit is contained in:
parent
8dd77584e1
commit
a6f3cae96c
|
|
@ -24,6 +24,21 @@ fn create_test_webdav_service() -> WebDAVService {
|
||||||
// Mock files structure that represents a real directory with subdirectories
|
// Mock files structure that represents a real directory with subdirectories
|
||||||
fn mock_realistic_directory_structure() -> Vec<FileInfo> {
|
fn mock_realistic_directory_structure() -> Vec<FileInfo> {
|
||||||
vec![
|
vec![
|
||||||
|
// Parent root directory
|
||||||
|
FileInfo {
|
||||||
|
path: "/FullerDocuments".to_string(),
|
||||||
|
name: "FullerDocuments".to_string(),
|
||||||
|
size: 0,
|
||||||
|
mime_type: "".to_string(),
|
||||||
|
last_modified: Some(Utc::now()),
|
||||||
|
etag: "fuller-docs-etag-000".to_string(),
|
||||||
|
is_directory: true,
|
||||||
|
created_at: Some(Utc::now()),
|
||||||
|
permissions: Some(755),
|
||||||
|
owner: Some("admin".to_string()),
|
||||||
|
group: Some("admin".to_string()),
|
||||||
|
metadata: None,
|
||||||
|
},
|
||||||
// Root directory
|
// Root directory
|
||||||
FileInfo {
|
FileInfo {
|
||||||
path: "/FullerDocuments/JonDocuments".to_string(),
|
path: "/FullerDocuments/JonDocuments".to_string(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue