Skip to content

test(dav): cover upload home behavior and cleanup scheduling - #56353

Open
joshtrichards wants to merge 10 commits into
masterfrom
jtr/tests-dav-uploadhome
Open

joshtrichards wants to merge 10 commits into
masterfrom
jtr/tests-dav-uploadhome

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Nov 10, 2025 •

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Add unit tests for UploadHome routing and restrictions, plus filesystem-backed tests for cleanup scheduling and missing-child behavior. The cleanup service is mocked; job persistence and execution are not tested.

TODO

  • ...

Checklist

@joshtrichards joshtrichards added feature: dav tests Related to tests labels Nov 10, 2025
@susnux susnux added the community pull requests from community label Jun 9, 2026
@joshtrichards joshtrichards changed the title test(upload): add unit tests for UploadHome test(dav): cover upload home behavior and cleanup scheduling Nov 28, 2026
...covering constructor logic, permissions, directory, and child methods

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Test user and share-owner routing, access restrictions, and failed
directory creation without relying on private properties or persistent
filesystem fixtures.

Assisted-by: Copilot:gpt-6.1-terra

Signed-off-by: Josh <josh.t.richards@gmail.com>
Use temporary storage to verify that creating an upload directory
schedules cleanup with the expected user and directory, and that
a missing child returns false.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards
joshtrichards force-pushed the jtr/tests-dav-uploadhome branch from c1c159d to 6c52b1b Compare November 28, 2026 16:38
@joshtrichards joshtrichards added technical debt 🧱 🤔🚀 3. to review Waiting for reviews labels Nov 28, 2026
@joshtrichards
joshtrichards marked this pull request as ready for review November 28, 2026 16:55
@joshtrichards
joshtrichards requested a review from a team as a code owner November 28, 2026 16:55
@joshtrichards
joshtrichards requested review from Altahrim and leftybournes and removed request for a team November 28, 2026 16:55

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted community pull requests from community feature: dav technical debt 🧱 🤔🚀 tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants