1754 Commits

Author SHA1 Message Date
Jenkins
58ac2de5d4 Merge "Reference identity plugins from __init__.py" 2015-02-10 06:59:32 +00:00
Jamie Lennox
e3ae196433 Make remove_service_catalog private
This is a utility function that is used for reducing the amount of data
that is logged. It shouldn't be a public function.

I think there is very little risk from this in terms of compatibility as
it was only added recently.

Change-Id: I003e9f11be478b1282ea9cf179f2dd13e1672a80
2015-02-10 15:25:36 +11:00
Jenkins
75fcdfb2e1 Merge "Docs for v3 credentials" 2015-02-10 03:57:50 +00:00
Jenkins
11676233f4 Merge "Change hacking check to verify all oslo imports" 2015-02-10 03:56:57 +00:00
Jenkins
455965cd3e Merge "Change oslo.i18n to oslo_i18n" 2015-02-10 03:56:49 +00:00
Jenkins
8bb0439528 Merge "Workflow documentation is now in infra-manual" 2015-02-10 02:52:12 +00:00
Jenkins
8986dd7899 Merge "Remove 404 link to novaclient in README" 2015-02-10 02:52:05 +00:00
Brant Knudson
df4ebe3649 Docs for v3 credentials
The v3 credentials API was unusable because the docs didn't
include any information about what parameters are passed to the
CredentialManager methods.

Also, the attributes for the Credential objects was incomplete.

Change-Id: I6872f217c75ae94611749c59be0dd6941170fd57
2015-02-09 20:37:39 -06:00
Brant Knudson
d66e44fa9f Change hacking check to verify all oslo imports
The hacking check was verifying that specific oslo imports
weren't using the oslo-namespaced package. Since all the oslo
libraries used by keystoneclient are now changed to use the
new package name the hacking check can be simplified.

bp drop-namespace-packages

Change-Id: I6466e857c6eda0add6918e9fb14dc9296ed98600
2015-02-09 20:34:49 -06:00
Brant Knudson
750d5a39dc Change oslo.i18n to oslo_i18n
The oslo libraries are moving away from namespace packages.

bp drop-namespace-packages

Change-Id: I5b6bb46ac55b8309845fcc8b01d93d97be4e86ca
2015-02-09 20:34:49 -06:00
Jenkins
a333c56ac9 Merge "Change oslo.config to oslo_config" 2015-02-10 02:14:56 +00:00
Jenkins
448a9e14ba Merge "Change oslo.serialization to oslo_serialization" 2015-02-10 02:14:48 +00:00
Jenkins
d697ea29a6 Merge "Switch from oslo.utils to oslo_utils" 2015-02-10 02:11:19 +00:00
Adam Young
44c1b73b3d Add data to example data
This commit adds issued_at values, role IDs, and fixes endpoints
in the example data.

Change-Id: I3e2a2296d08a34331b1afd02126445d0206eea7a
2015-02-09 19:01:40 +00:00
Jenkins
4ee6e3302a Merge "Add get_headers interface to authentication plugins" 2015-02-09 05:54:33 +00:00
Jenkins
14aa7fe27b Merge "Basic AccessInfo plugin" 2015-02-09 05:47:57 +00:00
Jenkins
6106b2be83 Merge "Add name parameter to NoMatchingPlugin exception" 2015-02-09 05:17:12 +00:00
Brant Knudson
de307a5e29 Remove 404 link to novaclient in README
The README had a link to
https://github.com/rackspace/python-novaclient, but this link is
404 now.

Change-Id: I538d65d2329ca1b4546e542513b7dbc536e6297f
2015-02-08 10:17:37 -06:00
Jenkins
a69a1d0d74 Merge "use right resource_class to create resource instance" 2015-02-08 16:04:05 +00:00
Thiago Paiva Brito
8da68e3ded Hierarchical multitenancy basic calls
This patch addresses changes needed to manage projects through
keystoneclient API v3. The changes are:

create:
  new param 'parent': set the parent project of the project being created

get:
  new param 'subtree_as_list': If True, shows projects down the hierarchy
  new param 'parents_as_list': If True, shows projects up the hierarchy

Co-Authored-By: Andre Aranha <afaranha@lsd.ufcg.edu.br>
Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br>

Change-Id: I0f02a66e6a29584197ed00cb32caecb50956f458
Implements: blueprint hierarchical-multitenancy
2015-02-05 22:36:47 -03:00
Jeremy Stanley
93626a0a64 Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I5b4f7bc5268132b129fc56c919af00d7f9600c9f
2015-02-05 17:56:32 +00:00
wanghong
5ad4cc0b68 use right resource_class to create resource instance
Currently, in test_endpoint_policy.py we use the resource_class of
project to create a policy instance. We should use the resource_class
of policy to create policy instance.

Closes-Bug: #1418316
Change-Id: I4fc444b266c61da0a131651d7aa636021f6ea5f9
2015-02-05 04:10:30 +00:00
Jamie Lennox
59cdbe8ed4 Basic AccessInfo plugin
Generally we want people to use the existing plugins to manage their
authentication, however there are a number of existing services that
know how to work with an AccessInfo object directly and either cache it
or manipulate it manually.

Provide a simple Identity plugin that just takes an existing AccessInfo
and allows it to be used as an authentication plugin.

Change-Id: I388283c03a0a8a3d1afe43138eebbe5e66ca9102
2015-02-04 06:42:45 +11:00
Jenkins
cef7775cda Merge "Enable hacking rule E122 and H304" 2015-02-02 22:50:10 +00:00
Jenkins
ddbd92518c Merge "Docstring usability improvements" 2015-02-02 18:04:18 +00:00
ZhiQiang Fan
eafafe8315 Enable hacking rule E122 and H304
E122: continuation line missing indentation or outdented
H304: no relative imports

E122 and H304 havealready been fixed but not removed from exception
list, this patch enables them.

Change-Id: I1375bed51e9670fc4d174e7afce0ef3b3be83822
2015-02-02 09:21:31 +08:00
Jenkins
e458873b92 Merge "Correct failures for check H238" 2015-02-02 01:14:36 +00:00
Jenkins
5fe74a79e3 Merge "handles keyboard interrupt" 2015-02-02 01:06:08 +00:00
Jenkins
6b108dcfe0 Merge "Fix typo in Ec2Signer class docstring" 2015-02-02 01:05:03 +00:00
Jenkins
010f6630af Merge "Configure TCP Keep-Alive for certain Sessions" 2015-02-02 01:04:55 +00:00
Jenkins
5ba59fa9b6 Merge "make req_ref doesn't require id" 2015-02-02 01:04:37 +00:00
Jamie Lennox
cd552374ca Add get_headers interface to authentication plugins
The current scheme of having auth plugins only able to specify the
X-Auth-Token header via the get_token function is too limited for all
plugins. We need to allow both the case where the plugin wants to
control additional headers, or doesn't set the X-Auth-Token header at
all.

This deprecates the get_token interface in favour of the get_headers
interface. Whilst we should promote using get_headers it is likely that
plugins that only require setting the X-Auth-Token header will continue
to only support the get_token interface.

Change-Id: Ibd750d72acc3ba4fd8a880cad69173248ec4092f
blueprint: generic-plugins
2015-02-02 10:48:01 +11:00
Jamie Lennox
c57e562d2b Add name parameter to NoMatchingPlugin exception
If you want to handle a NoMatchingPlugin exception rather than simply
exit then the name of the missing plugin is generally more useful than
the message.

The exception is specific enough that you can know what went wrong, but
you cannot determine the name of the missing plugin if you want to do
your own logging - only use the message that is generated.

We should keep the message but expose the plugin name as well.

Closes-Bug: #1410391
Change-Id: Ic93ec6583b8d7797529d36d63995ef0d8db754f1
2015-02-02 09:23:39 +11:00
Brant Knudson
d34cffa65f Change oslo.config to oslo_config
The oslo.config libraries are moving away from oslo-namespaced
packages.

