You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When --setup-username flag is passed, FerretDB should create the specified user with the given password (that may be empty). It should not be an error if a user with that name already exists. It should do so without starting the handler but by using backends directly. It should try to establish a working backend connection up --setup-timeout.
test-enable-new-auth's value must be true.
Let's split the implementation into multiple PRs to make reviews easier and faster:
Implement dummy flags that only check that --test-enable-new-auth is true when --setup-username is non-empty.
Extract user creation logic into a separate function in the internal/backends package. It should accept a backend, username, and password. Use that function in the createUser command handler.
Use that function in the CLI implementation. Implement retries by using Backend.Status method and ctxutil.SleepWithJitter function.
What should be done?
When
--setup-username
flag is passed, FerretDB should create the specified user with the given password (that may be empty). It should not be an error if a user with that name already exists. It should do so without starting the handler but by using backends directly. It should try to establish a working backend connection up--setup-timeout
.test-enable-new-auth
's value must betrue
.Let's split the implementation into multiple PRs to make reviews easier and faster:
--test-enable-new-auth
istrue
when--setup-username
is non-empty.internal/backends
package. It should accept a backend, username, and password. Use that function in thecreateUser
command handler.Backend.Status
method andctxutil.SleepWithJitter
function.Testing should be done manually.
Where?
Definition of Done
The text was updated successfully, but these errors were encountered: