Skip to content

[stable33] test: Restore all mount providers from before the test - #67712

Draft
backportbot[bot] wants to merge 3 commits into
stable33from
backport/67486/stable33
Draft

backportbot[bot] wants to merge 3 commits into
stable33from
backport/67486/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Backport of #67486

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Previously apps like files_external were loaded, even though they weren't enabled, meaning that their migrations were never executed.
Executing tests/lib/Files/EtagTest.php standalone was failing, because no previous test cleared the mount providers in the mount provider collection.
So the files_external mount provider was still registered and the oc_external_mounts table wasn't found.

Signed-off-by: provokateurin <kate@provokateurin.de>
The mount providers were cleared after the tests to get rid of mount providers registered during the tests, but only some mount providers were registered again.
This breaks groupfolders tests and is also not a very clean approach to ensuring tests are independent of each other.

Signed-off-by: provokateurin <kate@provokateurin.de>
The mount provider collection was modified in between tests, causing the next test to have the wrong providers, because the mount provider collection is only reset in between test suites.

Signed-off-by: provokateurin <kate@provokateurin.de>
@backportbot backportbot Bot added bug 3. to review Waiting for reviews tests Related to tests labels Dec 5, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.12 milestone Dec 5, 2026

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 bug tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant