Skip to content
david-slatinek edited this page Nov 7, 2023 · 2 revisions

Base case

Inputs:

  • Authorization:
    • jwt token

Invalid inputs:

  • Missing jwt token:
    • unauthorized
  • Invalid jwt token:
    • invalid token
  • Sub property missing:
    • invalid id
  • Iat or exp property missing:
    • iat or exp not set
  • Iat is set to a future date:
    • iat can't be in the future
  • Exp is set to a past date:
    • expired token

Test case 1

Feature: 1

Inputs:

  • Account type:
    • checking
    • saving

Categories:

  • checking
  • saving
  • all
  • 87

Invalid inputs:

  • invalid account type. Supported options are: 'checking', 'saving'

Test case 2

Feature: 2

Inputs:

  • Account type:
    • open
    • closed
    • all

Categories:

  • open
  • closed
  • all
  • asd
  • 54

Invalid inputs:

  • invalid type, supported: 'open', 'closed', all

Test case 3:

Feature: 3

Inputs:

  • Account ID
  • Amount:
    • greater or equal to 1
    • less than float64 max value, ~ 1.79e+308

Categories:

  • Account ID
    • 12345678
    • 793fddb8-c77e-43a4-a5e4-8ce32ff57bb8
  • Amount:
    • 1
    • 0.5
    • 50.12
    • -23
    • -45.78
    • 1.79e+308
    • 1.8e+308

Invalid inputs:

  • Account ID:
    • invalid account ID
    • account is closed
  • Amount:
    • invalid amount, minimum is 1
    • amount is too big
Clone this wiki locally