Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kilo #935

Open
wants to merge 2 commits into
base: support-kilo
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Run test with Kilo source
zhaoqin-github committed Nov 5, 2018
commit 8a0c9b48da2b8931838531ddfd31e34300e51335
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,15 @@ before_install:
install:
- pip install hacking pytest coverage
- pip install -r requirements.test.txt
before_script:
# Workaround
- SITE=$(pip --version | awk '{ print $4 }')
- sed -i "/^VALID = (/i PROCESS = 'process'" ${SITE}/neutron/callbacks/resources.py
- sed -i "/^VALID = (/a PROCESS," ${SITE}/neutron/callbacks/resources.py
- cat ${SITE}/neutron/callbacks/resources.py
- sed -i "/^VALID = (/i AFTER_INIT = 'after_init'" ${SITE}/neutron/callbacks/events.py
- sed -i "/^VALID = (/a AFTER_INIT," ${SITE}/neutron/callbacks/events.py
- cat ${SITE}/neutron/callbacks/events.py
script:
- flake8 ./f5lbaasdriver
- coverage run --source f5lbaasdriver -m py.test f5lbaasdriver/v2/bigip/
2 changes: 1 addition & 1 deletion f5lbaasdriver/v2/bigip/test/test_driver_v2.py
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@


class FakeNoEligibleAgentExc(lbaas_agentschedulerv2.NoEligibleLbaasAgent):
msg = 'test exception'
message = 'test exception'


class FakeLB(object):
2 changes: 1 addition & 1 deletion f5lbaasdriver/v2/bigip/test/test_plugin_rpc.py
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
import pytest

import neutron.api.v2.attributes
from neutron_lib import constants as neutron_const
from neutron.common import constants as neutron_const

import f5lbaasdriver.v2.bigip.plugin_rpc

8 changes: 4 additions & 4 deletions requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-e .

git+https://github.com/openstack/neutron.git@stable/ocata
git+https://github.com/F5Networks/neutron-lbaas.git@stable/ocata
git+https://github.com/openstack/neutron.git@kilo-eol
git+https://github.com/F5Networks/neutron-lbaas.git@stable/kilo
git+https://github.com/F5Networks/pytest-symbols.git
git+https://github.com/F5Networks/f5-openstack-test.git@stable/newton

@@ -16,10 +16,10 @@ f5-sdk==2.3.3
-c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata

mock==IGNORED # See section comment
pytest==IGNORED # See section comment
pytest==3.0.6 # See section comment
decorator==IGNORED # See section comment
paramiko==IGNORED # See section comment
python-glanceclient==IGNORED
python-heatclient==IGNORED
tempest==IGNORED # See section comment
tempest==10.0.0 # See section comment
pytest-cov==2.2.1