---
  version: 2
  title: Task for gate-rally-dsvm-mistral-rally-ubuntu-xenial-nv job
  description: >
    This task contains various subtasks for testing mistral plugins
  subtasks:
    -
      title: MistralWorkbooks.list_workbooks tests
      scenario:
        MistralWorkbooks.list_workbooks: {}
      runner:
        constant:
          times: 50
          concurrency: 10
      contexts:
        users:
          tenants: 1
          users_per_tenant: 1
    -
      title: MistralWorkbooks.create_workbook tests
      workloads:
        -
          scenario:
            MistralWorkbooks.create_workbook:
              definition: "~/.rally/extra/mistral_wb.yaml"
          runner:
            constant:
              times: 50
              concurrency: 10
          contexts:
            users:
              tenants: 1
              users_per_tenant: 1
        -
          scenario:
            MistralWorkbooks.create_workbook:
              definition: "~/.rally/extra/mistral_wb.yaml"
              do_delete: true
          runner:
            constant:
              times: 50
              concurrency: 10
          contexts:
            users:
              tenants: 1
              users_per_tenant: 1
    -
      title: MistralExecutions.list_executions tests
      scenario:
        MistralExecutions.list_executions: {}
      runner:
        constant:
          times: 50
          concurrency: 10
      contexts:
        users:
          tenants: 2
          users_per_tenant: 2
    -
      title: MistralExecutions.create_execution_from_workbook tests
      workloads:
        -
          description: MistralExecutions.create_execution_from_workbook scenario\
            with delete option
          scenario:
            MistralExecutions.create_execution_from_workbook:
              definition: "~/.rally/extra/mistral_wb.yaml"
              workflow_name: "wf1"
              params: "~/.rally/extra/mistral_params.json"
              wf_input: "~/.rally/extra/mistral_input.json"
              do_delete: true
          runner:
            constant:
              times: 50
              concurrency: 10
          contexts:
            users:
              tenants: 2
              users_per_tenant: 2
        -
          description: MistralExecutions.create_execution_from_workbook scenario\
            without delete option
          scenario:
            MistralExecutions.create_execution_from_workbook:
              definition: "~/.rally/extra/mistral_wb.yaml"
              workflow_name: "wf1"
              params: "~/.rally/extra/mistral_params.json"
              wf_input: "~/.rally/extra/mistral_input.json"
              do_delete: false
          runner:
            constant:
              times: 50
              concurrency: 10
          contexts:
            users:
              tenants: 2
              users_per_tenant: 2
