summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Move api_version to a class value"0.2.0Jenkins2015-02-041-2/+3
|\
| * Move api_version to a class valueKen'ichi Ohmichi2015-01-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | Volume v2 service clients pass api_version in __init__() now, but Iddd8306723c1ff33105f513c1993a0497a949c29 will move the passed api_version to class values for avoiding a redundant __init__() definition. For doing this, we need to move api_version to class value to avoid initializing it in RestClient __init__(). Change-Id: Ic86739dde83dcac8f68e53599967de53694f692f
* | Merge "Migrate the skip_because decorator from tempest"Jenkins2015-02-042-0/+101
|\ \
| * | Migrate the skip_because decorator from tempestMatthew Treinish2015-02-032-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit migrates the skip_because decorator out of tempest into tempest-lib. Since it is included as parts of existing files the migration script wasn't used to generate tempest sha1s to preserve history. Change-Id: I2c9551d3f9ca23bc9b204a652a87c6eb10bbac9a
* | | Merge "Separate Forbidden exception from Unauthorized"Jenkins2015-02-043-2/+9
|\ \ \ | |/ / |/| |
| * | Separate Forbidden exception from UnauthorizedAshish Gupta2015-01-283-2/+9
| |/ | | | | | | | | | | | | | | Closes-Bug:#1415143 Change-Id: I890498b2df6ae8d8f689537c8d6da1b5c06c2bd6
* | Fix typo: clien => clientJoe Gordon2015-01-271-1/+1
|/ | | | | fix typo in docstring since they are used to generate documentation. Change-Id: I95f97da0992df5a332750824044eb16f86d17a7b
* Merge "Fix migrate_from_tempest script to work with multiple files"Jenkins2015-01-261-5/+8
|\
| * Fix migrate_from_tempest script to work with multiple filesMauro S. M. Rodrigues2015-01-161-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | The '--follow' option from git log was used to follow the file even if it was renamed for instance, although the option can't deal with multiple files which was blocking us to migrate multiple files at once. This patches fixes the issue by looking one file at time and concatenating their ids in the end. Change-Id: I39a2e94e1c27a83de2b976f263928c5199d44b22 Closes-bug: #1411499
* | Merge "Update base.py to include python-openstackclient."Jenkins2015-01-261-0/+19
|\ \
| * | Update base.py to include python-openstackclient.Lilywei1232015-01-061-0/+19
| | | | | | | | | | | | Change-Id: I8a213960e41fb1403a6f0e19068ffef178cbaccf
* | | Merge "Make rest_client exception inheritances easy"Jenkins2015-01-221-7/+3
|\ \ \
| * | | Make rest_client exception inheritances easyKen'ichi Ohmichi2015-01-201-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are rest_client own exceptions, but some of these inheritances are not reasonable. Then, tempest-lib users(like Tempest) can not know what exceptions happen when using rest_client module of tempest-lib. This patch makes them easy. Change-Id: Iba5108eb39b76153326020d2281f8f99ddf1bec6
* | | | Merge "Remove unused exceptions"Jenkins2015-01-211-88/+0
|\ \ \ \ | |/ / /
| * | | Remove unused exceptionsKen'ichi Ohmichi2015-01-201-88/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this patch, exceptions.py is synced with Tempest's exceptions.py. However, it is difficult to do it now because rest_client raises its own exceptions on tempest-lib and Tempest should handle them without Tempest's exceptions. This patch removes unused exceptions in tempest-lib for knowing tempest-lib own exceptions easily. Change-Id: I435f0752685f54e6b86d1f243a5236d79c9e250c
* | | | Merge "Add RateLimitExceeded test case"Jenkins2015-01-211-2/+17
|\ \ \ \ | |/ / /
| * | | Add RateLimitExceeded test caseKen'ichi Ohmichi2015-01-201-2/+17
| | |/ | |/| | | | | | | | | | | | | | | | The rest_client module raises RateLimitExceeded exception, but there was not any tests for the exception. This patch adds it. Change-Id: I933ebe2ed52750088e3941b308b669f088d7f8ed
* | | Updated from global requirementsOpenStack Proposal Bot2015-01-161-1/+1
|/ / | | | | | | Change-Id: Iff36ed9b762cda634434dd14b8e1a27c139c2ce9
* | Migrate rest_client to tempest-lib from tempest0.1.0Ken'ichi Ohmichi2015-01-1612-50/+1285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch migrates rest_client module to tempest-lib from tempest. The latest Change-Ids of each file are the following when this migration: * common/http.py : I43703e2289212389c7841f44691ae7849ed1f505 * common/rest_client.py : Ie9105b5d01e7883213c1d3398cc5fe56782920d9 * common/utils/misc.py : I9a591eaa1cf4dabba58f06a64814611a05a51365 * exceptions.py : Ic8fc216377942619f11a2462b79d0597071ac294 * tests/base.py : I8f14cd2ca6afc38d3fe8ee758272071111022896 * tests/fake_auth_provider.py: Id12341de52204e2c428e10b4b758b700b0fbab09 * tests/fake_http.py : I8f14cd2ca6afc38d3fe8ee758272071111022896 * tests/test_rest_client.py : Ie9105b5d01e7883213c1d3398cc5fe56782920d9 NOTE: Some docstrings are changed to avoid H404 and H405. Change-Id: I879a02681c99376ae57458a0f7a04c8032dfebb2
* | Default the worker number to 0 not NaNChris Dent2015-01-141-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If 'NaN' then the worker balance summary will fail with a TypeError. 0 makes sense in the common cases: * either you have worker tags and they are numbered * or you have no worker tags and thus you have just one worker, and we can call that worker '0' because it is the first one The 'NaN' shows up when you try to use subunit-trace in commands such as python -m subunit.run discover <dir|package> |subunit-trace which is something people are wont to do. Change-Id: Ibe18f16c0c360fc5a995fcf84e5bf2b6c16abd9c
* | Fix subunit-trace on python < 2.70.0.4Matthew Treinish2015-01-071-1/+8
|/ | | | | | | | | | | This commit fixes running subunit-trace on older versions of python, by inlining the total_seconds method from newer versions of python. While tempest-lib is nominally only for python > 2.7 (which is all we test) subunit-trace is slightly different. Since it is expected to be used in the unit test workflows of projects, some of which still run on older python. Change-Id: I33c337bfb376a27bf02cc2d16a69dafba2cea41f
* bring over fail only functionality from nova0.0.3Sean Dague2015-01-051-15/+23
| | | | | | | This brings over the failonly flag from nova, which was extremely useful when hunting failing tests. Change-Id: I21fdc709d6e5bcbb2d2f611611efdf147d4c888e
* Updated from global requirementsOpenStack Proposal Bot2014-12-123-6/+20
| | | | Change-Id: I7d73b83a6bead795352c208d6241aebfbbfb2cf3
* Merge "Add pretty_tox.sh wrapper script to use subunit-trace"Jenkins2014-12-112-1/+8
|\
| * Add pretty_tox.sh wrapper script to use subunit-traceMatthew Treinish2014-12-042-1/+8
| | | | | | | | | | | | | | | | This commit adds a pretty_tox.sh wrapper script for the tempest-lib unit tests to use subunit-trace when running the tests. This should make the output a bit more clear and help with future debugging. Change-Id: I48d670353bb85f7f87a05041bed60ad131555057
* | Merge "Fix migration script to use original SHA1 from tempest's commits"Jenkins2014-12-111-52/+9
|\ \
| * | Fix migration script to use original SHA1 from tempest's commitsMauro S. M. Rodrigues2014-12-051-52/+9
| |/ | | | | | | | | | | | | | | | | Use git log instead of git filter-branch - which rewrites the history - to get SHA1 from the commits that touch the files to be migrated from tempest to tempest_lib. Change-Id: I321d78390991eb90fbb4a176a12187b78edc9f31 Closes-bug: #1386782
* | Merge "Workflow documentation is now in infra-manual"Jenkins2014-12-081-4/+3
|\ \ | |/ |/|
| * Workflow documentation is now in infra-manualJeremy Stanley2014-12-051-4/+3
| | | | | | | | | | | | | | Replace URLs for workflow documentation to appropriate parts of the OpenStack Project Infrastructure Manual. Change-Id: I0247378d9ec5491f749cbaba71502e60298c851b
* | Switch to elapsed time in subunit-trace summaryMatthew Treinish2014-12-041-4/+10
|/ | | | | | | | | | | | | | | | | | This commit switches the time output to the elapsed time instead of the total time in the results summary at the end of subunit-trace. This is accomplished by just measuring the time delta right before we begin processing the result stream until right after. While this is not the most accurate method to measure the elapsed time, it should be sufficient. Previously just the total time was shown which could be misleading since it is just the sum of the execute time for the individual test methods (excluding the test fixtures). When running in parallel this number would usually be a fair bit larger than the elapsed time of the test run. By using the elapsed time instead it makes it easier to track the performance of the run. Change-Id: I7a1113c7f1333389b1b42249cafc4a45d630cb9f
* Drop version string from setup.cfgMatthew Treinish2014-12-021-1/+0
| | | | | | | | This commit drops the working release version from setup.cfg for the pending release. We'll rely on pbr to do the versioning for things based on tags from now on. Change-Id: I0e48b9146622860ffd943f49b98d09a6c876aa0e
* Fix inheritance order in BaseTestCase0.0.2vponomaryov2014-12-023-20/+65
| | | | | | | | | | | | | | With release of testtools 1.4.0 test ids do not contain test attrs anymore. It is related to improper MRO. Make proper inheritance order, remove testresources dependency as unused, add unit tests. Corresponding fix in Tempest: 2474f41f10808c7283778b96f8693238ea21297f Change-Id: Ife208c6e74f18bdcd86e47b05caad6dc8f53d779 Closes-Bug: #1398487
* Bump version stringMatthew Treinish2014-10-301-1/+1
| | | | | | | After the first tempest lib release the version string was never incremented. This commit corrects the issue. Change-Id: Iaf2ef6631f6a919e12ee504caecf7222e371eec3
* Merge "Don't edit commit history with migrate from tempest tool"0.0.1Jenkins2014-10-091-16/+27
|\
| * Don't edit commit history with migrate from tempest toolMatthew Treinish2014-10-071-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the migrate_from_tempest tool to not mess around with the commit history. The previous approach in the tool isn't actually something that we can do. The commit history we had when the repository was created is the canonical past for tempest-lib and we can't migrate over any other tempest commits directly, this was a mistake on my part. Moving forward we'll just have to refer to the commit sha1s from the tempest repo in the commit message. This script will now just copy the specified files from tempest and generate a commit message with the complete list of sha1s from the tempest history. Change-Id: I7e2b2a0543d113961598b33d23985a1082fbba9a
* | Merge "Remove unused method and variable in base.py"Jenkins2014-10-071-11/+0
|\ \
| * | Remove unused method and variable in base.pyMasayuki Igawa2014-09-261-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | base.py was migrated and simplified by commit: 45da2a78dc9d560b021ae3fa90d9b7e45b6c9b51 But there are some unused codes in it. This commit just removes them. Change-Id: Ie16fdf75b69006cf48ad9b2649c4bf3659901b80
* | | Remove a duplicate ignore rule of pep8Masayuki Igawa2014-09-261-2/+2
|/ / | | | | | | | | | | | | There are two E123 declarations in tox.ini. However, we don't need the duplication. This commit removes one. Change-Id: I9e681b99b8b6df84ae986974ac733a380e127605
* | Merge "Setup subunit-trace as an entry point"Jenkins2014-09-194-3/+8
|\ \
| * | Setup subunit-trace as an entry pointMatthew Treinish2014-09-164-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | This commit moves subunit-trace into the newly created cmd dir and adds a pbr entry point to run it as a binary. This will enable using subunit-trace just by installing tempest-lib. Change-Id: I3ae379edca3e776e90a18d53393c4c1424d291f7
* | | Merge "Ignore cover directory from the git repository"Jenkins2014-09-181-0/+1
|\ \ \ | |/ / |/| |
| * | Ignore cover directory from the git repositoryMasayuki Igawa2014-09-121-0/+1
| | | | | | | | | | | | Change-Id: I5d39cab574e8fcf8e8c4211361dd085e26fec5d6
* | | Migrated subunit-trace.py from tempestMatthew Treinish2014-09-161-0/+247
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: ecaa61e Merge "Fail tempest if 0 tests are run" 118dfea Merge "Remove test start output in pretty tracer" 8ce8acb Fail tempest if 0 tests are run 8a81d2e Remove test start output in pretty tracer b38f2f1 Merge "Correct misspelled words" a4c086b Correct misspelled words 5541db7 Merge "Add total runtime to summary output" 8dfc88e Add total runtime to summary output 7357907 Merge "Change how tempest debug logs are displayed" b3ca686 Change how tempest debug logs are displayed 813793c Merge "create test and worker summary report" 31ad041 create test and worker summary report 05fa8b5 Merge "Add in a concurrency aware subunit filter" 063bcb8 Add in a concurrency aware subunit filter bc68916 Add README to see the commit history for these files refer to the above sha1s in the tempest repository Change-Id: Ided295ec08c57bc64e0f96307df9e233febd886a
* | Add docs for docstrings in cli to sphinx outputMatthew Treinish2014-09-082-0/+22
| | | | | | | | | | | | | | This commit updates the sphinx docs to include the docstrings for the tempest_lib.cli module to the output from sphinx. Change-Id: I854e63497836e77a90040bbf1d1a2011a6e873a8
* | Cleanup documentation for cli execute codeMatthew Treinish2014-09-081-16/+230
| | | | | | | | | | | | | | This commit cleans up the in-line documentation for the class and methods for calling cli commands. Change-Id: I1ebb75e3a3c497f3240e909f215010cbfdf48cfb
* | Add merge_stderr option to all client methodsMatthew Treinish2014-09-051-17/+19
|/ | | | | | | | | | This commit makes the client methods behave more uniformly. Before there only certain methods had a kwarg for merge_stderr, which could lead to unexpected behavior depending on the clients being used. By adding the option everywhere there shouldn't be an unexpected behavior around merge_stderr. Change-Id: I227d5e684c94da29a47eb9876a9ed40cdbea084c
* Add the cli_dir argument to nova-mange's execute callMatthew Treinish2014-08-291-1/+2
| | | | | | | This commit adds a missing cli_dir argument to the nova-manage execute call. Without this if nova-manage were installed somewhere besides /usr/bin using the nova_manage method would fail because it couldn't find the binary.
* Remove admin param from client method definitionsMatthew Treinish2014-08-291-18/+18
| | | | | | | | This commit removes the admin kwarg from the client methods in the CLIClientBase class. The admin argument was a leftover from tempest but it doesn't have a place in the new class, because it just takes in credentials as args. So admin can be specified by just initializing the class using admin credentials.
* Add missing log_format definitionMatthew Treinish2014-08-291-0/+6
| | | | | | | As part of shrinking the base test class file down to just the core functionality the definition for the logging fixture log format was accidently removed. This causes any test based on the test class to fail during setUp. This commit fixes the oversight by adding it back.
* Remove versionutils use in cli frameworkMatthew Treinish2014-08-292-100/+0
| | | | | | | The oslo-incubator version utils module requires oslo log to be pulled in. This causes conflicts with tempest's use of oslo.log, so for the time being this commit removes the uses of versionutils from the library.