47ddb8ca76fba11a6e77b12e9eeb61b5a9c78c48
100 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Chuck Short
|
560e5cd84e |
Pin pep8 to 1.3.3
Apart of making pep8 version standard across all openstack projects. With this change we ignore E712 since it is normal to use "column == True" in sqlalchemy. Change-Id: I73a162847a79558cb158112878033edf18039805 Signed-off-by: Chuck Short <chuck.short@canonical.com> |
||
|
Jenkins
|
6581a6cdc9 | Merge "Fix the fail-on-zero-tests case so that it is tolerant of no output" | ||
|
Dan Smith
|
51cc2eb3a7 |
Fix the fail-on-zero-tests case so that it is tolerant of no output
Some ways of running run_tests.sh will not output a line for us to parse the count from. Treat no "Ran X tests" as "Ran 0 tests". Change-Id: I96ba13e797ceaf9b9fa2b60ccb558510b5e32a88 |
||
|
Joe Gordon
|
c39dbb53bc |
Fix and enable pep8 E502, E712
pep8 E502 and E712 were temporarily disabld when upgrading to pep8 1.2 Change-Id: If5158304cb8e73ef844dea9f726df6f8fe305269 |
||
|
Jenkins
|
0c45f2a13b | Merge "Make run_tests.sh fail if no tests are actually run" | ||
|
Dan Smith
|
bd30d411c4 |
Make run_tests.sh fail if no tests are actually run
Right now, run_tests seems to report test success if there is a catastrophic failure early in the process. This can happen if you have a python file that fails to parse, or if something else in the test environment setup fails to initialize (such as creating the empty database for the test run). Nosetests will report success, but indicate that zero tests were run. This patch snatches the output of nosetests and, if zero tests ran, reports to the user that something is broken and offers a few suggestions. Change-Id: Ide6fd8b212f0650cb227f60b25d4b4e62ee150ac |
||
|
Joe Gordon
|
43b198c5ee |
Update run_tests.sh pep8 ignore list for pep8 1.2
Patch I32a8808c6c9cccfedcc4d2a26649333aca1cd713 changed pep8 to 1.2 but did not update the ignore list in run_tests.sh Change-Id: I9d2cab79197ba3cdd7103d4532e28a999c9454f4 |
||
|
Jenkins
|
c1abf87fec | Merge "Disable I18N in Nova's test suites" | ||
|
Vishvananda Ishaya
|
10e25db4be |
Makes sure tests don't leave lockfiles around
Our new lockfile code works fine if the locks already exist, but it is annoying to pollute the source tree with lockfiles in the tests. This modifies the lockfile code slightly to use a tempdir if lock_path is none. Note that a tempdir will not work in production but it is fine for testing. We set the lock_path to None in the testing flags. Also removes the explicit cleanup in run_tests.sh. The new solution works with tox and will work even if we add new locks. Fixes bug 1035426 Change-Id: I613926e4288442e79df50ea5f5bd8f9eafdfe7e7 |
||
|
Jian Wen
|
55b37bef9b |
Disable I18N in Nova's test suites
Messages translated into other language like Chinese cause some unit tests to fail. Fixes LP bug #1037946. Change-Id: I01d04333d28bab52d6f424432524b206f3845fba |
||
|
Stanislaw Pitucha
|
2c1524866a |
Improve external lock implementation
Remove a number of limitations from the external locks. - They can be nested now - They do not need external cleanup in case of failures - They do not rely on lockfile or greenlet internal implementation New implementation is based on fcntl locks and any crashing process will drop the lock. It does not have to rely on any cleanup code or handling exceptions. Because no cleanup is needed, a number of tests have been removed. This implementation is not portable outside of POSIX/BSD/SVR4 systems. Fcntl locks should work correctly with NFS mounts. Locks are cleaned up after the tests finish running via run_tests.sh, even though it's not strictly needed. This change requires eventlet >= 0.9.17. bp improve-external-locking Change-Id: Idf5424c04645f25097733848a007b150145b0b27 |
||
|
Dan Prince
|
1ef88fdd5b |
Exclude openstack-common from pep8 checks.
Updates tox.ini and run_tests.sh to exclude openstack-common code from pep8 checks. Fixes LP Bug #1020792 Change-Id: I6bb9747f86f7677f0e9c4169c04d6f3fbd4b3480 |
||
|
Yun Mao
|
3b6744786c |
Make pep8 test work on Mac
find . -executable is not available on Mac OS X. We switch back to the old -perm syntax to find files to test. Change-Id: Iea58a249f282c98ae6cffbe8e6359f70f8b1d63f |
||
|
Rick Harris
|
8a10d6bade |
Add PEP8 checks back for Dom0 plugins.
Fixes bug 1018641 Change-Id: Id61947252fe4d3f5b93279518128ba90100f3748 |
||
|
Monty Taylor
|
cf34a60157 |
Finalize tox config.
Shrink tox.ini to the new short version. Fix the test cases to be able to be run in nosetets plus the openstack.nose_plugin, which finally removes the need for nova/testing/runner.py Also, now we'll just output directly to stdout, which will make nose collect the trace logging directly and either output it at the end of the run, or inject it into the xunit output appropriately. Change-Id: I1456e18a11a840145492038108bdfe812c8230d1 |
||
|
Joe Gordon
|
f8437e37d4 |
Enable checking for imports in alphabetical order
And fix existing alphabetical ordering problems Change-Id: I3ab887e118adc8022c84ff7230e7cc2d261804f6 |
||
|
Lorin Hochstein
|
190b4e27c8 |
Ignore common code in coverage calculations.
Ignore nova/openstack/common code when calculating coverage. We do this because the unit tests for the common code are in a different repository. Change-Id: I0103b8acfc4cdaace68a18b1d1723a13595debe2 |
||
|
Jenkins
|
9bd0504bd3 | Merge "Scope coverage report generation to nova module." | ||
|
Joe Gordon
|
7ee0d7848d |
Improved tools/hacking.py
* cleaner output * fix bug 980009 * Fix N201 * N306: alphabetical order imports * N401: docstring start * N402: one line docstring start * N403: multi line docstring end * Until fixed, N40* will be disabled by default Change-Id: I9addafdaa7a1f8fb950e14a5409f661dec6c7b87 |
||
|
Renier Morales
|
bcb53dfc6a |
Scope coverage report generation to nova module.
Coverage report generation was not using --include filters. This resulted in generating a report that included all external dependencies. Some of these may include problematic characters for utf8 decoding. In the odd case this was found, coverage would fail with a UnicodeDecodeError. Fixes bug #987077. Change-Id: I276698e65ac1037972209a406058168433cd826b |
||
|
Dan Prince
|
2b490fd2ef |
Exclude xenapi plugins from pep8/hacking checks.
Fixes LP Bug #987055. Change-Id: I7132b88c5e0a90b16d0f8e35df45b82e7991280f |
||
|
Johannes Erdfelt
|
c808df7005 |
Make run_tests.sh just a little bit less verbose
Change-Id: I9d4dc11083cb51040677eeda2d28d4b23539a304 |
||
|
Yuriy Taraday
|
07bbe57754 |
Run tools/hacking.py instead of pep8 mandatory.
Change-Id: I81db73588ece36dec4dba90b9841ed6d0fac6a8f |
||
|
Rick Harris
|
203d51f0e4 |
Remove unecessary --repeat option for pep8.
Fixes bug 977489 --repeat became the default in 0.7; since we're now requiring 1.0 or above, this can go away. Change-Id: I85ee8ab274594ce96ece6610247dfd8a6f082af5 |
||
|
Brian Elliott
|
549616d122 |
bug 968452
Update test-requires to use pep8>=1.0. Removed PEP8 warning suppression around 3-arg raises. Change-Id: Ib4ed42adc167aa1e8078619a36b409b76b9f5d73 |
||
|
Hengqing Hu
|
9a042d3c50 |
Remove trailing whitespaces in regular file
Fixes bug #945346 Change-Id: I07a303c2e503e50d7138585c683e0d1310339276 |
||
|
Jason Kölker
|
a7df900895 |
Monkey patch migrate < 0.7.3
* Works around migrate issue 72 [1] by monkey patching migrate prior to import. * Removes previous workaround * Refactor test config to work under nosetests directly * Fixes LP940407 1: https://code.google.com/p/sqlalchemy-migrate/issues/detail?id=72 Change-Id: I219e4cecf8bb2e34ae238ac270428f496378ee61 |
||
|
Jenkins
|
0c6765a71a | Merge "Make database downgrade works" | ||
|
Joe Gordon
|
1fc7c0c534 |
Clarify use of Use of deprecated md5 library
See Invalid bug 937463 for more details Also change run_tests.sh to ignore more '*.pyc' files Change-Id: I8c8ded902833fe4268966ff7a9630daaaad43a19 |
||
|
Monty Taylor
|
f86ec68be7 |
Stop ignoring E202.
There is absolutely no reason to ignore E202 in the pep8 checks. Change-Id: I4abf767639dd94e9e8b7b4a405b4a702a554b876 |
||
|
Jenkins
|
52fbabc8af | Merge "run_tests.sh fix" | ||
|
Hengqing Hu
|
8e825c4024 |
Make database downgrade works
Fixes bug #854905 Use sqlalchemy reflection whenever possible: http://sqlalchemy-migrate.readthedocs.org/en/latest/versioning.html Work around sqlalchemy-migrate sqlite 'bool column not deletable' issue: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143 Add following sql scripts for sqlite: 002_sqlite_downgrade.sql 015_sqlite_downgrade.sql 033_sqlite_downgrade.sql 050_sqlite_downgrade.sql 068_sqlite_downgrade.sql Work around sqlalchemy-migrate sqlite 'table with foreign key column not deletable' issue: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=94 Add following sql scripts for sqlite: 003_sqlite_downgrade.sql 006_sqlite_downgrade.sql 007_sqlite_downgrade.sql 012_sqlite_upgrade.sql 013_sqlite_downgrade.sql 020_sqlite_downgrade.sql 030_sqlite_downgrade.sql 038_sqlite_downgrade.sql 042_sqlite_downgrade.sql 053_sqlite_downgrade.sql 067_sqlite_downgrade.sql Work around sqlalchemy-migrate 'migrate drops engine reference' issue: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=72 Add following sql scripts for long primary key to work with utf-8 mysql table: 072_mysql_upgrade.sql Add following sql scripts for postgresql: 002_postgresql_downgrade.sql Add snake walk test cases for database migration based on glance migration test. Change-Id: Ib454ecb4662bbf47736c1b12d9a4f969f180ceb6 |
||
|
Joe Gordon
|
a1890ea22f |
clean pyc files before running unit tests
Change-Id: If7ad58f131d8b780125df7ecb5c4081014064f72 |
||
|
Zhongyue Luo
|
e6c07cbc8b |
run_tests.sh fix
Fixes bug #929369 Fix "api-paste.ini* to "*api-paste.ini*" and remove duplicate definitions of srcfiles. Change-Id: I859783457d6c5df3f6e998e752cad648ca109b9c |
||
|
Armando Migliaccio
|
61e6f4e34a |
bug 929428: pep8 validation on all xapi plugins
check every python file under <nova_root>/plugins/xenserver/. Ignore patch files. Change-Id: Ib1170ddabe03de746aae570d30b133aaffb09c88 |
||
|
Zhongyue Luo
|
6b2fbd44f9 |
pep8 check on api-paste.ini when using devstack
Fixes bug #928976 Avoid pep8 check on api-paste.ini Change-Id: I14e84e3c704c4e90d87c73e484d8eb3b63803743 |
||
|
Thierry Carrez
|
71410724cd |
Remove ajaxterm from Nova
Removes copy of ajaxterm code, nova-ajax-console-proxy, and support for get_ajax_console from Nova proper. Implements blueprint remove-ajaxterm Fixes bug 917963 Change-Id: I2c0ff427c53c0f63a18b10475d6b4cbe9a085d83 |
||
|
Joe Gordon
|
9a08e00548 |
Add HACKING compliance testing to run_test.sh
Tests so far: N101 TODO format N201 Except format N301 One import per line N302 import only modules N303 Invalid Import N304 Relative Import Change-Id: I33c021b842e7199b1f5f1f699ea17f7fa5f8ca49 |
||
|
Rick Harris
|
8480d74fa1 |
Making pep8 output less verbose.
Fixes bug #904559 Change-Id: I078b060483890bf8bfc9b78d3174370dea4d6bbc |
||
|
James E. Blair
|
5235106e95 |
Rename .nova-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: Ieaf1dac3207ecb34b911c7edcd2086809abdf49e |
||
|
Jenkins
|
0b28e574af | Merge "First steps towards consolidating testing infrastructure" | ||
|
Duncan McGreggor
|
f845891184 |
First steps towards consolidating testing infrastructure
This commit begins to implement blueprint consolidate-testing-infrastructure by adding a 'testing' subpackage and moving some modules into it. Change-Id: I04bf860bc386bd2016e7dbc5a6f6ef7379a855bb |
||
|
Mark McLoughlin
|
0bbb0e8cb1 |
Remove some remnants of ChangeLog and vcsversion.py generation
Since moving to bzr, we no longer generate ChangeLog and vcsversion.py
and since commit
|
||
|
Lorin Hochstein
|
b08bd96ce5 |
Optional --no-site-packages in venv
Added a flag to run_tests.sh to allow user to optionally install venv with --no-site-packages. This fixes bug 880905 Change-Id: Ic645e0ec56c90b72fef526ebc9f55975d446e2ae |
||
|
Rick Harris
|
f225ea4f2f |
Deallocate ip if build fails.
Fixes LP837687 Change-Id: I7c0ea900225024e69a0265c430724930ce7b892d |
||
|
Monty Taylor
|
21dcf669c7 |
Fix outstanding pep8 errors for a clean trunk.
Also, add an option to run_tests.sh to skip running pep8. We have a separate job in Jenkins which runs pep8, so there's no need to spin our wheels on it during the test run. Change-Id: I552330994e55a36fa96b63658493ed30e2720c85 |
||
|
Ewan Mellor
|
07cbdbedca |
Bug #835952 : pep8 failures do not cause the tests to fail
Add set -eu to run_tests.sh. This will cause it to fail whenever anything goes wrong, which is exactly what we want in a test script. To do this, I had to remove the use of the "let" keyword, which has a bizarre exit status in bash. I also removed the "|| exit" after run_tests, which means that this script will now exit with status 1, not status 0, if run_tests fails. |
||
|
Christopher MacGown
|
91eaa64750 | Fix ugly little violations before someone says anything | ||
|
Christopher MacGown
|
3f82580b98 | Merge config_drive with trunk | ||
|
Christopher MacGown
|
d963e25906 | Config-Drive happiness, minus smoketest |