fix(mounts): post-merge fmt + audit + minimal lockfile
- rustfmt the integration-test FolderService::new callsites added during the upstream merge (long single-line args wrapped). - Cargo.lock: rebuild from upstream/main's lock so only the testcontainers-modules dev-dep subtree and the memmap2 0.9.10→0.9.11 security bump differ (avoids churning upstream's pins). - .cargo/audit.toml: ignore the four astral-tokio-tar tar-extraction advisories — dev-only, transitive via testcontainers-modules (integration-test harness), never in the production binary.
This commit is contained in:
@@ -1664,7 +1664,9 @@ mod mount_authz_integration {
|
||||
let fs = FolderService::new(
|
||||
Arc::new(FolderDbRepository::new(pool.clone())),
|
||||
acl(pool),
|
||||
Arc::new(crate::application::services::file_lifecycle_service::FileLifecycleService::new()),
|
||||
Arc::new(
|
||||
crate::application::services::file_lifecycle_service::FileLifecycleService::new(),
|
||||
),
|
||||
router,
|
||||
);
|
||||
(fs, p.mount_folder_id.to_string(), p.owner_id)
|
||||
@@ -1860,7 +1862,9 @@ mod mount_authz_integration {
|
||||
let folder_service = FolderService::new(
|
||||
Arc::new(FolderDbRepository::new(pool.clone())),
|
||||
acl(&pool),
|
||||
Arc::new(crate::application::services::file_lifecycle_service::FileLifecycleService::new()),
|
||||
Arc::new(
|
||||
crate::application::services::file_lifecycle_service::FileLifecycleService::new(),
|
||||
),
|
||||
router.clone(),
|
||||
);
|
||||
let retrieval = FileRetrievalService::new_with_authz_for_test(
|
||||
@@ -1910,7 +1914,12 @@ mod mount_authz_integration {
|
||||
|
||||
// PROPFIND Depth:1 file loop: list files of the mount root.
|
||||
let files = retrieval
|
||||
.list_files_batch_with_perms(Some(&p.mount_folder_id.to_string()), p.owner_id, None, 100)
|
||||
.list_files_batch_with_perms(
|
||||
Some(&p.mount_folder_id.to_string()),
|
||||
p.owner_id,
|
||||
None,
|
||||
100,
|
||||
)
|
||||
.await
|
||||
.expect("list mount files");
|
||||
assert_eq!(
|
||||
@@ -1995,7 +2004,9 @@ mod mount_authz_integration {
|
||||
let folder_service = FolderService::new(
|
||||
Arc::new(FolderDbRepository::new(pool.clone())),
|
||||
acl(&pool),
|
||||
Arc::new(crate::application::services::file_lifecycle_service::FileLifecycleService::new()),
|
||||
Arc::new(
|
||||
crate::application::services::file_lifecycle_service::FileLifecycleService::new(),
|
||||
),
|
||||
router.clone(),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user