Skip to content

test: disable password_policy in test container (#112) - #116

Merged
a-schild merged 1 commit into
mainfrom
fix/112-disable-password-policy
Jul 24, 2026
Merged

test: disable password_policy in test container (#112)#116
a-schild merged 1 commit into
mainfrom
fix/112-disable-password-policy

Conversation

@a-schild

Copy link
Copy Markdown
Owner

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

…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>
@a-schild
a-schild merged commit e357b54 into main Jul 24, 2026
1 check passed
@a-schild
a-schild deleted the fix/112-disable-password-policy branch July 24, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant