summaryrefslogtreecommitdiffstats
path: root/nova/testing
Commit message (Collapse)AuthorAgeFilesLines
* Update docs about testing.Monty Taylor2013-02-112-86/+0
| | | | | | | | Add an entry to the HACKING file about testr. While in there, noticed a reference to the now-defunct nova/testing dir. Fixed that, moved the testing README into nova/tests and remove the nova/testing dir. Change-Id: Ibf6fb82658ba73eee9123fa53b340d0b72afb292
* Clarify dangerous use of exceptions in unit testsJohannes Erdfelt2012-09-201-5/+25
| | | | | | | Also, update unit tests to use more specific exception where possible to make auditing easier in the future. Change-Id: I4906e2f8e3ebacf0587f1471ca8dd46c73edc17a
* Remove unused testing.fakeJoe Gordon2012-07-181-1/+0
| | | | Change-Id: If86a65a6908b53e6f467d0e7a36c2ea941bf5040
* Finalize tox config.Monty Taylor2012-06-071-368/+0
| | | | | | | | | | | | | 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
* Unused imports cleanup (folsom-2)Zhongyue Luo2012-06-031-2/+0
| | | | | | Fixes bug #1008023 Change-Id: Ifb8ecbb7430fdabd7b5d81ab23df66942abd9cb7
* Alphabetize importsJoe Gordon2012-05-141-1/+1
| | | | | | | Except for nova/api/, nova/tests/, nova/virt/ In preparation for automated checking being enabled (N306) Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
* pylint cleanupJoe Gordon2012-05-071-2/+0
| | | | | | Mostly remove unused imports Change-Id: Icdb3ec77537b2568f4e85843bab89eb63cd17d8e
* Remove nova.rpc.impl_carrot.Russell Bryant2012-04-021-153/+0
| | | | | | | | | | | | This module was marked as deprecated and scheduled for removal in Essex. Remove it now that Folsom development is open. nova.rpc.impl_kombu should be used instead. This patch also removes nova.testing.fake.rabbit, since as far as I can tell, it isn't used anymore and was the last thing still using the carrot dependency. Change-Id: I8cfb2d09ee5eed439ec1d152261f7097faf08ad6
* improve speed of metadataJesse Andrews2012-03-122-60/+0
| | | | | | | | | | | | | | * don't load every possible answer, only do what is needed * cache instance data for a given address for a 15 seconds using either memcache or fake memcache (in-memory). This means only a single queue/db lookup for multiple calls to metadata service * add cache expirey to fake memcache (don't grow forever) and move it to nova.common.memorycache Addresses Bug #851159 Change-Id: Icf794156e055b18915b8b5be9ba2ab97d2338bbe
* Merge "Clear created attributes when tearing down tests"Jenkins2012-03-071-0/+22
|\
| * Clear created attributes when tearing down testsJohannes Erdfelt2012-03-071-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unittest will keep each test case around after completion pinning any objects references by attributes on the test case. This can bloat the memory used during a full test suite run to the point where the test suite will require much more memory than running all of the services does. On systems witout lots of memory, test suite failures will occur as test cases cannot fork to execute programs. Clearing out __dict__ of any attributes that don't start with a _ (since some are needed by unittest itself) reduces memory significantly. This does require the super class tearDown to be called last in some cases however. Change-Id: I0e660b6c2a77c5613c5a523ba0a64c3d7f6dd128
* | HACKING fixes, all but sqlalchemy.Yuriy Taraday2012-03-071-6/+4
|/ | | | | | | Looks like this fixes all HACKING problems that were around. Thanks to Dina Belova and Alexander Kovalev for this work. Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
* Actual fix for bug 931608.Joe Gordon2012-02-171-4/+5
| | | | | | | | | | -x --stop is a nose flag Provide short term solution to deal with '--hide-elapsed' Can be tested by adding a assertTrue(False) in a test and running ./run_tests.sh -x Change-Id: I7357e7cdaa3d6370ed111d6209917a833d084db3
* Standardize logging delaration and useJason Kölker2012-02-141-1/+1
| | | | | | * Make modules use getLogger(__name__) and log to the result Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
* Adding (-x | --stop) option back to runner.pyAlex Meade2012-02-131-0/+1
| | | | | | fixes bug 931608 Change-Id: I355a3bba38367c820a0eddc006ef480e5134b317
* Fix minor typo in runner.pyHengqing Hu2012-02-111-1/+1
| | | | | | Fixes bug #930519 Change-Id: I53f5f85d1ef8117f6a40a90ee1e9eb12a27dcd53
* Remove the last of the gflags shim layerMark McLoughlin2012-02-101-10/+9
| | | | | | | Make FLAGS a ConfigOpts instance and fix up all the places where we expected FlagValues behaviour. Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
* Backslash continuations (misc.)Zhongyue Luo2012-02-081-4/+4
| | | | | | | | | | | Fixes bug #925166 This patch for packages which have few backslash continuations. Follow up patches will be for packages network, scheduler, virt, db/sqlalchemy, tests, and api/openstack. Change-Id: I4200010b47b33fa8b9115b5d379b543200f6668d
* 'except:' to 'except Exception:' as per HACKINGJoe Gordon2011-12-271-1/+1
| | | | Change-Id: I6e372152946dc7b51a4d84d6f4b893774e7d1a1d
* Updated the test runner module with a sys.path insert so that tests run in andDuncan McGreggor2011-12-071-2/+5
| | | | | | | | outside a virtual environment. This addresses bug 901387 Change-Id: I12a2b1eeaf0ce46796af6e42fd6537bccd6a4d8f
* First steps towards consolidating testing infrastructureDuncan McGreggor2011-12-066-0/+628
This commit begins to implement blueprint consolidate-testing-infrastructure by adding a 'testing' subpackage and moving some modules into it. Change-Id: I04bf860bc386bd2016e7dbc5a6f6ef7379a855bb