# test name 
name: "ledger"
creator: "menglong"
# type is the type of the test, supported type: prepare / test
# we will run the prepare tests before all test tests
type: "test"
tags:
  - transaction

environment: 
  # machine resources
  resources:
    limits:
      cpu: 1000m
      memory: 2Gi
    requests:
      cpu: 500m
      memory: 1Gi
  # image is a docker execution image for running test 
  # default image: hub.pingcap.net/schrodinger/agent:latest
  # image: hub.pingcap.net/schrodinger/agent:latest

  # execution arguments
  args: ""

# manual for users 
manual:
  # description is to introduce the test purpose and instructions for this case.
  description: |-
    Simulating the bank transfer system in a more realistic way, the user's money is stored in the form of a statement,
    which means that each time a transfer is made, a row is inserted into the library instead of an update line.
  parameters: |-
    db: the name of the created database
    accounts: the number of accounts
    interval: check interval
    concurrency: Concurrency of worker
    retry-limit: The number of transaction retries, if the accounts are small, the conflict is serious.
    pessimistic: whether to run the test under pessimistic transactions
  # notes is to list all matters which need to be noted
  # eg: the special requirements of the test environment
  notes: |-
    If there is an error, the ledger will fail to run.

