| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Closes-Bug:#1415143
Change-Id: I890498b2df6ae8d8f689537c8d6da1b5c06c2bd6
|
|/
|
|
|
| |
fix typo in docstring since they are used to generate documentation.
Change-Id: I95f97da0992df5a332750824044eb16f86d17a7b
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I8a213960e41fb1403a6f0e19068ffef178cbaccf
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / / |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
The rest_client module raises RateLimitExceeded exception, but
there was not any tests for the exception. This patch adds it.
Change-Id: I933ebe2ed52750088e3941b308b669f088d7f8ed
|
|/ /
| |
| |
| | |
Change-Id: Iff36ed9b762cda634434dd14b8e1a27c139c2ce9
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This brings over the failonly flag from nova, which was extremely
useful when hunting failing tests.
Change-Id: I21fdc709d6e5bcbb2d2f611611efdf147d4c888e
|
|
|
|
| |
Change-Id: I7d73b83a6bead795352c208d6241aebfbbfb2cf3
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.
Change-Id: I0247378d9ec5491f749cbaba71502e60298c851b
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
After the first tempest lib release the version string was never
incremented. This commit corrects the issue.
Change-Id: Iaf2ef6631f6a919e12ee504caecf7222e371eec3
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| | |
There are two E123 declarations in tox.ini. However, we don't need the
duplication. This commit removes one.
Change-Id: I9e681b99b8b6df84ae986974ac733a380e127605
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: I5d39cab574e8fcf8e8c4211361dd085e26fec5d6
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
This commit updates the sphinx docs to include the docstrings for the
tempest_lib.cli module to the output from sphinx.
Change-Id: I854e63497836e77a90040bbf1d1a2011a6e873a8
|
| |
| |
| |
| |
| |
| |
| | |
This commit cleans up the in-line documentation for the class and
methods for calling cli commands.
Change-Id: I1ebb75e3a3c497f3240e909f215010cbfdf48cfb
|
|/
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|