- job:
    name: rally-dsvm-tox-functional
    parent: devstack
    description:
      Run functional test for rally-openstack project.
      Uses tox with the ``functional`` environment.
    required-projects:
      - name: openstack/devstack
      - name: openstack/rally-openstack
      # NOTE(andreykurilin): it is a required project to fetch the latest
      #   version and test master of rally-openstack with master of rally
      - name: openstack/rally
    timeout: 7200
    roles:
      - zuul: openstack/devstack
    vars:
      devstack_localrc:
        # TODO(frickler): drop this once python-keystoneclient no longer needs it
        KEYSTONE_ADMIN_ENDPOINT: true
      devstack_plugins:
        rally-openstack: https://opendev.org/openstack/rally-openstack
      tox_env: "functional"
      rally_home_dir: '/opt/stack/.rally'
      rally_results_dir: '/opt/stack/.rally/results/'
      html_report: 'tox_func_report.html'
      non_default_html_report: 'tox_func_report.html'
    run: tests/ci/playbooks/tox-functional-env-run.yaml
    post-run: tests/ci/playbooks/fetch-html-and-json-reports.yaml
