pep8:
    rpm_deps: [ python-hacking ]
    remove_rpm: []
    run: tox --sitepackages -v -e pep8 2>&1 | tee ../logs/testrun.log;

unittest:
    rpm_deps: [ python-cliff,
                python-cryptography,
                python-funcsigs,
                python-requests-mock,
                python-webtest ]
    remove_rpm: []
    run: tox --sitepackages -v -e py27 2>&1 | tee ../logs/testrun.log;

# hostvars[inventory_hostname] is a special ansible variable to get all host's facts
# tester.component.tox_target can be one of the following: [unittest, pep8, dsvm-functional, api]

# Common rpm deps needed for all tester types
rpm_deps: [ gcc,
            git,
            python-devel,
            python-mock,
            python-pip,
            python-pbr,
            python-tox,
            python-testrepository,
            "{{ hostvars[inventory_hostname][tester.component.tox_target]['rpm_deps'] }}" ]

# The rpms that shouldn't be installed when running tests
remove_rpm: [ "{{ hostvars[inventory_hostname][tester.component.tox_target]['remove_rpm'] }}" ]

### test setup, run and cleanup steps
octavia_virt_run_config:
    run: >
        set -o pipefail;
        sudo rm -Rf .tox;
        sed -i "s/-egit.*$//g" tox.ini;
        truncate --size 0 requirements.txt;
        truncate --size 0 test-requirements.txt;
        rpm -qa > ../logs/installed-rpms.log;
        {{ hostvars[inventory_hostname][tester.component.tox_target]['run'] }}


# This is the main section
test_config:
    virt:
        RedHat-7:
            setup:
                install: "{{ rpm_deps }}"
                remove: "{{ remove_rpm }}"
            run: "{{ octavia_virt_run_config.run }}"

Add Octavia OSP 11 configuration
Add Octavia OSP 11 configuration

For running PEP8 and unit.

Change-Id: I44e619cb09386581aeb23a51b8cde0f48f1c5450
