tests:
  - id: rm-rf-root
    command: "rm -rf /"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-root-star
    command: "rm -rf /*"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-etc
    command: "rm -rf /etc"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-usr
    command: "rm -rf /usr"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-var
    command: "rm -rf /var"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-home-tilde
    command: "rm -rf ~"
    expected:
      decision: deny
      rule_id: rm-recursive-home
  - id: rm-r-etc
    command: "rm -r /etc"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-R-usr
    command: "rm -R /usr"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-recursive-root-long
    command: "rm --recursive /"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-tmp-file-safe
    command: "rm /tmp/build/output.o"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-rf-node-modules-safe
    command: "rm -rf ./node_modules"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-rf-dist-safe
    command: "rm -rf dist"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-single-file
    command: "rm file.txt"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-single-file-generic-ask
    command: "rm src/afterhours/hook_handler.py"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-rf-bin
    command: "rm -rf /bin"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-sbin
    command: "rm -rf /sbin"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-lib
    command: "rm -rf /lib"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-boot
    command: "rm -rf /boot"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-fr-root
    command: "rm -fr /"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-Rf-root
    command: "rm -Rf /"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-fR-root
    command: "rm -fR /"
    expected:
      decision: deny
      rule_id: rm-recursive-root
  - id: rm-rf-home-slash
    command: "rm -rf ~/"
    expected:
      decision: deny
      rule_id: rm-recursive-home
  - id: rm-rf-home-var
    command: "rm -rf $HOME"
    expected:
      decision: deny
      rule_id: rm-recursive-home
  - id: rm-rf-home-var-slash
    command: "rm -rf $HOME/"
    expected:
      decision: deny
      rule_id: rm-recursive-home
  - id: rm-rf-target-safe
    command: "rm -rf target/"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-i-file
    command: "rm -i important.txt"
    expected:
      decision: ask
      rule_id: rm-generic
  - id: rm-multiple-files
    command: "rm a.txt b.txt c.txt"
    expected:
      decision: ask
      rule_id: rm-generic
