mirror of
https://github.com/usestrix/strix.git
synced 2026-09-09 22:31:07 +00:00
Clarify cloud test user MFA options
This commit is contained in:
parent
6a8c89f128
commit
6b66606dfd
2 changed files with 8 additions and 2 deletions
|
|
@ -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."),
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue