Commit Graph

36 Commits

Author SHA1 Message Date
Boden R 28c14f567e Update gate logic
As bug 1568706 uncovered, we were using zuul-cloner
in our gate jobs; this was preventing our translation from
syncing.

After digging into this issue a number of changes in this
associated logic were found to not be in sync with neutron.
This patch updates out tox/tools logic to follow that of neutron.
In addition this patch fixes any pylint checks that were failing to
make pep8 pass.

IMPORTANT:
Please review closely, not only to the tools/tox updates but also
to the ignored pylint checks in the code. We only want to disable
checks where appropriate.

Change-Id: I6c5fee3ca3073ad079eac1636cc3b9ec45926a68
Closes-Bug: #1568706
2016-07-12 09:05:22 -06:00
Shih-Hao Li 8918b10b67 Move vmware_nsx/neutron/tests to vmware_nsx/tests
This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I86262470a03c520bf8fe0f5129d940107701004f
2015-09-14 18:08:51 -07:00
linb 2eb68aa2c3 Exclusive Router Support
Exclusive router is the router who exclusivly occupies one edge.
You can create an exclusive router with "--router_type exclusive"
For distributed router, it would always be exclusive router.

Change-Id: Ice8cbc20912bc9becc5a82a646c76b9153418189
DocImapct:
2015-02-26 13:46:02 +08:00
Gary Kotton 3a96a43c53 VMware: fix gitreview
Fix the correct repo

Change-Id: I1deed42fb003f06bc97634e3908c6d82c8620e85
2014-12-21 23:24:18 -08:00
Doug Wiegley f8755e75e1 run_tests.sh OS X script fixes
On OS X, '*' is not a valid grep modified for '[^[:space:]:]', nor is it
necessary when the lines being checked against must be prefixed with
neutron.tests.
Also, dirname was being called with an empty var, without quoting, resulting
in usage errors.

Closes-Bug: 1391858

Change-Id: I34ab0625a00809f68b7a44cb3a175a57ba0bd6d5
2014-11-20 17:56:19 -07:00
Akihiro Motoki fb66625798 Provide a quick way to run flake8
"run_tests.sh -p" always checks every file for errors even though you
have probably only changed a handful. This patch adds "run_tests.sh -8"
which only checks the files that were modified in the HEAD commit or
in the current working tree.

It is borrowed from the recent nova commit b011325cc6.
The related ML post is:
http://lists.openstack.org/pipermail/openstack-dev/2014-August/043346.html

Change-Id: Ieeabf1b79a0790af8bde3144dca59b4245a0b79a
2014-08-30 21:30:17 +09:00
Terry Wilson a40bb4f124 Restore ability to run functional tests with run_tests.sh
Change f20b1d42 which split the running of functional tests from
the running of unit tests caused running:
  ./run_tests.sh neutron.tests.functional
to fail as the OS_TEST_PATH variable will be defaulted to
neutron.tests.unit which means that the functional tests will not
be discovered in the above case.

This patch trys to detect an argument passed in the form of a
neutron.tests string and correctly sets the OS_TEST_PATH variable
based on it.

Change-Id: I8ccdc7f10d3c8478281aeaf8d02175d0eeb8d6e9
2014-04-23 10:37:35 -05:00
Jenkins 572e1436e9 Merge "Don't document non-existing flag '--hide-elapsed'" 2014-02-22 04:05:04 +00:00
Sascha Peilicke e8f76135e6 Don't document non-existing flag '--hide-elapsed'
Closes-Bug: 1277051
Change-Id: I4435645025dabcecf3dc1b7168ce17f10d6df534
2014-02-06 13:12:16 +01:00
Justin Hammond f96ae3d517 Fix interprocess locks for run_tests.sh
This was fixed for nova using this method and we are porting it here as we are
running into a similar bug as #1264058

Closes-Bug: #1269938
Change-Id: I06a2684629fd7b4d30e2d7716dc00a2ed0479f2f
2014-01-16 20:47:58 +00:00
Kui Shi 64a7c190f7 Don't need to init testr in run_tests.sh
In run_tests.sh, function init_testr will initialize testr if the
directory .testrepository is not existed. Actually, testr will do
the check before run the test:

In Python package testrepository, setuptools_command.py:Testr.run

68 def run(self):
69     """Set up testr repo, then run testr"""
70     if not os.path.isdir(".testrepository"):
71         self._run_testr("init")

So, init_testr can be removed safely.

Fixes Bug #1224285

Change-Id: Ia74d9fff92b8efba9b72e5c7387f761144daa193
2013-09-12 01:04:09 +08:00
Mark McClain 380b0e7db6 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Monty Taylor 5ec4eb55f1 Revert "Fix ./run_tests.sh --pep8"
We are explicitly trying to get rid of scripts like this and flake8 makes
this one non-necessary.
Fix run_tests.sh to run flake8 properly.

This reverts commit 42243d6eb2

Change-Id: I435e34b6acde7931a75f456ccc88da6476581643
2013-05-22 13:51:07 +09:00
Akihiro MOTOKI e20be9f5d2 Fix ./run_tests.sh --pep8
Create a common script to call flake8 to share flake8 options and
make tox and run_tests.sh use this script.

Fixes bug: 1179331

Change-Id: I92dc54fa3f4bb22aa39bde226b6d769088f9a2e3
2013-05-14 11:28:37 +09:00
Tim Miller 1ae8d69645 Parallelize quantum unit testing:
This change switches run_tests.sh to use testr
in parallel mode, instead of nosetests, in order
to enable unit tests to run in parallel.

By default, the number of parallel test processes
is set to the number of cores on the test machine.

A similar change was recently merged to nova:
  https://review.openstack.org/#/c/15078/

Some tests required updating to remove inter-testcase
dependencies.

bug #1099694

Change-Id: Idfb923d424342a07dcba88d70b971683f549f763
2013-04-03 14:17:48 -07:00
Dan Prince 995f730f5a Make run_tests.sh pep8 conf match tox.
Updates our run_tests.sh pep8 excludes so that match what we do
in tox.ini (Adds E711,E712 to the exclude list)

Change-Id: Iaf2cee898a957847d444aa7c48db1d4ad088ab6e
2013-03-05 21:01:02 -05:00
Matthew Treinish 8cce6e9dda Add an update option to run_tests.sh
This commit adds an update option to run_tests.sh. This option
is used to rerun install_venv.py on an already installed venv.
This will then just update out of date packages with pip.

Change-Id: I49a1cbcb62e7f429eca3efe949b8aa90507723c4
2013-02-15 15:43:13 -05:00
Dan Prince 288a78f541 Don't force run_tests.sh pep8 only to use -N.
Previously running run_tests.sh -p would *always* run
outside of the virtual environment. This commit makes -p
work equally well with -N (no-virtual-env) and -V (virtual-env).

Change-Id: I214404e85af2122b2ea7330e6496848a1e0d7ddf
2012-11-25 22:01:27 -05:00
Zhongyue Luo fe5f711482 Exclude openstack-common from pep8 test
Fixes bug #1048962

Added "openstack" to PEP8_EXCLUDE in run_tests.sh

Change-Id: I5919c97681b1f037e231df7ddb449c2a16366128
2012-09-11 14:50:13 +08:00
Yaguang Tang f38e909025 fix bug lp:1025526,update iniparser.py to accept empty value.
also,this patch turn off pep8 E125 check,this for now seems to
be unnecessary,it check continuous line split.and update the
latest openstack-common https://review.openstack.org/#/c/9201
which has fix pep8 1.3 issue except for E125 check.

Change-Id: I86e6a3add56a0a2941031a1248f1696667ac56b8
2012-07-19 18:46:19 +08:00
Yong Sheng Gong afb0b7b141 Introduce files from openstack common.
Because the openstack common project does not stick to latest pep8 rules,
I have to exclude some bad-ruled files in the tox.ini and run_tests.sh.
However pep8 does not support exclude option in the format quantum/openstack/common,
so I have to exclude some of openstack common files one by one.

Also, I have changed the Qunatum Context to base on the common context.

I does not update the setup.py in our openstack common dir and the one
under quantum top dir, since it should be maintained in a consistent way
across all of openstack projects.

After this introduction, we are ready for notification feature.

