# test name 
name: "crud"
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 a BBS system, the tables involved user table and post table, and there are associated constraints between user and post.
    When the test runs, it continuously performs additions, deletions, and changes, and then checks whether the associated constraints are destroyed.
  parameters: |-
    db: the name of the created database
    user-count: the number of user
    post-count: the number of post
    update-users: the number of users updated
    update-posts: the number of post updated
    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 crud will fail to run.

