test: disable password_policy in test container (#112) - #116
Merged
Conversation
…tests pass On a fresh Nextcloud the default password_policy app rejects the fixed simple passwords used by the tests, so createUser returned false and every user-dependent test (and the sharing tests, whose setUp creates a user) cascaded into failure. Disable the app after the container starts via occ (run as www-data) so the test environment is deterministic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the remaining #112 failures in TestUserGroupAdmin and FilesharingConnectorTest.
On a fresh Nextcloud 31 the default password_policy app rejects the fixed simple passwords the tests use, so createUser returned false. That cascaded: every user-dependent test failed, and the sharing tests (whose setUp creates a user to share with) failed with 404 "Please specify a valid account to share with".
This disables the password_policy app right after the container installs (occ app:disable, run as www-data) so the test environment is deterministic. Test-only change.
Validation is the CI run on this PR.
Partially addresses #112.
🤖 Generated with Claude Code