args: &args
  - "--bolt-port"
  - "7687"
  - "--log-level=TRACE"

in_memory_cluster: &in_memory_cluster
  cluster:
    main:
      args: *args
      log_file: "magic-functions-e2e.log"
      setup_queries: []
      validation_queries: []

disk_cluster: &disk_cluster
  cluster:
    main:
      args: *args
      log_file: "magic-functions-e2e.log"
      setup_queries: ["STORAGE MODE ON_DISK_TRANSACTIONAL"]
      validation_queries: []

workloads:
  - name: "Magic functions runner"
    binary: "tests/e2e/pytest_runner.sh"
    proc: "tests/e2e/magic_functions/functions/"
    args: ["magic_functions/function_example.py"]
    <<: *in_memory_cluster

  - name: "Magic functions runner for disk storage"
    binary: "tests/e2e/pytest_runner.sh"
    proc: "tests/e2e/magic_functions/functions/"
    args: ["magic_functions/function_example.py"]
    <<: *disk_cluster
