Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests #71

Open
shentschel opened this issue May 21, 2024 · 1 comment
Open

Add tests #71

shentschel opened this issue May 21, 2024 · 1 comment
Assignees

Comments

@shentschel
Copy link
Collaborator

Add tests to prevent regressions and obvious errors.

@shentschel shentschel self-assigned this May 21, 2024
@shentschel
Copy link
Collaborator Author

shentschel commented May 21, 2024

Route Tests:

Test Automation Passkeys

  • credentials
    • List
      • successful list
      • missing API key
      • db error
      • missing tenant
      • missing user id
      • wrong tenant / user not found
    • Update
      • successful update
      • missing API key
      • db error
      • missing tenant
      • wrong tenant / user not found
      • missing credential id
      • missing name in body
    • Delete
      • successful delete
      • missing API key
      • db error
      • missing tenant
      • wrong tenant / user not found
      • missing credentials id
  • login
    • init
      • successful discovery
      • successful user
      • missing tenant
      • wrong tenant / user not found
      • malformed userid body
      • missing api key
      • wrong user handle
      • broken db
    • finish
      • successful discovery
      • successful user login
      • missing tenant
      • wrong tenant / user not found
      • missing api key
      • wrong user handle
      • Wrong creds
      • used mfa cred for login
  • MFA login
    • init
      • successful user login
      • missing user id body
      • malformed userid body
      • missing tenant
      • wrong tenant / user not found
      • missing api key
      • wrong user handle
      • broken db
      • used passkey cred for login
    • finish
      • successful user login
      • missing api key
      • missing tenant
      • wrong tenant / user not found
      • wrong user handle
      • Wrong creds
  • registration
    • passkeys
      • init success

      • tenant not found

      • wrong tenant / user not found

      • database broken

      • missing API key

      • known AAGUID mapping

      • unknown AAGUID mapping

      • finish success

      • wrong credentials

      • tenant not found

      • wrong tenant / user not found

      • wrong challenge

      • unable to create token

    • mfa
      • init success
      • tenant not found
      • wrong tenant / user not found
      • database broken
      • missing API key
      • known AAGUID mapping
      • unknown AAGUID mapping
      • finish success
      • missing API key
      • wrong credentials
      • tenant not found
      • wrong tenant / user not found
      • wrong challenge
      • unable to create token
  • status
    • broken db
    • success
  • transaction
    • init
      • successful transaction
      • missing user id body
      • malformed userid body
      • missing tenant
      • wrong tenant / user not found
      • missing api key
      • wrong user handle
      • broken db
      • missing transaction id
      • transaction id > 128chars
      • missing transaction data
    • finish
      • successful transaction
      • missing api key
      • missing tenant
      • wrong tenant / user not found
      • wrong user handle
      • Wrong creds
  • well_known
    • tenant available & JWK available
    • tenant missing
    • tenant broken uuid
    • JWK missing
    • JWK broken?

shentschel pushed a commit that referenced this issue May 31, 2024
shentschel pushed a commit that referenced this issue Jun 6, 2024
shentschel pushed a commit that referenced this issue Jun 6, 2024
shentschel pushed a commit that referenced this issue Jun 6, 2024
shentschel pushed a commit that referenced this issue Jun 20, 2024
* add admin tests
* split tests in multiple files for better maintainability.

Closes: #71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant