# test name 
name: "block_writer"
creator: "shuning"
# 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: |-
    Simulate the transfer business. Each line in the system represents a user's account, 
    and the random transfer is continuously performed, 
    and the total amount of money is periodically checked to check whether the transaction is correct.
  # describe the purpose of the parameters and optional values
  parameters: |-
    db: the name of the created database
    tables: table number, default to 1 table test
    concurrency: Concurrency of transfer transactions
    retry-limit: The number of transaction retries, if the accounts are small, the conflict is serious.
  # 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 block_writer will fail to run.