summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup after installAndreas Jaeger2016-08-281-1/+1
| | | | | | | | | | | | Tox tests are run on developer machines and on long lived slaves. We should not leave lots of directories like /tmp/python-openstackclient-tox_install-sdnltRu lying around. Instead delete the temporary directory after our run. Remove also an obsolete comment. Change-Id: I939eae82dba3287fd4e4086128ebf4609a0e0770
* Fix post and periodic jobsAndreas Jaeger2016-08-221-33/+33
| | | | | | | | | | | | | The usage of zuul-cloner in tox_install breaks post and periodic jobs. Update the script, it does not need to handle unconstrainted installs anymore (see tox.ini). There's no need to set ZUUL_BRANCH explicitely - it's set via the environment and branch is passed in as well. Note that this script is needed for the edit-constraints call, add a comment. Change-Id: I0077c986a17d6bb92791474e03d1e77776e9382f Closes-Bug: #1615430
* Follow upper constraints for all tox targetsSteve Martinelli2016-07-171-0/+55
| | | | | | | | | | With the exception of releasenotes and cover, we should follow upper constraints. The tox_install file was copied over from python-neutronclient [1]. [1] http://git.openstack.org/cgit/openstack/python-neutronclient/tree/tools/tox_install.sh Change-Id: I633fa149820efafd7b2acec0388fa8bc8d06c988
* Pep8 environment to run on delta code onlySheel Rana2016-05-121-0/+15
| | | | | | | | | | | Currently tox -epep8 will run flake8 on whole code. To make this fast, flake8 support is added for only updated(delta) code. Same can be run by "tox -efast8". Change-Id: I9c55fed32ae3060c21ec278398e9e07fb4a0fe13 Implements: BP tox-pep8-diff-part-only
* Remove references to venvSteve Martinelli2015-04-243-242/+0
| | | | | | | | Stick to using tox, remove the tools directory since it only contained references to using venv. Also update a few other locations that would have otherwise been incorrect. Change-Id: I7d3e9067256ac0935f07904abcf584d898ac1d6f
* sync oslo bitsSteve Martinelli2014-06-201-1/+1
| | | | | | | | | update gettextutils.py, strutils.py, install_venv_common.py remove iniparsers.py oslo-incubator commit 1223cf Change-Id: I23923d580f57ab6c12622f10d9f278c44c863feb
* Update oslo incubator bitsDean Troyer2014-02-201-2/+0
| | | | | | | | | * update gettextutils.py, strutils.py, install_venv_common.py * remove cfg.py, openstackkeyring oslo-incubator commit 630d3959b9d001ca18bd2ed1cf757f2eb44a336f Change-Id: I0ae9b9dc72ec88ed64a8c353b9c51734ee2cd24c
* Closes-Bug: #1262321Terry Howe2013-12-191-1/+0
| | | | | | Remove the unimplemented post_process method call Change-Id: Iaed526cc25a651008a66ad7f0050070ab2b4c595
* Sync oslo-incubator for py33 fixesDean Troyer2013-10-111-42/+4
| | | | Change-Id: I261ec6bb34b29169ba3547305deab051f85a3d4d
* Sync install_venv_common from osloMonty Taylor2013-07-051-63/+43
| | | | Change-Id: I0a57c658e0f89d13963862013793e12ae208c05b
* Rename requires files to standard names.Zhenguo Niu2013-05-293-27/+2
| | | | | | | | | Rename tools/pip-requires to requirements.txt and tools/test-requires to test-requirements.txt. These are standard files, and tools in the general world are growing intelligence about them. Change-Id: I903213fda94a833335abaa7ad9a90bbb688ec15a Fixes: bug #1179008
* Migrate to pbr.Monty Taylor2013-05-161-0/+2
| | | | | | Fixes bug 1179007 Change-Id: Ief74b121dcad28bb1c2b6044ef72e0cbd51e8f65
* Migrate to flake8.Monty Taylor2013-05-161-1/+6
| | | | | | Fixes bug 1172444 Change-Id: Ieca721663aea2fd31753df4abfb5b01a7145b26a
* Adds image `create` and `delete` functionality.Josh Kearney2013-04-231-1/+1
| | | | | | | | | We use the V1 API for `create` since it does not yet exist in the V2 API in glanceclient. For blueprint glance-client. Change-Id: Ifa819c14f6a013f4530d16247a671e5a1c740a28
* Add Cinder API V1 SupportSteve Martinelli2013-02-081-0/+1
| | | | | | | | | | | | | made the changes suggested by dtroyer added client modified setup.py entry points updated pip required added support for create/delete/list volume types openstack list type openstack create type typeName openstack delete type typeNameOrId Change-Id: I43655de151582e37f14dc9550151a66db7a009ab
* Merge "Sync latest openstack-common."Jenkins2013-02-061-0/+7
|\
| * Sync latest openstack-common.Josh Kearney2013-01-311-0/+7
| | | | | | | | | | | | | | This fixes an issue when trying to run install_venv from within the source directory. Change-Id: Id4dcb070319ec52d0a1b466e911fbfdf805db613
* | Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-311-1/+1
|/ | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
* Use install_venv_common.py from oslo.Josh Kearney2013-01-292-204/+252
| | | | | | | This syncs install_venv_common.py from oslo and reworks the tools/install_venv.py script to use the new library. Change-Id: I3426a7f51b0018e074cc6f4b1d70b38e52464a38
* Migrate from nose to testr.Josh Kearney2013-01-221-6/+5
| | | | | | | | Run tests with testr for parallel execution. Part of blueprint grizzly-testtools. Change-Id: I560592186f2f440049a451a32e58067262ab62d0
* Clean up test environment and remove unused imports.Josh Kearney2013-01-224-19/+250
| | | | | | First round of adding more complete unit test coverage. Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
* Merge "Move from unittest2 to testtools"Jenkins2013-01-151-2/+3
|\
| * Move from unittest2 to testtoolsDean Troyer2013-01-151-2/+3
| | | | | | | | Change-Id: I475a082af0660e0ee0e86ca4cd1bf0e2d711e3ed
* | Merge "bug 1091029"Jenkins2012-12-271-1/+1
|\ \
| * | bug 1091029Ben Andrews2012-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | sets version that pip can use for pyparser to one that is for python 2.X. 2.0.0 is only for python 3 Change-Id: Ief16981b5e2c7d8716fdf77e15998cc9ffae9779 Fixes: bug #1091029
* | | Increment minimum required keystoneclient version numberHenry Nash2012-12-271-1/+1
| |/ |/| | | | | | | | | | | | | | | | | The movement of auth_token from keystone to keystoneclient is part of the updated 0.2 version of keystoneclient. The server still maintains an import back from the client for backward compatibility. However, in order to support this, installations must upgrade to the latest 0.2 version of the client. Change-Id: I1ed1ebebbd56b2ed9c035c9e7d83783c8b2ae5fc
* | Merge "Remove upper bounds on openstack dependencies."Jenkins2012-12-271-2/+2
|\ \ | |/ |/|
| * Remove upper bounds on openstack dependencies.James E. Blair2012-11-161-2/+2
| | | | | | | | Change-Id: Ib2980bc219aba66cfdbc67b7fc4eafbf6501ef23
* | Add cliff prereqsDean Troyer2012-09-061-1/+3
|/ | | | | | The real issue is cmd2 not pulling in pyparsing properly on a fresh system. Change-Id: I9bae29f9a664431d0145ebc5a0cc4caec638d739
* Merge "Keyring support for openstackclient."Jenkins2012-08-221-0/+2
|\
| * Keyring support for openstackclient.Bhuvan Arumugam2012-08-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 1030440 If password is defined in keyring, use it; otherwise, prompt for the password. Keying is configured using command line switch, --os-use-keyring or env(OS_USE_KEYRING). * openstackclient/common/openstackkeyring.py The abstract class for keyring, specifically for openstack. The class is used to store encrypted password in keyring, without prompting for keyring password. The encrypted password is stored in ~/.openstack-keyring.cfg file. * openstack-common.py Update openstackkeyring library from openstack.common. * openstackclient/shell.py OpenStackClient.build_option_parser(): New boolean argument, --os-use-keyring, default to env(OS_USE_KEYRING). OpenStackClient.authenticate_user(): Get password from keyring, if it is defined; otherwise, prompt for the password. If user enter a password and keyring is enabled, store it in keyring. OpenStackClient.init_keyring_backend(): New method to define openstack backend for keyring. OpenStackClient.get_password_from_keyring(): New method to get password from keyring. OpenStackClient.set_password_in_keyring(): New method go set password in keyring. * toos/pip-requires Define keyring and pycrypto as one of dependent. Change-Id: I36d3a63054658c0ef0553d68b38fefbc236930ef
* | Add nosehtmloutput as a test dependency.Clark Boylan2012-08-211-0/+1
|/ | | | | | | | Adding nosehtmloutput as a test dependency allows nose to output its results to an html file. This will be used by Jenkins to save logs on a different server. Change-Id: I9f7bdf848aeb0fee727da9cd3b651b3a3ce53182
* Use PyPI for client libs.Monty Taylor2012-07-021-2/+2
| | | | Change-Id: I1a77f2a5973053de0e45b815359ff2fa42318682
* Add post-tag versioning.Monty Taylor2012-06-251-3/+2
| | | | Change-Id: I98e5f7aa788b1ab1a866b21e0a17a63b8d5efae3
* Create tests for shell interfaceDean Troyer2012-06-221-0/+1
| | | | | | | * use unittest2 * shell: command-line options Change-Id: I558fb10b8607e4f6e5c44d5fcac902546a8748a4
* Moved test related packages to test-requiresLorin Hochstein2012-05-162-2/+2
| | | | Change-Id: Ib4a4394b279188aa969c504b52b19c26746a97e1
* Add Identity to ClientManagerDean Troyer2012-05-041-1/+2
| | | | | | | | * Make the Identity client in identity.client.make_client() * Auth via ClientManager.identity * Skip extra auth roundtrip in compute client Change-Id: I0190639e38f83997c233195f6cc27ff3afdfba10
* Fix "help" command and implement "list server" and "show server"Doug Hellmann2012-05-041-0/+1
| | | | | | | | | | | blueprint client-manager blueprint nova-client bug 992841 Move the authentication logic into a new ClientManager class so that only commands that need to authenticate will trigger that code. Implement "list server" and "show server" commands as examples of using the ClientManager, Lister, and ShowOne classes. Change-Id: I9845b70b33bae4b193dbe41871bf0ca8e286a727
* Add openstack-common and test infrastructure.James E. Blair2012-04-283-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix pep8 errors (project is pep8 clean now). Update setup.py to use openstack-common style dependencies. Remove the unused novaclient dependency. Change the keystoneclient dependency to a git URL. Add test-requires, and move some pip-requires dependencies into it. Remove the test_utils unit test which wasn't testing anything that is actually present in the project. Add the test_authors unit test. Use tox for running tests locally. See: http://wiki.openstack.org/ProjectTestingInterface Tox can manage virtualenvs, and is currently doing so for running tests in Jenkins. It's just as, or more, useful for running tests locally, so this starts the migration from the run_tests system to tox. The goal is to reduce duplicate testing infrastructure, and get what's running locally on developer workstations as close to what is run by Jenkins as possible. Run_tests.sh will now call tox to facilitate the transition for developers used to typing "run_tests.sh". Developers will need tox installed on their workstations. It can be installed from PyPI with "pip install tox". run_tests.sh outputs those instructions if tox is not present. New facilities are available using tox directly, including: tox -e py26 # run tests under python 2.6 tox -e py27 # run tests under python 2.7 tox -e pep8 # run pep8 tests tox # run all of the above tox -e venv foo # run the command "foo" inside a virtualenv The OpenStack nose plugin is used when running tox from the command line, so the enhanced, colorized output is visible to developers running the test suite locally. However, when Jenkins runs tox, xunit output will be used instead, which is natively understood by jenkins and much more readable in that context. Change-Id: Ib627be3b37b5a09d3795006d412ddcc35f8c6c1e
* First commitDean Troyer2012-04-181-0/+9