Change I95a351071e68dfc2d67f3895c87f45ad2221767f gutted quantumclient so
it serves as a proxy for neutronclient, but in the process the static
method find_resource_by_name_or_id was removed. Nova is using
find_resource_by_name_or_id directly so it needs to still exist in
quantumclient and proxy through to neutronclient. This is needed for the
stable branches which are still using python-quantumclient.
Closes-Bug: #1233264
Change-Id: I01b099aa34fedb63967517f288905321816eaf18
Introduce py33 to tox.ini to make testing with
python3 easier.
Change-Id: Id50ca397612d4948325a0ad0f39451a16b86d5bd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
The python quantum client was printing "quantum 2.0" regardless of
the version of the client. This seems to be the version of the
API but people expect the version of the client to be printed.
I looked at the implementation of --version in nova and keystone.
The one in keystone worked and was fairly straight-forward
utilizing code from the pbr package. I added this code to version.py
rather than __init__.py.
Change-Id: I53264b454eb16d5c294ad40ab6494387637950db
Fixes: Bug #1190652
The test_extend_list_exceed_max_uri_len test case mocks
the request() method of HTTPClient class so that it raises
the RequestURITooLong exception. But the real method can't
possibly raise it (Client.do_request() does this instead).
Mocks should emulate the behavior of methods they stub out
and not change it in any way.
Fixes bug 1192197.
Change-Id: I62b2db111ef251f95eb9aa9c9cc00b53fdbccc68
This commit ensures docstring follows the docstring convention.
Also enables H301 (one import per line) in flake8.
There is already no violation the source codes.
Change-Id: Icf6ce5bae40b2e6492c060a28587d825a1837b43
Previous _ was monkey patched into builtins whenever
certain modules were imported. This removes that and
simply imports it when it is needed.
Change-Id: I8b7cdc7a8da21ed3e8bc69b18414dfc89e8935b8
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.
Change-Id: I70638f239794e78ba049c60d2001190910a89c90
This patch adds a metavar for the --fixed-ip option so that it's
more clear that the user needs to pass in ip_address=IP_ADDR.
Fixes bug 1188889
Change-Id: I66efd444a2df52603f124637072f194497e241e2
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.
adding test-requirements.txt to quantumclient/openstack/common/setup.py per review instructions.
Change-Id: Ibf991b400bfbeb4222216649901586e01a0255b1
Fixes: bug #1179008
Previously ext-list does not inherits ListCommand base class for listing
and cannot specify columns to display. This commit changes ext-list to
use ListCommand and adds a unit test for extensions.
This also changes the default value of _formatters in ListCommand to {}.
By this subclasses no longer override _formatters unless required.
Fixes bug 1161866
Change-Id: Ifd9ab54d4e84a2b7a1d7eecd67f6270ec643db1d
Changes the default behavior of the client. It will now choose
publicURL by default rather than adminURL.
Now allows the consumer to pass adminURL, internalURL or some other
endpoint type when constructing a Client to override this default
behavior.
Adds --endpoint-type option to the shell client. Defaults to the
environment variable OS_ENDPOINT_TYPE or publicURL. This was
patterned after the same option in the Nova client.
Adds a new exception type to handle the case where a suitable endpoint
type is not found in the catalog. Without this, the exception
encountered is a KeyError that was not clearly reported to the caller
of the quantum command line.
Change-Id: Iaffcaff291d433a605d8379dc89c1308096d36c2
Fixes: Bug #1176197
Make the flake8 dependencies consistent with openstack/requirements and
the other OpenStack projects.
Fixes bug 1172444.
Change-Id: I04bd814ad51cf53a3fa0026028a36de461da45d4
Bug 1172537
In order to avoif 414 the list subnet requests will be split in
multiple requests. The total URI len for each of these requests
will be lower than 8K (the default maximum for eventlet.wsgi.server).
The patch tries to submit a single request, and if the URI is too
long an exception is raised before the request is sent over the
wire; the exception handler will split the subnet id list, and
submit the new requests.
This patch does not address the case in which the server is
configured with a maximum URI length different from 8K.
Change-Id: Ia2414cd5374a91d3d12215807037a5d46b836ad6
New version of pyflakes does checking of doctests. We have a
comment that looks like a doctest, but in fact it's not. This
makes pep8 test fail.
Fixes bug 1170639.
Change-Id: Iee4f1bb8fd8284c6d1bb0111e23a61f434f3f457
* Add hacking to the tox build - a set of flake8 plugins that
perform automatic validation of many HACKING.rst rules.
* This patch configures hacking in the tox build and performs
the mechanical cleanup required to allow the checks to pass.
* See https://pypi.python.org/pypi/hacking
Change-Id: Ib41313b5aae991e6ffef2a89dd69e83985bdc36d