9 Commits

Author SHA1 Message Date
Thomas Herve
a041681099 Update Barbican resources to match library changes
This patch updates both Barbican resources and the client to match
recent changes in python-barbicanclient.

Closes-Bug: #1396283

Change-Id: I7a785fd68ffdcda0e622d576a555b3699c706b77
2014-11-26 10:46:42 +01:00
Zhenguo Niu
09ecdc55a0 Don't import HeatTestCase directly
Fix the HeatTestCase import issue as required by H302,
a following patch of https://review.openstack.org/#/c/129846/

Change-Id: Iab9a508682e9fe2932b7d00b191c8a4cdea4738b
2014-10-22 14:15:11 +08:00
Ethan Lynn
11c1b62052 Remove deprecated function i18n.install('heat')
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.

blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
2014-10-13 10:31:28 +08:00
Thomas Herve
e75777b299 Update usage of Barbican library
Update Barbican resources to use the new API of the client library.

Change-Id: Ia634b325cd251ef70eb5eb133a801a3f3510ec67
Closes-Bug: 1374128
2014-09-30 19:10:11 +02:00
Jenkins
fe43d4f3b6 Merge "Fix usage of client in Barbican resources" 2014-09-29 03:20:42 +00:00
Thomas Herve
45f0308ed5 Fix usage of client in Barbican resources
Remove access to the Resource clients attribute and the unavailable
client import.

Change-Id: I36ac2fc4a55f9d5c2d1f4392fce93468fef42453
Closes-Bug: 1374101
Closes-Bug: 1374125
2014-09-26 13:49:34 +02:00
Thomas Herve
246737bdd0 Fix barbican plugin registration
Add client plugin registration and fix packages and files section.

Change-Id: Ie9ac19f5ab5933054c65c64c53e555d278c3229b
Closes-Bug: 1374097
2014-09-26 13:36:32 +02:00
Thomas Herve
5760718ba5 Remove resource_id_set(None) calls
This removes resetting resource_id in delete, as the state is storing
that information properly, and it doesn't provide any additional value.

Change-Id: I71f17ab79adbad5286389c87f1fbd5c60c4a8d7f
Closes-Bug: #1358492
2014-08-19 11:30:32 -04:00
Steve Baker
fd191b7e48 Implement barbican client plugin
This moves the client creation code out of a Clients subclass into
its own client plugin.

Barbican is not an integrated project so the plugin is not registered
if barbicanclient cannot be imported.

The code which prevented client errors in _resolve_attribute from being raised
has been removed. This will prevent invalid attribute values from being
memoized.

The base package has been renamed to heat_barbican since stevedore
is used for client plugin loading and the base package will be
installed by setuptools, the package barbican might clash with
the actual Barbican project.

Change-Id: I5788fb4618fef0d1c3e39cc98094bb2813e842c5
2014-08-13 20:12:29 -05:00