Change-Id: I2729c2dc3958835374c88d704e842e613785ec14
2012-07-17 06:41:14 +08:00
Monty Taylor 647bc8f57a Getting ready for the client split.
Change-Id: Ic2e7d637d2c116dfda3d7ad958ccba39a8da7751
2012-01-19 11:43:18 +11:00
James E. Blair 803015c1d0 Base version.py on glance.
This makes setting and calculating the versioning of quantum more
like other OpenStack projects, simplifying the work of the CI
and Release Management teams.

Addresses bug 916018 which prevents the quantum-tarball job from
running correctly.

Change-Id: I5b006ccc3d31c5d213c703853dfa38f04d983918
2012-01-17 16:24:34 +11:00
James E. Blair ad8c891335 Rename .quantum-venv to .venv.
This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects. By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.

Change-Id: I93c7f6577b4c3a76b021f002bda59fcb8fac3f95
2011-12-23 15:02:57 -08:00
Salvatore Orlando 4dfd9b0ff7 Bug #890028
Change run_tests.sh for running pep8/pylint validation only
(also adds .pylintrc file)

Resubmitting this time making sure we run pylint for Quantum!
Also run just with -l for total number of messages
Run with -l -v for detailed pylint messages

Change-Id: I593c8aed4e0e6b06204c6c4308934da198778fd6
2011-12-14 00:33:37 +00:00
Brad Hall 9bab0960b6 Second round of packaging changes
This change condenses the directory structure to something more similar to
what we had before while producing similar packages.

It also introduces version.py which allows us to get the version from git tags
(or a fallback version if not available).

Fixes lp bug 889336
Fixes lp bug 888795

Change-Id: I86136bd9dbabb5eb1f8366ed665ed9b54f695124
2011-11-28 10:33:52 -08:00
Brad Hall e4bb4c3f2c Fix for bug 877525
We now have a verbose flag (-v) for run_tests.sh if you want ot see all that
crap printed to the screen.  The default behavior is just to print "test nam
.. OK".  Also, we took the code from nova to cat run_tests.log if there is a
error so that if we hit an import error we will see it in the console jenkin
output.

Change-Id: Id8997c658a61691bf9f25b1c01e6a5db0eca428f
2011-11-05 04:48:54 -07:00
Salvatore Orlando ba0b2aeea1 Bug 887706
Adding *.pyc to PEP8_EXCLUDE

Change-Id: If2c432e8ce85be585aa3b71a5acb76f2f27a4c07
2011-11-08 18:25:01 +00:00
Tyler Smith 1fcde53d0e blueprint quantum-packaging
Change-Id: Ica19170540b06ecddb0fbb6d340ee7a6819c1708
2011-03-07 18:02:05 -05:00
Brad Hall 8052bf68d4 Add code-coverage support to run_tests.sh (lp860160)
Change-Id: I404ba58ea882123b8c6669ea32923fa626b27de5
2011-10-02 15:46:29 -07:00
Brad Hall 2c59ecdc82 Merge from launchpad quantum/diablo branch:
merge salv's fix to remove keystone middleware: lp855151
  one more 202->200 from tyler
  merge tylers additional 202 -> 200 changes
  merge additions to OVS readme describing running with multiple hosts
  merge brad's changes to make create API calls return 200, not 202
  merge unit test for showing unset attachment
  merging API docs branch
  Merge: lp:~yinliu2/quantum/bug856564
  Merge: lp:~bgh/quantum/bug850261

Change-Id: I56fe24c59f918737e57b562343c33ec6dcceac60
2011-09-23 20:17:44 -07:00
James E. Blair 7b260d804c Get output from run_tests.
Remove output redirection from run_tests.
Remove PEP8 from run_tests; it's called from a separate jenkins job.

Change-Id: I6476a3031fe7a52ac52bec5d2ce75ced9590ab2a
2011-09-16 09:52:31 -07:00
Dan Wendlandt c7d323a2f9 undo unintentional formatting change in run_tests.sh 2011-08-06 22:18:25 -07:00
Dan Wendlandt 22f99cd650 refactoring testing code to support plugin tests 2011-08-06 22:03:52 -07:00
Salvatore Orlando d0cb0eea78 Work in progress - just starting 2011-06-28 18:04:27 +01:00
Santhosh 6458fa7cff Santhosh/Vinkesh | Added the testing framework. Moved the smoketest to tests/functional 2011-06-08 14:22:51 +05:30