summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add bash_completion to swiftclientMatthew Oliver2018-07-131-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch basically follows the bash completion model that other OpenStack clients use. It creates a new command to swiftclient called `bash_completion`. The `bash_completion` command by default will print all base flags and exsiting commands. If you pass it a command, it'll print out all base flags and any flags that command accepts. So as you type out your swift command and auto-complete, only the current available flags are offered to you. This is used by the swift.bash_completion script to allow swift commands to be bash completed. To make it work, place the swift.bash_completion file into /etc/bash_completion.d and source it: cp tools/swift.bash_completion /etc/bash_completion.d/swift source /etc/bash_completion.d/swift Because swiftclient itself is creating this flag/command output it should automatically add anything we add to the swiftclient CLI. Change-Id: I5609a19018269762b4640403daae5827bb9ad724
* Revert "Add Constraints support"Tim Burke2018-01-171-30/+0
| | | | | | | | | | | | Per http://lists.openstack.org/pipermail/openstack-dev/2017-December/125348.html > For many projects, tox_install.sh is not needed at all Let's see if that holds for python-swiftclient! This reverts commit f2f278fcbec3ad52a1726bb5a3f775d13bcc99dc. Change-Id: I0462c50ec71d87bac226f83a0d0942871ef5a0e7
* Make tox runnable in a directory with spacesTim Burke2017-11-281-7/+7
| | | | | | | | | | | I noticed a disturbing lack of quote-wrapping in change I7cb4b44952713752435e1faf0f63bf0d37e7dda6 but as I poked at it, I realized that trouble runs rampant. This seems to clean it all up, though I haven't tested *every* environment we define. Change-Id: I1454eb113e5bd9125d39f2e57e2ed96f6ddc42fc
* Update tox_install.sh to align for sphinx jobsMonty Taylor2017-11-221-21/+20
| | | | | | | | | | | | The updates to the sphinx docs jobs in support of the updates to the PTI wound up exposing an unintended interface. There are two flavors of the tox_install.sh file out there, and we basically need to collapse them into one flavor. Update the tox_install.sh script to match the constraints-as-first-argument form. Change-Id: I7cb4b44952713752435e1faf0f63bf0d37e7dda6
* Add Constraints supportTony Breeds2016-12-271-0/+31
| | | | | | | | | | | | Adding constraints support to libraries is slightly more complex than services as the libraries themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove python-swiftclient. Change-Id: I3947a6165eaa9f5cb62a7df4f5a2c16065da2f1d
* Rename requires files to standard names.niu-zglinux2013-05-302-16/+0
| | | | | | | | | 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: I9c1356f22f6527be44b4b3f6a77012156ff1637b Fixes: bug #1179008
* Merge "Switch to pbr for setup."Jenkins2013-05-151-1/+3
|\
| * Switch to pbr for setup.Monty Taylor2013-05-011-1/+3
| | | | | | | | Change-Id: Ifc2efa2bd7c2f030b51494ccb471f0c3e097c5ce
* | Eradicate eventlet and fix bug lp:959221Pete Zaitcev2013-05-101-1/+0
|/ | | | | | | | | | | | | | | | | The bug is simple: whenever swift uploads to a Swift with SSL, it uses 100% CPU. It happens because we use HTTPSConnection from eventlet that loops like that, while holding the interpreter lock. Now, it could be fixed in eventlet, but let's try something more natural: drop the eventlet's HTTP client. We do not use green threads in the client anymore, so it's not like we need it for that. Note that in most cases clients do not use the BufferedHTTPConnection either, because it's only installed on Swift server nodes, not on workstations. Get rid of that too. bug: 959221 Change-Id: I1eb932779d4171598b3efaa043f817b9c6c995c4
* Switch to flake8.Monty Taylor2013-05-011-1/+5
| | | | Change-Id: Ib9ba1e7eed09c5a90c558a8365d0a87c3f4b5ee5
* Print useful message when keystoneclient is not installedFlaper Fesp2013-02-051-1/+1
| | | | | | | | | client.py now prints a useful message when trying to use Auth version 2.0 and keystoneclient is not installed. Fixes bug 1102322 Change-Id: I6ed83610fd6e8c79c2dc5cf05db377a843cab1d5
* Use testr instead of nose.Monty Taylor2013-01-181-5/+3
| | | | | | | | | | | | | | | nose is invasive and can sometimes alter the outcome of a test run. testr, on the other hand, keeps a distinction between running tests and displaying results of the test runs. Additionally, it supports the stock python unittest protocol. Even better, testr supports parallel test running, which makes things faster, and a command "testr run --failing" which will just re-run the latest failing tests (often something one wants to do in iterative dev) Part of blueprint grizzly-testtools Change-Id: I0b3f1bcb5d4ff59c65eb3219b30a9e64f54d70bd
* Use testtools as base class for test cases.Monty Taylor2012-12-261-3/+4
| | | | | | Part of blueprint grizzly-testtools Change-Id: Iff9aac184a115df9b396e218209962e6897a32d9
* 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: I4292ba27db9371d5a8dae4b901a46165b9ee6721
* Make python-keystoneclient optionalgholt2012-08-142-1/+1
| | | | | | A lot of us don't use Keystone. Change-Id: Ifcd5fe609efbe950e935c0e0cfee200687b69eda
* Use keystoneclient for authentication.Chmouel Boudjnah2012-07-061-0/+1
| | | | | | | | | | | | | | | - This allows us to delegate all 2.0 authentication directly to the library without reimplementing ourselves. - Support reusing a token / storage-url without re-authenticating every time via the switch os_storage_url os_auth_token. - Allow auth via tenant_id instead of just tenant_name via the switch os_tenant_id. - Refactor a bit to make it easier in the future to add new OS features (i.e: region). - Implements blueprint use-keystoneclient-for-swiftclient. - Fixes bug 1016641. Change-Id: I532f38a68af884de25326aaac05a2050f5ffa1c7
* Fix pep8 errors w/pep8==1.3.Samuel Merritt2012-06-151-1/+1
| | | | | | | | | | Also lock down the version of pep8 in tools/test-requires. python-swiftclient had a passing test suite yesterday, but today a new and stricter version of pep8 came out, and the test suite started to fail. Specifying a particular version of pep8 will prevent that. Change-Id: I9092d2225c01b99158229918c86b185cdac9d362
* Adding fake_http_connect to test.utils.Chmouel Boudjnah2012-05-211-0/+1
| | | | - Copy fake_http_connect function from swift repository.
* Add openstack project infrastructure.Monty Taylor2012-05-162-0/+9