| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
python-openstackclient uses OS_INTERFACE or --os-interface to select a
catalog endpoint to work with. The barbican CLI uses BARBICAN_INTERFACE
or --interface, which OSC won't pass through. This is a problem because
the it prevents the user from selecting a non-public endpoint when using
barbican via openstackclient rather than as a standalone CLI. This patch
updates the osc plugin to pass through the interface set by OSC to the
barbican client class.
Change-Id: I1e9890c9e87fb77b272f939bf33914df739aa5be
(cherry picked from commit 4afb43ab0115f42b4fadcbf19ecac81815d481e3)
|
|
|
|
|
|
|
|
|
| |
Before refactor patch, modules could be imported either from
barbicanclient.<module> or barbicanclient.client.<module>, octavia
is using both methods. We need to support that.
Change-Id: Ib5b7c2ae50d30e85685c20cfabc188f46c0c947b
Closes-bug: #1706841
|
|
|
|
|
|
|
|
|
|
| |
Many projects are importing secrets and containers from barbicanclient,
the refactor change needs to keep compatiable for this.
This is workaround for that and marked as deprecation.
Change-Id: Ibc9b525f1abe0a7627759e438977a6bf6b86bed6
Closes-bug: #1706841
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I40c51315fe2d1751240e5b28fd8e0bf72cc215f1
|
|/
|
|
| |
Change-Id: I6d74bd3146e328b74c2ddc6484e76b66adce3349
|
|
|
|
| |
Change-Id: I73a74233f0663fe651288ec0a65ad13857f04504
|
|
|
|
|
|
|
|
|
|
|
|
| |
recent refactor seems to have caused a regression
with the client default version, using openstack
client causes this error:
Invalid client version 1; must be one of: v1
Closes-Bug: 1705322
Change-Id: Ib3d8efce41c00ab8573461ea30357d1a611529e5
Signed-off-by: Thiago da Silva <thiago@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Add v1 directory for APIs, CLIs and API testcases.
Currently, v1 is supported and the default api version. If version is not
specified when constructing barbicanclient, default api version will be used.
Implements: blueprint refactor-barbicanclient
Change-Id: Ib91e7049de007f4d4254abcd4c125b4dc7e03c55
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Exposes the secret_type, created, updated, expiration, and sort as
filters for listing secrets.
Change-Id: I583f27f91cb3c6bdb23438dff6b539407b4005ed
Depends-On: I95b5390ef24a754f66ccdb9ccde34cd0820b02fd
|
|/
|
|
|
|
|
|
|
| |
Switch both client and functional test to use generic auth plugin.
Also keep keystone auth_uri as one option so we needn't add extra
version to the endpoint and let keystoneauth handle this.
Change-Id: I5535d4d459496eec9052131b43615e6056e249e8
Closes-bug: #1691480
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Flake8 was configured to ignore F and H rules, which are the PyFlakes
rules and OpenStack hacking rules.
H202 (tests for the too-general Exception used with assertRaises) is
still ignored because some code actually throws a generic Exception
and so the unit test must check that Exception is raised.
Change-Id: I4c4b67631547cd2db784936287355968a6d3b6c7
|
|/
|
|
|
|
|
|
|
|
|
|
| |
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I093160f746f346871c136043a8fa48c9491fdc1a
|
|
|
|
|
|
|
|
|
|
| |
According to PEP 396, the version of client library
should be set in xxxclient.__version__, that help
python-openstackclient command "module list" to get
the right plugin module versions.
Change-Id: I74f624e75b5335c657d7bb741435bfafedcc974e
Partial-Bug: #1662058
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Referencing --payload-content-type seems incorrect.
Also, fix trivial formatting and spelling issues.
Change-Id: I68984ce55c1e8882b80a20a6c17b258383225ff3
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Change parent class of WhenTestingCertificateOrders to inherit
OrdersTestCase.
Change-Id: I6b5a96ffdc720fc57f7ea9cb957e816d8604320c
Closes-bug: #1667887
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Openstack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.
Change-Id: I95a4a8c8e9b4501d4f9796309beb50971f2a7222
Closes-Bug: #1082248
|
| |/ /
|/| |
| | |
| | |
| | | |
Change-Id: Icc56feab767e5154588f2e3e32e1ded3d8c62f09
Closes-Bug: #1662144
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Changed "List cas." to "List CAs."
Change-Id: Ib22148157e5337c098e0bda7792b1f385863b20a
Closes-Bug: #1567289
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
Currently, this directory contains config.py to parse configurations.
Barbicanclient does not have a configuration file, so no need to
parse configurations. This directory isn't used, so remove it.
Change-Id: Id641094b8802a24d0f331469245dd9717b1f089c
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
Stevedore Sphinx extension handles this comment.
http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html
Change-Id: Id6339d11b900a644647c8c25bbd630ef52a60aab
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This was changed by this commit
Iecd129a61eb02d0de59b4a11b83200a8a4269a6c and broke other projects that
used this interface. This adds the parameter back, as well as still
accepting the one that was introduced ('passphrase' without the
underscore).
Also, the new parameter takes presedence.
Change-Id: I12796f6896bba315b9cd855a13f776b08e0be693
Closes-Bug: #1635213
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I5a0a2562837c775eabb5125feb838661c2c93947
Closes-Bug: #1635966
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When using barbican client to list malformed orders, the response
meta dictionary has invalid "request_type" key. Added check to
validate key order meta fields. Added unit test case.
Change-Id: I25c50d252daebe623e2f90e9395d0f77f9589b8d
Closes-Bug: #1596851
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I0737e82751d905bb344398268cd5f1b76e5595ab
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Follow the hacking: http://docs.openstack.org/developer/hacking.
Do not write except:, use except Exception: at the very least.
When catching an exception you should be as specific so you
don’t mistakenly catch unexpected exceptions.This patch is to
fix it.
Change-Id: Iefdc52e7ad87a51b79ac1fa1175f7b62e6d8eb4f
Closes-Bug: #1600714
|
|\ \ \ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
payload_content_type is already unicode format, no need to convert to
unicode.
Change-Id: Iff3f32b3f5102c7af6d6b986acdebee9a713f872
Closes-bug: #1627364
|
|\ \ \ \ \ \ |
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This's defined in H234:
http://docs.openstack.org/developer/hacking/#python-3-x-compatibility
Change-Id: I965aa4670d7aa8ba8b0af1369235a225f88e164e
|
|\ \ \ \ \ \ |
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This patch remove os and sys import unused in
barbicanclient/common/config.py
Change-Id: I034989c72c50958e1a9564f496627440cd474949
|
|\ \ \ \ \ \ |
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Keystoneauth was extracted from keystoneclient. This CR replaces usage
of keystoneclient in favor of keystoneauth.
Co-Authored-By: Clenimar Filemon <clenimar@lsd.ufcg.edu.br>
Change-Id: I4262bed1e595d58f31fe80c85e3692e4ca2840fa
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Made order create type help dialog specify the types of orders
that the user can create (key, asymmetric, certificate).
Change-Id: Ib72e05213003a0c1aa28fbc20dfb526fb0b57e87
|
|\ \ \ \ \ \ |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
According to H201 [1], we shouldn't use bare except,
use 'except Exception:' at least. In this patchset, it is
fixed.
[1]: http://docs.openstack.org/developer/hacking/
Change-Id: Id64712dba67db53a7c20ef38b56c20cebcd63821
|
|\ \ \ \ \ \ \
| |_|_|_|_|_|/
|/| | | | | | |
|
| | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
assertEqual expects that the arguments provided to it should be
(expected, observed). If a particluar order is kept as a convention,
then it helps to provide a cleaner message to the developer if Unit
Tests fail. The following patch fixes this issue.
Change-Id: I5209e5889cfe62c66dc675c00e3ccaf22410f637
Partial-Bug: #1259292
|