306 Commits

Author SHA1 Message Date
Jenkins
acdba5ee52 Merge "Add name arguments to keystone command." 2013-02-13 08:27:39 +00:00
Chuck Short
b998ff9252 Allow requests up to 0.8 and greater
The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former
shouldn't be necessary anymore and the latter can be done by setting
a different log handler for the request.logging root logger.

Change-Id: I41bfaf2574f6d7fc21f86e0124ceae7df6481eee
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-02-11 12:29:39 -06:00
Jenkins
ff24716d09 Merge "Fix incomplete sentence in help" 2013-02-07 21:15:11 +00:00
Jenkins
275d0d86e0 Merge "Treat HTTP code 400 and above as error." 2013-02-07 19:33:19 +00:00
Dolph Mathews
bb6e227c76 Fix incomplete sentence in help
`keystone help` only pulls a one line summary from docstrings, so this
summary needed to be condensed.

Change-Id: I9b08c6a8153101b1cc338955078d0d3b6a0aa02e
2013-02-06 18:09:05 +00:00
K Jonathan Harker
a564b88e68 Pin requests module more strictly.
requests.request() does not accept the keyword argument 'config'
(used on keystoneclient/client.py:339) after version 1.0.0.

Fixes bug #1116740

Change-Id: I0a778849ff44a76a2647aa46057fdb35401fae5f
2013-02-05 14:59:49 -08:00
Lin Hua Cheng
382441a9f1 Treat HTTP code 400 and above as error.
Fixes bug 1116559.

Change-Id: I4b12176599686f7e545b63c8e54cf9da6a1f963e
2013-02-05 11:30:27 -08:00
Chuck Short
6cf76c94a5 Update requests requirements
Bump the version requirements for requests so it does
not conflict with the version of requests required
for glance (unpinned).

Change-Id: I06479b8ceb04df749a6d7f7dc584892a688cd449
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-02-05 09:40:19 -06:00
Michael J Fork
76c7b08645 Mark password config options with secret
Config object supports masking values when writing out if the secret
flag is set on the option definition.  This change flags all
python-keystoneclient options containing a password.

Change-Id: I1ffc9727ab66c7acc6d4cf8e5870bb32f5e68b67
2013-02-04 16:20:46 +00:00
Steve Martinelli
92bf8a7af9 fix discrepancies seen in domain and credential, v3 - bug 1109349
domains.py
added list method
added args private_project_names and private_user_names to create and update
credentials.py
added list method

Change-Id: I0d231e909742bb56b79c91d3d0f7dac3bd3ec552
2013-01-30 13:11:06 -06:00
Jenkins
3573672596 Merge "Take region_name into account when calling url_for" 2013-01-30 00:49:36 +00:00
Jenkins
2e479cf622 Merge "Fix thinko in self.middleware.cert_file_missing" 2013-01-28 14:22:29 +00:00
Jenkins
1cbda90717 Merge "Fix STALE_TOKEN_DURATION usage" 2013-01-26 17:32:13 +00:00
Jenkins
9392732a3f Merge "Factorize endpoint retrieval in access" 2013-01-24 22:16:12 +00:00
Jenkins
2e0ed7fe7b Merge "Remove useless code" 2013-01-24 22:06:24 +00:00
Jenkins
f5bc5f6d9c Merge "Restore Python 2.6 compatibility" 2013-01-24 22:04:06 +00:00
Jenkins
be078ca85c Merge "Allow request timeout to be specified." 2013-01-24 22:04:04 +00:00
Julien Danjou
7afcea1e66 Fix STALE_TOKEN_DURATION usage
Change-Id: I9856684d93d8b45310e599863553a020180aa509
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-24 18:48:22 +01:00
Julien Danjou
1f8a263fc4 Factorize endpoint retrieval in access
Change-Id: Iaace7020696b238e7829dbcae60f0bc7c74a79e4
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-24 12:27:11 +01:00
Sam Morrison
d5af38165a Take region_name into account when calling url_for
Fixes bug 1103282

When creating a Client object with region_name specified, url_for
will return an endpoint url for that region.

