Skip to content

test(wopi): add coverage for locking operations#5627

Open
joshtrichards wants to merge 13 commits intomainfrom
jtr/test-Wopi-Lock-Ops
Open

test(wopi): add coverage for locking operations#5627
joshtrichards wants to merge 13 commits intomainfrom
jtr/test-Wopi-Lock-Ops

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards commented May 2, 2026

  • Resolves: #
  • Target version: main

Summary

Add WOPI test coverage for file locking behavior.

This PR adds support for exercising the following WOPI override flows in tests:

  • LOCK
  • UNLOCK
  • REFRESH_LOCK
  • GET_LOCK

It also enables the files_lock app when running the WOPI integration feature suite so the lock-related scenarios can execute in CI.

May be making some changes in this area. Figured adding coverage of pre-change code was wise. :-)

Notes

  • The current server-side WopiController implementation ignores the client-provided X-WOPI-Lock value for lock/unlock handling.
  • GET_LOCK is included in the test context, but the current controller implementation does not yet return lock state to the client, so that scenario is not fully asserted yet.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

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>
TBD whether to keep this or make it an alternate test path.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
…Lock

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>
…ng implementation as-is

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards changed the title test(wopi): coverage for WOPI locking operations test(wopi): add coverage for locking operations May 2, 2026
@joshtrichards joshtrichards added 3. to review Ready to be reviewed and removed 2. developing Work in progress labels May 2, 2026
@joshtrichards joshtrichards marked this pull request as ready for review May 2, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant