File tree Expand file tree Collapse file tree
f5lbaasdriver/v2/bigip/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ before_install:
1919install :
2020- pip install hacking pytest coverage
2121- pip install -r requirements.test.txt
22+ before_script :
23+ # Workaround
24+ - SITE=$(pip --version | awk '{ print $4 }')
25+ - sed -i "/^VALID = (/i PROCESS = 'process'" ${SITE}/neutron/callbacks/resources.py
26+ - sed -i "/^VALID = (/a PROCESS," ${SITE}/neutron/callbacks/resources.py
27+ - cat ${SITE}/neutron/callbacks/resources.py
28+ - sed -i "/^VALID = (/i AFTER_INIT = 'after_init'" ${SITE}/neutron/callbacks/events.py
29+ - sed -i "/^VALID = (/a AFTER_INIT," ${SITE}/neutron/callbacks/events.py
30+ - cat ${SITE}/neutron/callbacks/events.py
2231script :
2332- flake8 ./f5lbaasdriver
2433- coverage run --source f5lbaasdriver -m py.test f5lbaasdriver/v2/bigip/
Original file line number Diff line number Diff line change 2323
2424
2525class FakeNoEligibleAgentExc (lbaas_agentschedulerv2 .NoEligibleLbaasAgent ):
26- msg = 'test exception'
26+ message = 'test exception'
2727
2828
2929class FakeLB (object ):
Original file line number Diff line number Diff line change 1616import pytest
1717
1818import neutron .api .v2 .attributes
19- from neutron_lib import constants as neutron_const
19+ from neutron . common import constants as neutron_const
2020
2121import f5lbaasdriver .v2 .bigip .plugin_rpc
2222
Original file line number Diff line number Diff line change 11-e .
22
3- git+https://github.com/openstack/neutron.git@stable/ocata
4- git+https://github.com/F5Networks/neutron-lbaas.git@stable/ocata
3+ git+https://github.com/openstack/neutron.git@kilo-eol
4+ git+https://github.com/F5Networks/neutron-lbaas.git@stable/kilo
55git+https://github.com/F5Networks/pytest-symbols.git
66git+https://github.com/F5Networks/f5-openstack-test.git@stable/newton
77
@@ -16,10 +16,10 @@ f5-sdk==2.3.3
1616-c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata
1717
1818mock==IGNORED # See section comment
19- pytest==IGNORED # See section comment
19+ pytest==3.0.6 # See section comment
2020decorator==IGNORED # See section comment
2121paramiko==IGNORED # See section comment
2222python-glanceclient==IGNORED
2323python-heatclient==IGNORED
24- tempest==IGNORED # See section comment
24+ tempest==10.0.0 # See section comment
2525pytest-cov==2.2.1
You can’t perform that action at this time.
0 commit comments