Change-Id: Ia5c95503fe2ed5e53de93040d70ba08a9c09f286
2013-01-24 09:38:32 +11:00
Julien Danjou
ca348fe951 Remove useless code
- There's no need to call parent init function since that's the default
  behaviour.
- The token attribute is nor used nor updated anywhere.

Change-Id: Ib0b2729a396a2d761931ce0e178c49c49814eb21
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-23 15:15:30 +01:00
Dirk Mueller
e676ab9f06 Fix thinko in self.middleware.cert_file_missing
The python function string.find() returns -1 on a miss,
which is also evaluated as True. Therefore use the
"X in Y" approach instead.

Also added a rather trivial test to test for this
code bug. In order to make the code easier to test,
I've changed the parameters to operate on the command
output, not the exception object and updated all callers.

Change-Id: If0b4fed6fe676cad50512267c1b601a3a8a631e5
2013-01-23 09:55:33 +01:00
Dirk Mueller
05f731253d Restore Python 2.6 compatibility
Python 2.6 did not have a keyword argument 'output'
in the constructor defined yet, which caused a TypeError
exception

Change-Id: I4d455bef3480a7511172c58fd4794fa1e8acce8c
2013-01-22 09:52:51 +01:00
Joshua Harlow
d2edaab531 Allow request timeout to be specified.
Add a new cli argument (--timeout) which
is by default 600 seconds which will be
set in the requests library so that timeouts
can occur correctly.

Change-Id: I845c55dfb6f6b8345663ccdb5b150a2655f20026
2013-01-18 19:11:24 -08:00
Dirk Mueller
0279e8f4d3 Remove assertDictEqual for python 2.6 compatibility
Removes assertDictEqual from keystone tests and replaces it with assertEqual

Change-Id: I48011bb176d9f9131339d4500338a75d86305b75
2013-01-18 17:25:17 +01:00
Ken'ichi Ohmichi
9351665062 Add name arguments to keystone command.
This patch adds name arguments to the following subcommands:
  * role-delete
  * role-get
  * service-delete
  * service-get
  * tenant-delete
  * tenant-get
  * tenant-update
  * user-delete
  * user-get
  * user-password-update
  * user-role-add
  * user-role-list
  * user-role-remove
  * user-update

Fixes bug 1100648

Change-Id: I73c08c0ba553a72ec57ff3a684a00be4ef1294a6
2013-01-17 18:11:27 +09:00
Guang Yee
3dfb8437fc Blueprint memcache-protection: enable memcache value encryption/integrity check
DocImpact

Change-Id: I8b733256a3c2cdcf7c2ec5edac491ac4739aa847
2013-01-15 22:06:56 -08:00
Doug Hellmann
4851cc1751 Make WebOb version specification more flexible
Change the WebOb version to >=1.0.8 as a temporary
measure to allow the actual version update to 1.2.3
to roll out across the projects one at a time without
breaking the integration tests.

Change-Id: Ia4f9f92ae7013098706924eef8728bcd85869c29
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-01-15 18:47:19 -05:00
nachiappan-veerappan-nachiappan
a3657f999e Warning message is not logged for valid token-less request.
if delay_auth_decision is set,auth_token middleware
does not log messages for valid token-less requests.

Fixes: bug #1028683
Change-Id: Ia2069686b86cc833327b11343ebaed59663fd379
2013-01-14 12:53:44 -08:00
Jenkins
4a232ac641 Merge "Remove iso8601 dep in favor of openstack.common" 2013-01-13 22:53:00 +00:00
Jenkins
a5e3638807 Merge "Move iso8601 dependency from test- to pip-requires" 2013-01-12 01:01:13 +00:00
Dolph Mathews
e9ec399e66 Use os.path to find ~/keystone-signing (bug 1078947)
Change-Id: Ie816d34299c92ba7d5cf6acf717ccfbf029f724f
2013-01-11 10:14:14 -06:00
Dolph Mathews
94525e3401 Remove iso8601 dep in favor of openstack.common
Change-Id: I83d5c8681cc3cde4889d74d50c0ffa58b96b2819
2013-01-09 12:59:46 -06:00
Brian Waldon
db0d75b0ca Move iso8601 dependency from test- to pip-requires
Fixes bug 1097860.

