Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.
Change-Id: If4893a55b2fede30a796a2f1080477b7c92e5d4c
Closes-bug: #1280522
argparse was external in python 2.6 but not anymore, remove it from
requirements.
This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.
Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
Use "keystoneclient.exceptions" instead of the deprecated
"keystoneclient.openstack.common.apiclient.exceptions".
ref: https://github.com/openstack/python-keystoneclient/blob/master/
keystoneclient/openstack/common/apiclient/exceptions.py#L25
Change-Id: Ic0fb631aa9f5f3cab2d9829420da746e37d0b0eb
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.
Change-Id: I9838d042ec3cffa047e95f2c1a8000d63cd55cab
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Closes-Bug: 1519510
Depends-On: Ic8241e55b5f4e3d567156d4c1e8bf8a0303f6d29
Change-Id: I4386dc70e3d467e31963d852726af78fbdbbba38
Allows tox to be able to run all functional tests in a Class as
well as a single functional test. Also runs the tests in verbose
mode, as is done in the gate.
Change-Id: I1fba43aa8c577c81da07522f84cddc36fd7807e1
Closes-Bug: #1514699
Barbican Secret Order Create has 'type' as an optional parameter,
eventhough it is required. This patch makes the argument a
positional argument.
Change-Id: I5f69ac741ec1d59b7ecb76d6c7cc655a92d18a25
Closes-Bug: #1485615
Fixes the algorithm and mode parameters in the secrets list
command to return the correct secrets based on the correct
arguments.
Change-Id: I3925562b29c765ca6a9d6c25708ceb50a1c628ed
Closes-Bug: #1510577
Added functional tests for CLI commands.
Added functional tests for client API.
Modified ACL client API functional test not to use behavior class
as per recent change in secrets, containers, and orders.
Change-Id: Ibacf33e834daa2c70ef1b0032495bbe443957cac
When executing "barbican ca list", the client throws an attribute
error if a CA does not contain a meta description field. This
field is optional. This fix initializes the _description attribute
to None to prevent the error.
Change-Id: Ic861fe67c59c5109c0f09db46ad229a789d2e510
Closes-bug: #1502928
The client currently only accepts '3.0' which directly conflicts with
other clients (like OSC). It is not currently possible to export
OS_IDENTITY_API_VERSION and have it work properly for both clients.
In addition, the way it is written now "DEFAULT" is not really a
proper default, as 2.0 is the fallback. This change resolves that
inconsistency.
Closes-bug: #1496597
Change-Id: I0d829e46fc251eb7762912c7f89f79cb267e6abe
Added CLI commands related to ACL support.
Added docs for client API and CLI.
Updated docs as per meetup discussion.
Added acls access from secret and container entities.
Addressed functional test failures resulted from recent merge of
https://review.openstack.org/#/c/198732/
Change-Id: I8f54d437eab8a2d7e9cdacf62e7a05c7dffb05c7
Fixes a bug where "'NoneType' object is not iterable" is printed
after a secret is updated.
Closes-Bug: #1500616
Change-Id: Ib17bc7b1c3b872786601f1e64604529070a131e7
Added ACL client API support.
Added ACL client API specific unit tests.
Refactored client code as per meetup comments.
Modified client get call to return data which can be looked by
operation_type value.
Moved add and remove users calls to cli as for client side, client
will make updates directly in acl entity and submits changes to server.
Change-Id: Ieb6d6a60919e2fdc311df605a51e88b87baa3c67