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
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>
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>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix found problems.
Change-Id: I78ee32da2b158abda1ca4438c23c5245dd8849b2
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
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
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
requirements.txt and test-requirements.txt in the
base directory is the universal standard accross
OpenStack projects.
Change-Id: I98fb9ff232363fe9cfc92ef2b34123352f7eeeaa