Change-Id: Idcf880f9dfa956e6d240357150a9f5a24372f97a
2013-01-09 09:40:46 -08:00
Jenkins
9a4b77b04e Merge "Use testtools instead of unittest for base classes." 2013-01-08 22:00:53 +00:00
Jenkins
1b25e241e8 Merge "Spelling: compatibile->compatible" 2013-01-08 15:21:49 +00:00
Jenkins
a0967eb0ec Merge "Pin requests to >=0.8.8." 2013-01-05 23:18:43 +00:00
Jenkins
4b97732381 Merge "Fix keystone *-list order by 'name'" 2013-01-05 22:59:58 +00:00
Yaguang Tang
dd24bcf15c Pin requests to >=0.8.8.
requests add SSL CERT VERIFICATION support since 0.8.8.
fix bug #1094699

Change-Id: I7974983087f7483283438906d738bec7cba84ed2
2012-12-31 00:42:47 +08:00
Monty Taylor
55f2cdbe29 Use testtools instead of unittest for base classes.
part of blueprint grizzle-testtools

Change-Id: Ic9b438b4224d945e080d1d6071742ddc47ee81ed
2012-12-25 00:04:42 -06:00
Henry Nash
d37a3fb06c Add support for user groups
This initial change provides the support in keystoneclient to match the api
specified in the blueprint.  Keystone itself does not yet support these
calls, so if you actually called these, then you would get an error from
the server. However the changes should be benign in terms of other api calls.

Blueprint keystone/+spec/user-groups
Api changes: review.openstack.org/#/c/18138

DocImpact

Change-Id: I9abfa82b39fa0c6d58fe0d22622944d3e6be39be
2012-12-21 18:28:02 +00:00
Jenkins
033cfe4f20 Merge "Add file 'ChangeLog' to MANIFEST.in" 2012-12-21 18:25:47 +00:00
Adam Young
e7fd4b9b57 Make it possible to debug by running module.
Change-Id: I6ac6f18c4737b19e03a9be07718f8b64d43953c2
2012-12-20 14:20:50 -05:00
Jenkins
882414d807 Merge "Use requests module for HTTP/HTTPS" 2012-12-20 19:07:53 +00:00
Jenkins
df4ed67a71 Merge "Print to stderr when keyring module is missing." 2012-12-20 17:17:42 +00:00
Adam Young
a4aa5272e5 remove unused import
Change-Id: I71d3da8b3fcaaf9a521c5570afe92e508bf181b7
2012-12-19 16:24:32 -05:00
Guang Yee
62be31419f Bug 1052674: added support for Swift cache
This patch merely address the Swift cache backward compatibility support.

There's another BP which address the elephant-in-the-room, which is
unified and consistent caching mechanism for all middleware.

See https://blueprints.launchpad.net/keystone/+spec/unifed-caching-system-for-middleware

Change-Id: Iab6b4ac61c9aa9e7ad32a394557cb7558bd60a43
2012-12-19 10:24:37 -08:00
Sascha Peilicke
402634b07b Add file 'ChangeLog' to MANIFEST.in
The file is missing from tarballs released at tarballs.openstack.org.

Change-Id: I5c4f53f32b2e6b3741b03658d9c9472fca4226dd
2012-12-19 15:09:16 +01:00
Masayuki Igawa
a1261e7f9e Fix keystone *-list order by 'name'
'keystone user-list' is order by 'name' now.(see bug 1073437)
But {role, service, tenant, user-role}-list are not. So this patch fixes these.

Fixes bug 1091894

Change-Id: I1876d0b1e1ea625efe91c3f8261bafd2bf34b0de
2012-12-19 08:24:42 +09:00
Dean Troyer
51dc6a0cef Use requests module for HTTP/HTTPS
* Implement correct certificate verification
* Add requests to tools/pip-requires
* Fix OS_CACERT env var help text
* Add info to README
* Rework tests to use requests

Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.

Change-Id: I120d2c12d6f20ebe2fd7182ec8988cc73f623b80
2012-12-18 15:30:43 -06:00