summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated from global requirements1.2.0OpenStack Proposal Bot2014-10-111-1/+1
| | | | Change-Id: I558d64ab43c42f7d71f5783c1d63db5be53c8bf0
* Merge "Add an extra parameter for test directory in debugger script"Jenkins2014-10-112-5/+40
|\
| * Add an extra parameter for test directory in debugger scriptSteve Martinelli2014-09-292-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Set install_command in tox to avoid pre-releasesDoug Hellmann2014-10-111-0/+1
|/ | | | | | | | 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
* Merge "Add history/changelog to docs"Jenkins2014-09-292-0/+2
|\
| * Add history/changelog to docsDavanum Srinivas2014-09-102-0/+2
| | | | | | | | Change-Id: I9d54f6538beff5d1c013c73f11a4aa6c32933c66
* | Merge "Work toward Python 3.4 support and testing"Jenkins2014-09-291-1/+1
|\ \
| * | Work toward Python 3.4 support and testingJeremy Stanley2014-09-221-1/+1
| | | | | | | | | | | | Change-Id: I111d9d6478d4119209dff06aa712aa4cdd61eaa4
* | | Merge "Drop .sh extension from oslo_debug_helper.sh"Jenkins2014-09-282-1/+1
|\ \ \
| * | | Drop .sh extension from oslo_debug_helper.shSteve Martinelli2014-09-182-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | 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
* | | Handle tempfile content encodingJoshua Harlow2014-09-252-2/+68
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | Add links to best practices video and etherpadDoug Hellmann2014-09-192-0/+11
| | | | | | | | | | | | Sean, Jay, and Dan presented some tips for using mock safely. Change-Id: I92b27617eddb1a3beb79cf168939828f0f79c8a5
* | Updated from global requirementsOpenStack Proposal Bot2014-09-191-1/+1
|/ | | | Change-Id: Ic9071ee0571bfb0bc7df0f0d7d5199fdc91d83bc
* fix typo and formatting in contributing docsDavanum Srinivas2014-09-102-4/+4
| | | | Change-Id: I80405a19a52e9b31988fe6317344da3f9d002f2e
* Merge "warn against sorting requirements"Jenkins2014-09-052-0/+8
|\
| * warn against sorting requirementsDoug Hellmann2014-09-052-0/+8
| | | | | | | | | | Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e Addresses-Bug: #1365061
* | Merge "Add fixture for mock.patch.multiple"1.1.0.0a21.1.0Jenkins2014-09-053-1/+45
|\ \
| * | Add fixture for mock.patch.multipleDoug Hellmann2014-09-053-1/+45
| | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Ensure that mock.patch.stopall is called last"Jenkins2014-09-052-1/+38
|\ \ \
| * | | Ensure that mock.patch.stopall is called lastDoug Hellmann2014-09-042-1/+38
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Cleaning up index.rst file"Jenkins2014-09-051-8/+2
|\ \ \ | |_|/ |/| |
| * | Cleaning up index.rst fileChristian Berendt2014-07-171-8/+2
| | | | | | | | | | | | | | | | | | Removed notes about the generation of the file. Change-Id: I69e717a0edb08cd369f28c8b899889811b17657d
* | | Remove differences between Python 2.x and 3.x versionsYuriy Taraday2014-09-036-23/+5
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Require six"Jenkins2014-08-261-0/+1
|\ \
| * | Require sixDirk Mueller2014-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | The module init unconditionally imports six, so depend on it. Change-Id: Ib1025759c27ed284b467351a486ffdb8e69535a1
* | | Add documentation for running oslo_debug_heler.shSteve Martinelli2014-08-253-10/+38
| | | | | | | | | | | | | | | | | | | | | Removed inline comments from the shell file and added them to the developer docs. Change-Id: Iac0f969165883e173389a42e1bd1b0bc5d513553
* | | Restructure oslotest docsSteve Martinelli2014-08-254-30/+38
|/ / | | | | | | | | | | | | 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
* | Add pdb support to tox with debug helper shell scriptSteve Martinelli2014-08-252-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Updated from global requirementsOpenStack Proposal Bot2014-08-222-2/+2
|/ | | | Change-Id: I8ec0fdaf8b48c1ca71270bfdb1e22124407195ef
* Merge "Moving to use the mock module found in Python3"Jenkins2014-07-118-6/+26
|\
| * Moving to use the mock module found in Python3George Peristerakis2014-06-208-6/+26
| | | | | | | | Change-Id: I6a2af0405b8628d4589ce7edb56f10935d5112ea
* | Add known issue about time.time mockingMarc Koderer2014-07-031-0/+9
| | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2014-06-242-2/+2
| | | | | | | | Change-Id: Id9bbcfd2164856dbc80b72ace08e9ad5c30d841d
* | Merge "Add API documentation"Jenkins2014-06-236-14/+70
|\ \ | |/ |/|
| * Add API documentationDoug Hellmann2014-06-236-14/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Update to hacking 0.9.21.1.0.0a1Mark McLoughlin2014-06-173-3/+2
|/ | | | | | Only a small import ordering fix needed. Change-Id: I3e034b7081297237e89a7b37c9182e1a365c6e43
* Cleanup mock patches on BaseTestCase tearDown()Ihar Hrachyshka2014-05-282-0/+23
| | | | | | | | 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
* Add unit test for olsotest base classMarc Koderer2014-05-281-0/+73
| | | | | | | Oslotest base class has special logic and uses environment variables to trigger them. Change-Id: Ic18b6fe528e1d95ad4390b9806aa34c050362690
* fix .gitreview after renameDoug Hellmann2014-05-271-1/+1
| | | | Change-Id: I1d84599c80147b313d5570fb1333a1ce7cfe4ad8
* Sync new sphinx requirement specDoug Hellmann2014-05-272-2/+2
| | | | | | | Update the version of sphinx we use to avoid: "error: 'source_dir' must be a directory name" Change-Id: I143c76af29e690a6d94fdf76ed669fcffdb3b4a3
* Merge "Update cross-test directions"Jenkins2014-05-231-50/+6
|\
| * Update cross-test directionsDoug Hellmann2014-04-111-50/+6
| | | | | | | | | | | | | | Update the directions for configuring a cross-test job for users of oslo.test. Change-Id: Ic0e6261aee63456c2e86aed1927f3ad46c125775
* | Set log level to default valueMarc Koderer2014-05-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Updated from global requirements"Jenkins2014-05-071-0/+8
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2014-04-301-0/+8
| |/ | | | | | | Change-Id: I8cbe335d5a4476407ad76091ca4605c6582ec8a5
* | Update project name in doc buildDoug Hellmann2014-04-102-3/+4
|/ | | | | | The project name should be oslotest not oslo.test. Change-Id: I1ff96b8ab7c12a5718c39e9afa998d463cd4b00d
* Import run_cross_tests.sh from oslo-incubator1.0.0Doug Hellmann2014-03-272-4/+13
| | | | | | | | | | 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
* Merge "Require testrepository and other tools at runtime"Jenkins2014-03-244-10/+8
|\
| * Require testrepository and other tools at runtimeDoug Hellmann2014-03-054-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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 up documentation filesDoug Hellmann2014-03-116-12/+45
| | | | | | | | | | | | | | Fix documentation files so sphinx does not complain about missing headers or invalid include directives. Change-Id: Ife520469f62ea048c552b7610b1da5c1bd703d75