{% set image = "Fedora-Atomic-27-20180212.2.x86_64" %}
---
  version: 2
  title: Task for rally-task-magnum job
  description: >
    This task contains various subtasks for testing magnum plugins
  subtasks:
    -
      title: MagnumClusterTemplates.list_cluster_templates tests
      workloads:
        -
          scenario:
            MagnumClusterTemplates.list_cluster_templates: {}
          runner:
            constant:
              times: 40
              concurrency: 20
          contexts:
            users:
              tenants: 1
              users_per_tenant: 1
            cluster_templates:
              image_id: {{ image }}
              flavor_id: "m1.small"
              master_flavor_id: "m1.small"
              external_network_id: "public"
              dns_nameserver: "8.8.8.8"
              docker_volume_size: 5
              coe: "kubernetes"
              network_driver: "flannel"
              docker_storage_driver: "devicemapper"
              master_lb_enabled: False
        -
          scenario:
            MagnumClusterTemplates.list_cluster_templates: {}
          runner:
            constant:
              times: 40
              concurrency: 20
          contexts:
            users:
              tenants: 1
              users_per_tenant: 1
            cluster_templates:
              image_id: {{ image }}
              flavor_id: "m1.small"
              master_flavor_id: "m1.small"
              external_network_id: "public"
              dns_nameserver: "8.8.8.8"
              docker_volume_size: 5
              coe: "swarm"
              network_driver: "docker"
              docker_storage_driver: "devicemapper"
              master_lb_enabled: False
    -
      title: MagnumClusters.create_and_list_clusters tests
      scenario:
        MagnumClusters.create_and_list_clusters:
          node_count: 1
      runner:
        constant:
          times: 1
          concurrency: 1
      contexts:
        users:
          tenants: 1
          users_per_tenant: 1
        cluster_templates:
          image_id: {{ image }}
          flavor_id: "m1.small"
          master_flavor_id: "m1.small"
          external_network_id: "public"
          dns_nameserver: "8.8.8.8"
          docker_volume_size: 5
          coe: "swarm"
          network_driver: "docker"
          docker_storage_driver: "devicemapper"
          master_lb_enabled: False
