| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I558d64ab43c42f7d71f5783c1d63db5be53c8bf0
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The `python-*client`'s usually give back the full package name
i.e. python-keystoneclient, and the script assumes thats where
the tests are, but most clients have their tests under just
*client, or in this case keystoneclient.
Oslo projects have a similar issue.
Change the debug script to accept an optional argument that can
be used to override the guesstimated value.
Change-Id: If0a25ae7ab9f854f87271a377dd228e2ebfb107f
|
|/
|
|
|
|
|
|
| |
tox (lovingly) uses the --pre option with pip. We don't want that, so
override the install_command with a version that doesn't include it.
Change-Id: I0b8e48488d5c138c0aac85df2336b2340d7c59c4
Closes-Bug: #1379998
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I9d54f6538beff5d1c013c73f11a4aa6c32933c66
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I111d9d6478d4119209dff06aa712aa4cdd61eaa4
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
To be compliant with Debian policy on naming binary files, the
shell file should not have a .sh extension.
Change-Id: I4549c6942b1367c7e490e48ed275ff6a3bcddfa5
Closes-Bug: #1370488
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When a tempfile tuple is given to create allow that tuple
to optionally provide the encoding to use when the content
string is written (default it to utf-8 if not provided).
This is to resolve the need to worry about encodings when
oslotest is used in py3.x where the tempfiles that are currently
opened are opened in binary mode (and therefore aren't able
to write unicode strings without encoding).
Change-Id: Ibd42d14977b3438aada162199d82661c58fa5f73
|
| |
| |
| |
| |
| |
| | |
Sean, Jay, and Dan presented some tips for using mock safely.
Change-Id: I92b27617eddb1a3beb79cf168939828f0f79c8a5
|
|/
|
|
| |
Change-Id: Ic9071ee0571bfb0bc7df0f0d7d5199fdc91d83bc
|
|
|
|
| |
Change-Id: I80405a19a52e9b31988fe6317344da3f9d002f2e
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Addresses-Bug: #1365061
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add another fixture to support mock.patch.multiple() so that test suites
using that function don't have to import mock directly.
Change-Id: I58368dddda347410459d8f5a713e7395253c3697
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix the way we register mock.patch.stopall as a cleanup so that it is
called last to ensure that we do not then later try to stop any
individual mocks that will have already been stopped.
Change-Id: I50235eb1c8fae3e690fce63b27d18cafdefd8c4c
Partial-Bug: #1365678
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Removed notes about the generation of the file.
Change-Id: I69e717a0edb08cd369f28c8b899889811b17657d
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We had these differences in requirements:
- mox in 2.x vs mox3 in 3.x: mox3 works for 2.x as well, so use it
everywhere, mox3 version bumped to match global-requirements;
- mock in 2.x, absent in 3.x (in stdlib): it's installable on 3.x, so we
can leave it in requirements;
- six in 2.x, absent in 3.x: is directly required by this lib, has been
installed indirectly through hacking.
test-requirements files were identical.
This change allows us to build universal wheels and avoid confusion, see ML:
http://lists.openstack.org/pipermail/openstack-dev/2014-September/044663.html
Change-Id: I8bd2d561bf966c6dc1394a7d29d26f056d162fa9
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The module init unconditionally imports six, so depend
on it.
Change-Id: Ib1025759c27ed284b467351a486ffdb8e69535a1
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Removed inline comments from the shell file and added them to
the developer docs.
Change-Id: Iac0f969165883e173389a42e1bd1b0bc5d513553
|
|/ /
| |
| |
| |
| |
| |
| | |
The bulk of the documentation was coming from README.rst, probably
too much, so I moved it to it's own file under docs.
Change-Id: Iec30feae9c152af7d8b6a1b79670b3f0149d2360
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The Keystone team has been using a home brewed `debug_helper.sh`
file to run tests with pdb support, it's now being also used by
pycadf too. As noted by bnemec [1] we should move this to oslo.
[1] https://bugs.launchpad.net/pycadf/+bug/1354192
To run any test in particular, run tox with -e debug:
`tox -e debug`
It also supports passing in a specific test module, class or case.
The shell file runs testtools underneath the covers to get pdb
support.
Change-Id: Idb715bc137459a2f6d16ac3f65c718a567df49ff
Co-Authored-By: Brant Knudson <bknudson@us.ibm.com>
|
|/
|
|
| |
Change-Id: I8ec0fdaf8b48c1ca71270bfdb1e22124407195ef
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I6a2af0405b8628d4589ce7edb56f10935d5112ea
|
| |
| |
| |
| |
| |
| |
| |
| | |
Since the log level may change by setting the environment variable
OS_DEBUG a hint is added into the base class.
Change-Id: I351e2c59fe75c14dba398cb734a9648650c26074
Closes-bug: 1320841
|
| |
| |
| |
| | |
Change-Id: Id9bbcfd2164856dbc80b72ace08e9ad5c30d841d
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add docstrings and sphinx structure to expose them through the developer
docs for the library.
Also add a 'docs' target in tox.ini to make building the documentation
locally easier.
Remove the nearly useless usage.rst file.
Turn on the pbr flag to treat doc build warnings as errors.
Closes-bug: #1329952
Change-Id: I274a4144edf4efe9ed786e220e40003fda6f99e0
|
|/
|
|
|
|
| |
Only a small import ordering fix needed.
Change-Id: I3e034b7081297237e89a7b37c9182e1a365c6e43
|
|
|
|
|
|
|
|
| |
Instead of cleaning up any remaining mock patches in each unit test that
uses them, do it once on BaseTestCase tearDown().
Change-Id: I121ba554e16d83fc5908bb85afee4940f42dc4eb
Closes-Bug: 1323214
|
|
|
|
|
|
|
| |
Oslotest base class has special logic and uses environment variables
to trigger them.
Change-Id: Ic18b6fe528e1d95ad4390b9806aa34c050362690
|
|
|
|
| |
Change-Id: I1d84599c80147b313d5570fb1333a1ce7cfe4ad8
|
|
|
|
|
|
|
| |
Update the version of sphinx we use to avoid:
"error: 'source_dir' must be a directory name"
Change-Id: I143c76af29e690a6d94fdf76ed669fcffdb3b4a3
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Update the directions for configuring a cross-test job
for users of oslo.test.
Change-Id: Ic0e6261aee63456c2e86aed1927f3ad46c125775
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of setting the log level hard coded to INFO just let the used
logger module decide which level is the default. Otherwise a usage
of this module will change the log level globally to INFO which is not
the default for the python logger module (see
http://hg.python.org/cpython/file/2.7/Lib/logging/__init__.py#l1490)
Change-Id: I75a0517564e6829dfc1451c77da888548ad2219c
Closes-bug: 1320841
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I8cbe335d5a4476407ad76091ca4605c6582ec8a5
|
|/
|
|
|
|
| |
The project name should be oslotest not oslo.test.
Change-Id: I1ff96b8ab7c12a5718c39e9afa998d463cd4b00d
|
|
|
|
|
|
|
|
|
|
| |
Replace the local version of run_cross_tests.sh with
the version in oslo-incubator.
Depends on https://review.openstack.org/#/c/83411/
and https://review.openstack.org/#/c/83412/
Change-Id: I3d3e25f92ab6337432b54967a381662f32902a6d
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Normally we don't want testrepository and some of the other
related tools to be required at runtime, so they are listed
in test-requirements.txt. However, this library is a test
library, so it makes sense for them to be runtime requirements.
As we port other test suites to use oslotest, we can remove
their direct requirement on the tools and let oslotest manage
the version dependency.
Change-Id: I37ccf6514be4fcc21e1954d425e493c7fc920f8c
|
| |
| |
| |
| |
| |
| |
| | |
Fix documentation files so sphinx does not complain about
missing headers or invalid include directives.
Change-Id: Ife520469f62ea048c552b7610b1da5c1bd703d75
|