summaryrefslogtreecommitdiff
path: root/barbicanclient
Commit message (Collapse)AuthorAgeFilesLines
* Pass OSC interface through to barbican pluginpike-em4.5.3Colleen Murphy2018-01-261-1/+2
| | | | | | | | | | | | | 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)
* Support import modules from barbicanclient.client module4.5.2Jeremy Liu2017-08-011-0/+32
| | | | | | | | | 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
* Workaround for importing objects from old path4.5.1Jeremy Liu2017-07-291-0/+46
| | | | | | | | | | 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
* Merge "Update api references according to refactor result"4.5.0Jenkins2017-07-265-13/+13
|\
| * Update api references according to refactor resultyushangbin2017-07-255-13/+13
| | | | | | | | Change-Id: I40c51315fe2d1751240e5b28fd8e0bf72cc215f1
* | Add secret_type filter to CLIJeremy Liu2017-07-251-1/+5
|/ | | | Change-Id: I6d74bd3146e328b74c2ddc6484e76b66adce3349
* Update the documentation link for doc migrationchenxing2017-07-211-1/+1
| | | | Change-Id: I73a74233f0663fe651288ec0a65ad13857f04504
* fix default versionThiago da Silva2017-07-191-2/+1
| | | | | | | | | | | | 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>
* Refactor barbicanclientJeremy Liu2017-06-2023-51/+139
| | | | | | | | | 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
* Merge "Add client list filter functionality"Jenkins2017-06-151-2/+30
|\
| * Add client list filter functionalityKaitlin Farr2017-05-171-2/+30
| | | | | | | | | | | | | | | | Exposes the secret_type, created, updated, expiration, and sort as filters for listing secrets. Change-Id: I583f27f91cb3c6bdb23438dff6b539407b4005ed Depends-On: I95b5390ef24a754f66ccdb9ccde34cd0820b02fd
* | Use generic auth plugin instead of specific versionJeremy Liu2017-05-181-14/+11
|/ | | | | | | | | 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
* Merge "Enable F and H flake8 rules"Jenkins2017-04-0716-137/+128
|\
| * Enable F and H flake8 rulesKaitlin Farr2017-03-2916-137/+128
| | | | | | | | | | | | | | | | | | | | | | 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
* | Replace six.iteritems() with .items()M V P Nitesh2017-03-303-10/+7
|/ | | | | | | | | | | | 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
* Set client module __version__Rui Chen2017-03-254-5/+37
| | | | | | | | | | 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
* Merge "Fix doc referencing --payload-content-type"Jenkins2017-03-101-3/+3
|\
| * Fix doc referencing --payload-content-typePetr Kovar2017-01-182-4/+4
| | | | | | | | | | | | | | Referencing --payload-content-type seems incorrect. Also, fix trivial formatting and spelling issues. Change-Id: I68984ce55c1e8882b80a20a6c17b258383225ff3
* | Merge "Change parent class of `WhenTestingCertificateOrders`"Jenkins2017-03-101-32/+22
|\ \
| * | Change parent class of `WhenTestingCertificateOrders`Jeremy Liu2017-02-251-32/+22
| | | | | | | | | | | | | | | | | | | | | | | | Change parent class of WhenTestingCertificateOrders to inherit OrdersTestCase. Change-Id: I6b5a96ffdc720fc57f7ea9cb957e816d8604320c Closes-bug: #1667887
* | | Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"Jenkins2017-03-091-25/+40
|\ \ \
| * | | Replaces uuid.uuid4 with uuidutils.generate_uuid()Luong Anh Tuan2016-12-191-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Openstack common has a wrapper for generating uuids. We should use that function when generating uuids for consistency. Change-Id: I95a4a8c8e9b4501d4f9796309beb50971f2a7222 Closes-Bug: #1082248
* | | | Fix serializable issues when retrieving json format resourcesJeremy Liu2017-02-2510-12/+80
| |/ / |/| | | | | | | | | | | Change-Id: Icc56feab767e5154588f2e3e32e1ded3d8c62f09 Closes-Bug: #1662144
* | | [openstack-manuals] description of command barbican ca listKiran_totad2017-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | Changed "List cas." to "List CAs." Change-Id: Ib22148157e5337c098e0bda7792b1f385863b20a Closes-Bug: #1567289
* | | Remove unused barbicanclient/common directoryJeremy Liu2017-01-262-32/+0
| |/ |/| | | | | | | | | | | | | 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
* | Merge "Add plug-in summary for osc doc"Jenkins2017-01-041-0/+2
|\ \ | |/ |/|
| * Add plug-in summary for osc docKATO Tomoyuki2016-10-141-0/+2
| | | | | | | | | | | | | | Stevedore Sphinx extension handles this comment. http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html Change-Id: Id6339d11b900a644647c8c25bbd630ef52a60aab
* | Accept 'pass_phrase' for AsymmetricOrder constructorJuan Antonio Osorio Robles2016-12-142-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add missing param to certificate order initialization"Jenkins2016-11-221-3/+7
|\ \
| * | Add missing param to certificate order initializationJeremy Liu2016-11-121-3/+7
| | | | | | | | | | | | | | | Change-Id: I5a0a2562837c775eabb5125feb838661c2c93947 Closes-Bug: #1635966
* | | Merge "Validate key order meta fields."Jenkins2016-11-222-1/+40
|\ \ \ | |/ / |/| |
| * | Validate key order meta fields.Max Abidi2016-08-232-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Using assertTrue/False() instead of assertEqual(True/False)"Jenkins2016-11-112-5/+5
|\ \ \
| * | | Using assertTrue/False() instead of assertEqual(True/False)Anh Tran2016-09-282-5/+5
| | | | | | | | | | | | | | | | Change-Id: I0737e82751d905bb344398268cd5f1b76e5595ab
* | | | Merge "Do not write except:, use except Exception instead"Jenkins2016-10-191-1/+1
|\ \ \ \
| * | | | Do not write except:, use except Exception insteadweiweigu2016-07-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Fix bug when uploading secret using unified CLI"Jenkins2016-10-191-1/+1
|\ \ \ \ \
| * | | | | Fix bug when uploading secret using unified CLIJeremy Liu2016-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | payload_content_type is already unicode format, no need to convert to unicode. Change-Id: Iff3f32b3f5102c7af6d6b986acdebee9a713f872 Closes-bug: #1627364
* | | | | | Merge "Using assertEqual instead of assertEquals"Jenkins2016-10-191-1/+1
|\ \ \ \ \ \
| * | | | | | Using assertEqual instead of assertEqualsAnh Tran2016-09-271-1/+1
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This's defined in H234: http://docs.openstack.org/developer/hacking/#python-3-x-compatibility Change-Id: I965aa4670d7aa8ba8b0af1369235a225f88e164e
* | | | | | Merge "Remove imported but unused"Jenkins2016-10-191-3/+0
|\ \ \ \ \ \
| * | | | | | Remove imported but unusedTony Xu2016-09-231-3/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch remove os and sys import unused in barbicanclient/common/config.py Change-Id: I034989c72c50958e1a9564f496627440cd474949
* | | | | | Merge "Use keystoneauth"Jenkins2016-10-183-7/+8
|\ \ \ \ \ \
| * | | | | | Use keystoneauthDouglas Mendizábal2016-10-183-7/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Update Order Create Type Help Dialog"Jenkins2016-10-161-1/+3
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Update Order Create Type Help DialogMichael Perng2016-01-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made order create type help dialog specify the types of orders that the user can create (key, asymmetric, certificate). Change-Id: Ib72e05213003a0c1aa28fbc20dfb526fb0b57e87
* | | | | | Merge "Replaced bare except"Jenkins2016-10-141-1/+1
|\ \ \ \ \ \
| * | | | | | Replaced bare exceptGábor Antal2016-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Merge "Fix argument order for assertEqual to (expected, observed)"Jenkins2016-10-142-8/+8
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | |
| * | | | | | Fix argument order for assertEqual to (expected, observed)hongzhezheng2016-07-072-8/+8
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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