Note that his requires oslo.config>=1.6.0

bp drop-namespace-packages

Change-Id: Ic0d4053875da0628f2359c109f2779d12aadc3eb
2015-01-31 08:03:37 -06:00
Brant Knudson
86ac254fee Change oslo.serialization to oslo_serialization
The oslo libraries are moving away from namespace packages.

bp drop-namespace-packages

Change-Id: I76dc9f733b222144f0274f8854877587c3501d1e
2015-01-31 08:03:37 -06:00
Brant Knudson
ab09d3eb5f Switch from oslo.utils to oslo_utils
oslo_utils moved out of the oslo namespace.

bp drop-namespace-packages

Change-Id: I72e67dc1f649ba137dd06f5ab7133858c6abd67d
2015-01-31 08:03:37 -06:00
Jenkins
bf99f4c1ef Merge "Add validate token for v3" 2015-01-30 21:55:18 +00:00
Jenkins
23fe39d879 Merge "Tests use keep_blank_values when parse_qs" 2015-01-30 17:30:00 +00:00
Brant Knudson
3e159f3264 Add validate token for v3
There was no API to validate a token using v3.

bp auth-token-use-client

Change-Id: Idcd6cedde5c485b9df7a2e056d1673d3ce6cdf90
2015-01-30 09:58:11 -06:00
Brant Knudson
9a9f47b95f Tests use keep_blank_values when parse_qs
The tests weren't using keep_blank_values when calling
urlparse.parse_qs, so any empty values were just ignored and
couldn't be tested properly. With this change, tests can verify
query parameters that have no value (for example, ?no_catalog on
the v3 auth request).

bp auth-token-use-client

Change-Id: Iafcb952c81ca7bd2acab4383687c36ec68a838d2
2015-01-30 09:57:19 -06:00
Matt Riedemann
e95a65bb1b Fix typo in Ec2Signer class docstring
Change-Id: Ie2a05aab512feeac967a64527d649377fd5bc6b9
2015-01-28 22:35:23 +00:00
Brant Knudson
08fd95de14 Add validate token for v2.0
There was no API to validate a token using v2.0.

bp auth-token-use-client

Change-Id: I22223f546e750457a0c9d851ef389f7983e5c205
2015-01-28 14:22:26 -06:00
Jenkins
019c383cb4 Merge "Add auth plugin params to doc" 2015-01-28 20:17:04 +00:00
Jenkins
e494e111c5 Merge "Allow v3 plugins to opt out of service catalog" 2015-01-28 20:04:39 +00:00
Jenkins
245ab0a700 Merge "Add fetch revocations for v3" 2015-01-28 20:04:31 +00:00
Jenkins
a5906ca759 Merge "Add fetch revocations for v2.0" 2015-01-28 20:00:12 +00:00
Jenkins
e9dc0b953a Merge "Surface the user_id and project_id beyond the plugin" 2015-01-28 19:53:02 +00:00
Rakesh H S
5000a851d8 handles keyboard interrupt
When an user intentionally provides an keyboard interrupt, keystoneclient
throws the entire traceback on to the terminal instead of handling it.
keystoneclient will now handle the keyboard interrrupt and provides an crisp
message on to the terminal.

Change-Id: I1026d259fd0688dd2b950b1bdb135d219da2a60a
Closes-Bug: #1367283
2015-01-28 06:15:23 -08:00
wanghong
d1bad7674b make req_ref doesn't require id
The test_update and test_create methods of
keystoneclient.tests.v3.utils.CrudTests are very strange: they
require req_ref parameter to contain 'id' attribute, however,
they just remove 'id' from req_ref then.

Change-Id: Ic577546ef03611b2a19f8be661660ad8bd0d8c06
2015-01-28 18:08:22 +08:00
Jenkins
0eab8ff920 Merge "Update requests-mock syntax" 2015-01-28 02:54:37 +00:00