Skip to content

Use default user factory password in specs - #10351

Merged
jrafanie merged 1 commit into
ManageIQ:masterfrom
Fryguy:avoid_passwords_in_specs
Oct 7, 2026
Merged

jrafanie merged 1 commit into
ManageIQ:masterfrom
Fryguy:avoid_passwords_in_specs

Conversation

@Fryguy

@Fryguy Fryguy commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

In ManageIQ/manageiq#23996 password complexity rules are being added, which will fail validation when simple passwords like 'x' or 'smartvm' are passed into user factories.

Using the default password ('dummy') avoids failing the password complexity check while still satisfying the test requirements.

Part of ManageIQ/manageiq#23996. This can be merged independent of the parent PR.

@jrafanie Please review.

In ManageIQ/manageiq#23996 password complexity rules are being added,
which will fail validation when simple passwords like 'x' or 'smartvm'
are passed into user factories.

Using the default password ('dummy') avoids failing the password
complexity check while still satisfying the test requirements.

Part of ManageIQ/manageiq#23996
@miq-bot

miq-bot commented Oct 2, 2026

Copy link
Copy Markdown
Member

Checked commit Fryguy@98c2cc1 with ruby 3.3.12, rubocop 1.91.0, haml-lint 0.78.0, and yamllint 1.37.1
3 files checked, 6 offenses detected

spec/requests/auth_spec.rb

spec/requests/restful_redirect_spec.rb

@GilbertCherrie

GilbertCherrie commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

@Fryguy, I'm wondering when the core PR is merged, if this will cause the user form Cypress tests to fail as it uses password Test-Password-123 and Test-Updated-Password-123, and I am not sure if these meet the minimum complexity score

@Fryguy

Fryguy commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

Yes those will fail - let me update those too.

@Fryguy

Fryguy commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@GilbertCherrie I double checked and those passwords are considered strong, so no changed needed.

@GilbertCherrie

Copy link
Copy Markdown
Member

@Fryguy sounds good, this should be fine to merge then

@jrafanie

jrafanie commented Oct 7, 2026

Copy link
Copy Markdown
Member

Part of ManageIQ/manageiq#23996. This can be merged independent of the parent PR.

👍

@jrafanie
jrafanie merged commit c12d1ad into ManageIQ:master Oct 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants