---
  version: 2
  title: Task for rally-task-telemetry job
  description: >
    This task contains various subtasks for testing gnocchi plugins
  subtasks:
    -
      title: Gnocchi.list_capabilities tests
      scenario:
        Gnocchi.list_capabilities: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: Gnocchi.get_status tests
      scenario:
        Gnocchi.get_status:
          detailed: false
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicyRule.list_archive_policy_rule tests
      scenario:
        GnocchiArchivePolicyRule.list_archive_policy_rule: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicyRule.create_archive_policy_rule tests
      scenario:
        GnocchiArchivePolicyRule.create_archive_policy_rule:
          metric_pattern: "cpu_*"
          archive_policy_name: "low"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicyRule.create_delete_archive_policy_rule tests
      scenario:
        GnocchiArchivePolicyRule.create_delete_archive_policy_rule:
          metric_pattern: "cpu_*"
          archive_policy_name: "low"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicy.list_archive_policy tests
      scenario:
        GnocchiArchivePolicy.list_archive_policy: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicy.create_archive_policy tests
      scenario:
        GnocchiArchivePolicy.create_archive_policy:
          definition:
            - granularity: "0:00:01"
              timespan: "1:00:00"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiArchivePolicy.create_delete_archive_policy tests
      scenario:
        GnocchiArchivePolicy.create_delete_archive_policy:
          definition:
            - granularity: "0:00:01"
              timespan: "1:00:00"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiResourceType.list_resource_type tests
      scenario:
        GnocchiResourceType.list_resource_type: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiResourceType.create_resource_type tests
      scenario:
        GnocchiResourceType.create_resource_type:
          attributes:
            foo:
              required: false
              type: "string"
            bar:
              required: true
              type: "number"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiResourceType.create_delete_resource_type tests
      scenario:
        GnocchiResourceType.create_delete_resource_type:
          attributes:
            foo:
              required: false
              type: "string"
            bar:
              required: true
              type: "number"
      runner:
        constant:
          times: 10
          concurrency: 2
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiMetric.list_metric tests
      scenario:
        GnocchiMetric.list_metric:
          limit: 10000
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiMetric.create_metric tests
      scenario:
        GnocchiMetric.create_metric:
          archive_policy_name: "low"
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiMetric.create_delete_metric tests
      scenario:
        GnocchiMetric.create_delete_metric:
          archive_policy_name: "low"
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiResource.create_resource tests
      scenario:
        GnocchiResource.create_resource: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
    -
      title: GnocchiResource.create_delete_resource tests
      scenario:
        GnocchiResource.create_delete_resource: {}
      runner:
        constant:
          times: 10
          concurrency: 2
      contexts:
        users:
          tenants: 2
          users_per_tenant: 3
      sla:
        failure_rate:
          max: 0
