Clarify cloud test user MFA options

This commit is contained in:
bearsyankees 2026-08-28 09:34:13 -04:00
parent 6a8c89f128
commit 6b66606dfd
2 changed files with 8 additions and 2 deletions

View file

@ -91,7 +91,7 @@ _TEST_USER_ADD_BODY = (
P("password", help="Sign-in password."),
P("notes", help="Free-form notes for the agents."),
P("login_url", help="URL of the sign-in page."),
P("mfa_method", help="MFA method, for example totp or email."),
P("mfa_method", help="MFA method: none, totp, email_otp, or magic_link."),
P("totp_secret", help="TOTP secret for MFA sign-in."),
P("mfa_email", help="Email address that receives MFA codes."),
P("scope_domain_ids", "list", help="Domain IDs where this user applies."),
@ -103,7 +103,7 @@ _TEST_USER_BODY = (
P("password", help="Sign-in password."),
P("notes", help="Free-form notes for the agents."),
P("login_url", help="URL of the sign-in page."),
P("mfa_method", help="MFA method, for example totp or email."),
P("mfa_method", help="MFA method: none, totp, email_otp, or magic_link."),
P("totp_secret", help="TOTP secret for MFA sign-in."),
P("mfa_email", help="Email address that receives MFA codes."),
P("scope_domain_ids", "list", help="Domain IDs where this user applies."),

View file

@ -1258,6 +1258,12 @@ def test_corrected_help_distinguishes_inboxes_reports_and_self_hosted_commands()
inbox = SPEC["domains"]["test-users provision-inbox"]
assert "does not create a test user" in inbox.help
for command_name in ("test-users add", "test-users update"):
parameters = {param.name: param.help for param in SPEC["domains"][command_name].body}
assert "email_otp" in parameters["mfa_method"]
assert "magic_link" in parameters["mfa_method"]
assert " or email." not in parameters["mfa_method"]
report = {param.name: param.help for param in SPEC["scans"]["report"].query}
assert "Report content" in report["format"]
assert "file type" in report["type"]