Commit Graph

24 Commits

Author SHA1 Message Date
Zuul 17d322b4cd Merge "tools: Remove dead tools" 2021-07-27 14:21:47 +00:00
Eric Harney 6ecdbef0fc Re-enable shell completion cache
This enables writing ids to a local completion
cache when using the manilaclient shell, which
allows tools/manila.bash_completion to complete
commands such as:
    manila delete a<tab>

Share ids are recorded on "manila list" operations.

Caching can be expanded to cover additional
types of manila objects using this same infrastructure.

Uses ~/.cache/manilaclient/ to match path standards,
and uses SHA-1 since Python running w/ FIPS mode may
not have MD5.

Also, fix a small bug in the fakes used in our test suite.
We were adding the shares count (an optional param) to all
the list responses, while this is something that should be done
only if the param with_count is set to True.

Co-Authored-By: Victoria Martinez de la Cruz <victoria@redhat.com>
Closes-Bug: #1712835
Change-Id: I7f4dedf1dd4b7db6cf24fc1c4ed2a8d3685f714c
2021-07-19 17:44:07 +00:00
Stephen Finucane f6c747f150 tools: Remove dead tools
These have been effectively untouched since initial creation of the
project and were copy-pasted from nova. Drop them.

Change-Id: Iaed9d44b9b5d7a1a2ee0469e5cbdfe769090abd9
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-07-13 19:12:31 +01:00
Goutham Pacha Ravi 33a2ea9e97 TrivialFix: Remove unnecessary future imports
print_function has been available since python 3.0.0
We can drop its import from __future__

Change-Id: I5f8c45c85ba66d29dc89ee6c0589044e413a549c
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-05-05 08:44:02 -07:00
Andreas Jaeger 7cf94c6527 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix found problems.

Change-Id: I78ee32da2b158abda1ca4438c23c5245dd8849b2
2020-03-30 10:04:29 +00:00
Andreas Jaeger 3b5e6bc24f Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Ib9e007b9eeae5f2079dd682df0c7ef2294961f4f
2017-12-02 16:56:04 +00:00
Tony Breeds 36c980bcc5 Add Constraints support
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-manilaclient.

Change-Id: I2d5bb052c7e499175ef3d32fdc35c9e67dc260ac
2016-12-21 22:51:37 +01:00
dineshbhor 093a2e69f6 Replace OpenStack LLC with OpenStack Foundation
TrivialFix
Change-Id: I336952baacf55e36ad0a56ac98b95977fc0d593a
Closes-Bug: #1214176
2016-07-26 12:21:45 +00:00
houming-wang c462148673 Remove vim header from source files
Change-Id: I2b12fee3bcb901ec8b721d8d245dddd0d90c28b6
2015-12-27 22:58:42 -05:00
Valeriy Ponomaryov ab702bcce3 Fix run_tests.sh
With merge of commit:
ce35f9b847

File run_tests.sh became broken, it tries to use old names of renamed files with dependencies:
tools/pip-requires → requirements.txt
tools/test-requires → test-requirements.txt

Change-Id: Id83f55201ef01a9c3f7ee37406ac6070c4b14c5e
Closes-Bug: #1342538
2014-07-16 09:08:23 +03:00
vponomaryov 8f11b0bc62 Update requirements and fix pep issues after it
sync requirements with requirements project:
https://github.com/openstack/requirements/blob/master/global-requirements.txt

With update of hacking dependency fixed pep issues,
appeared with new version.

Change-Id: I90bd1a2b62161a8df40a7ce935c36f3f358924c7
2014-07-10 16:38:42 +03:00
vponomaryov 900b660618 Fix and enable E12 pep8 rule (indentation issues)
Change-Id: I500d2cacba09f2a4337ff325ae658f61b64e4b7a
Related-Bug: #1333290
2014-07-10 05:22:37 -04:00
Valeriy Ponomaryov dc1926e9ad Enable H23* rules in pep/flake (py3-compat)
Basic python 3 compatibility fixies

Change-Id: I97726d42706c538d40cb1662112e56c13432e87f
Related-Bug: #1333290
2014-06-28 06:07:02 +00:00
Valeriy Ponomaryov b87c55d5fc Enable H40* rules in pep/flake
First part of pep/flake fixies, that enables H40* group of rules.

Change-Id: Ia85b49645b3bf634e99877855e6b31a404331b7f
Related-Bug: #1333290
2014-06-28 08:48:32 +03:00
Dirk Mueller 377c6b0921 Remove unused imports, reenable pyflakes
Reenable pyflakes checks, remove unused imports
which is a fallout from the reenablement.

Change-Id: Icfca59bb19c1121340777b0acdebc3cbf6a94931
2014-05-30 17:18:29 +02:00
Jenkins 29104fd110 Merge "Rename pip/test-requires to standard naming" 2014-05-26 16:59:36 +00:00
Dirk Müller ffe1c2ee10 Rename to manila.bash_completion
Change-Id: I160d7d8a240d68d535aff5793af5e4571c70194f
2014-05-23 00:42:05 +02:00
Dirk Müller ce35f9b847 Rename pip/test-requires to standard naming
requirements.txt and test-requirements.txt in the
base directory is the universal standard accross
OpenStack projects.

Change-Id: I98fb9ff232363fe9cfc92ef2b34123352f7eeeaa
2014-05-23 00:27:22 +02:00
Aleks Chirko e7b5f18a98 Add client API for share-networks and security-services.
Partially implements bp: join-tenant-network

Change-Id: I964240d8041a90446c16f879447e6bec85a45b35
2014-01-22 17:13:45 +02:00
119Vik d6204d90bb added testr conf. pep8 tests fixed 2013-09-10 09:09:53 -04:00
vik 041bfa455c cleaned client with fixed tests. no quotas functionality implemented 2013-09-10 03:26:11 -04:00
Yulia Portnova 77dffa2c99 mass replace cinder to manila 2013-09-05 13:32:38 +03:00
Yulia Portnova fa125b7714 setup.py fixed 2013-09-03 14:37:34 +03:00
Ben Swartzlander 5e9ada9fc6 Initial checkin 2013-09-02 23:42:41 -04:00