Open figless opened 2 months ago
We already have defined this as an enum:
And it's used in multiple places now, so this would risk them going out of sync. I'd at least expect a comment in both places to remind people to keep them in sync.
I've added a comment to both files.
Is there a chance you can add a test with Deferred()
, to ensure this doesn't break in the future?
Is there a chance you can add a test with
Deferred()
, to ensure this doesn't break in the future?
Sure - i've copied spec/acceptance/db_spec.rb
to spec/acceptance/db_deferred_spec.rb
and configured the test to use a Deferred
password.
The previous code in db_deferred_spec.rb
failed the CI, even though it was essentially a copy from db_spec.rb
....
I have adapted the code, which now passes locally.
Summary
This PR fixes 1575
Additional Context
Related Issues (if any)
Checklist
I was hitting 1575 when using a Deferred password. With this fix, puppet creates the database as before (v9.2.0)