1754 Commits

Author SHA1 Message Date
Brant Knudson
225832f591 Switch from deprecated oslo_utils.timeutils.strtime
The oslo_utils.timeutils.strtime function is deprecated as of
oslo_utils 1.7.

 DeprecationWarning: Using function/method
 'oslo_utils.timeutils.strtime()' is deprecated in version '1.6'
 and will be removed in a future version: use either
 datetime.datetime.isoformat() or datetime.datetime.strftime()
 instead

Closes-Bug: 1469867
Change-Id: I97897728703547414a621b6687989cff07e01b3e
2015-06-30 12:58:55 -05:00
Brant Knudson
97c2c690d8 Switch from deprecated isotime
oslo_utils.timeutils.isotime() is deprecated as of 1.6 so we need
to stop using it.

The deprecation message says to use datetime.datetime.isoformat()
instead, but the format of the string generated by isoformat isn't
the same as the format of the string generated by isotime. The string
is used in tokens and other public APIs and we can't change it
without potentially breaking clients.

So the workaround is to copy the current implementation from
oslo_utils.timeutils.isotime() to keystone.common.utils.isotime().

Change-Id: I34b12b96de3ea21beaf935ed8a9f6bae2fe0d0bc
Closes-Bug: 1461251
2015-06-30 12:58:55 -05:00
Jenkins
aa9e413a6d Merge "Support /auth routes for list projects and domains" 2015-06-30 17:51:59 +00:00
Jenkins
dc10872ed6 Merge "Update README.rst and remove ancient reference" 2015-06-29 19:50:48 +00:00
Steve Martinelli
ef0f2677c2 Remove keystoneclient CLI references in README
The content of this file determines what it shown in pypi, which
many end users see. Highlighting our soon to be deprecated CLI
as a feature for python-keystoneclient seems illogical.

Change-Id: Ia756353f0c58fac245be2e2daaa63ca7831478d1
2015-06-29 00:12:44 +00:00
Steve Martinelli
20db11f8bd Update README.rst and remove ancient reference
There's no need to give a shout out to a project that is going on
6 years old and has been deprecated.

Also provide more valuable links, such as where we track bugs, our
source code, and docs.

Change-Id: I9ea5ca83366f9dc0b2732c5db017257a1250fc05
2015-06-29 00:12:11 +00:00
Steve Martinelli
a951023f7c Remove unused images from docs
These images were used to show how auth_token worked, these images
are now shown on keystonemiddleware's docs, so lets remove them
from here.

Change-Id: I2e882d3580737ee091a5e05cf98b0d652f3fefcb
2015-06-28 05:49:46 +00:00
OpenStack Proposal Bot
2b058baf7b Updated from global requirements
Change-Id: I5245437065635831c58d6e433d1c5dfe089f0dd0
2015-06-22 20:00:20 +00:00
Jenkins
d238cc9af4 Merge "add --slowest flag to testr" 2015-06-22 19:33:40 +00:00
Jenkins
7c103a6e9b Merge "Add openid connect client support" 2015-06-22 15:51:19 +00:00
Jenkins
56a7d0b52c Merge "Use python-six shim for assertRaisesRegex/p" 2015-06-18 02:12:05 +00:00
Jenkins
4547767eb2 Merge "Removes unused debug logging code" 2015-06-18 01:17:58 +00:00
Steve Martinelli
02f07cfb49 Add openid connect client support
This patch allows a federated user to obtain an unscoped token by
providing login credentials for a keystone identity provider.

The current implementation should work with any properly configured
openid connect provider.

partially implements bp openid-connect

Change-Id: Iade52b5c1432d64582cbaa8bac41ac6366c210f9
2015-06-17 11:15:03 -04:00
Brant Knudson
350b7951d0 Stop using tearDown
tearDown doesn't get called when there's an exception in setUp,
which can cause issues with test stability and isolation, so
better to avoid it.

Change-Id: I5ca2d84bcf82f4c88af26b4c582b0f23264a959c
2015-06-13 09:02:09 -05:00
Brant Knudson
f249332bb6 Use mock rather than mox
Switch to mock rather than mox. We should pick one or the other
mocking library, and mock is preferred.

Change-Id: I86ad9638da2f53189fbaea3fd9476356eb0c7ff5
2015-06-13 09:02:09 -05:00
Brant Knudson
75d4b16eaf Remove unused setUp from ClientTest
The mocking that's done in ClientTest.setUp isn't being used.

Change-Id: I78e6012c7a26b27a7cc8da36469c5812e91282bf
2015-06-13 09:01:44 -05:00
Jenkins
9ee4ed5a4b Merge "tox env for Bandit" 2015-06-12 12:05:55 +00:00
Jenkins
ec193821ad Merge "Iterate over copy of sys.modules keys in Python2/3" 2015-06-11 02:41:36 +00:00
OpenStack Proposal Bot
08783e0fb5 Updated from global requirements
Change-Id: I299a6998ccbe237a244473aff08697c20e606623
2015-06-11 00:48:15 +00:00
Jenkins
54d5b1a4ca Merge "Add get_communication_params interface to plugins" 2015-06-09 22:23:44 +00:00
Jenkins
53391c190e Merge "Use random strings for test fixtures" 2015-06-09 20:38:41 +00:00
Corey Bryant
d99c56fa53 Iterate over copy of sys.modules keys in Python2/3
Iterate over a copy of sys.modules keys in both Python 2.x and
Python 3.x.  In Python 3.x, keys() is not a copy, and therefore
items can't be popped from it while iterating.

Change-Id: I98c3d7695bbfe3a6a4f23990af45a07dc147f22f
Closes-Bug: #1463503
2015-06-09 13:42:53 -04:00
Brant Knudson
945e5195e8 Use random strings for test fixtures
Tests should use a random string so that we don't mistakenly use
the wrong string and not test what we think we're testing.

Change-Id: Ied0672db78a1e1cf2d390020cc5a49d0203683be
2015-06-08 21:11:54 -05:00
Brant Knudson
c0046d7d01 Stop using function deprecated in Python 3
Python 3 deprecated the logger.warn method in favor of warning.

 DeprecationWarning: The 'warn' method is deprecated, use 'warning'
 instead

Change-Id: Idbd4de3c7c631fb2c235701c9b300c37a90d9538
2015-06-08 20:29:07 -05:00
Corey Bryant
2a032a5f37 Use python-six shim for assertRaisesRegex/p
Python2 uses assertRaisesRegexp while Python3 uses assertRaisesRegex.
Use the compatability shim in six for this:
https://pythonhosted.org/six/#unittest-assertions

Change-Id: I28ce94207567e0b3c28c634119757a1d68e955f2
Closes-Bug: #1462370
2015-06-05 09:45:08 -04:00
Jenkins
7f407488ce Merge "Cleanup fixture imports" 2015-06-04 11:27:09 +00:00
Brant Knudson
86018ca864 tox env for Bandit
A tox env is created for the Bandit static code analyzer for
security.

bp bandit

Change-Id: I8c0178befec77fe3d29b411a15ceed9a020820b5
2015-06-03 21:01:18 -05:00
Jamie Lennox
f6ab133f25 Add EC2 CRUD credential support to v3 API
The keystone V3 API ships with EC2 in the pipeline by default. The CRUD
manager is available for the V2 API and we should also make it available
for v3.

Change-Id: I635a12b1647d5187ded7d0aea9c0277dfbb15eff
Closes-Bug: #1236326
2015-06-02 10:30:41 +10:00
Brant Knudson
f756798c2a Cleanup fixture imports
OpenStack hacking guidelines say to not import objects, only
modules[1].

[1] http://docs.openstack.org/developer/hacking/#imports

Change-Id: I6ccb7fda5c406458567bd20ccc1d673fca245191
2015-05-31 10:27:01 -05:00
Jenkins
ab12c353fc Merge "Fix auth required message translation" 2015-05-30 13:49:38 +00:00
David Stanek
28fd6d59e1 Removes unused debug logging code
Since this code is no longer used I just went ahead and deleted it.

Change-Id: I84978a4974c5a4a9a6dc46116b2a03f6046995d4
2015-05-30 12:36:16 +00:00
Jenkins
5ffb1578e7 Merge "A Default CLI plugin" 2015-05-29 16:55:20 +00:00
Jenkins
795b856717 Merge "Fixed grammatical errors in the V2 Client API doc" 2015-05-28 06:43:33 +00:00
Jenkins
b890217f4b Merge "Fixe example code in Using Sessions page" 2015-05-28 06:41:10 +00:00
Jamie Lennox
a4d481076d A Default CLI plugin
A plugin that can be used by default by any CLI application. This would
allow us to convert the other service CLIs to a consistent set of
options.

Closes-Bug: #1459478
Change-Id: I9ce6c439d530040e9375f7fd26a9ec2e0ba8b2a4
2015-05-28 01:27:44 +00:00
Michael Simo
519282d883 Fixed grammatical errors in the V2 Client API doc
In the using-api-v2.rst document, various inconsistencies in spelling of
"openstackDemo", as well as the password under the "Creating Tenants" and
"Creating Users" sections.

Updated service names to adhere to the OpenStack service naming conventions.

Fixed capitalization of "Client" to "client".

Change-Id: Ib20782f5b05f7097158f606c6562f92126650b89
Closes-Bug: #1458015
2015-05-27 16:46:32 +00:00
DhritiShikhar
416a3c1c4f Fixe example code in Using Sessions page
* Changes the auth_url to use /v3
* Adds the user_domain_id argument

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

Closes-bug: 1428309
Change-Id: I8471d9fbbd4d14cbb60395f90e8e61b9ed9f7d3b
2015-05-27 13:34:44 -03:00
Jamie Lennox
0ecf9b1ab5 Add get_communication_params interface to plugins
To allow authentication plugins such as using client certificates or
doing kerberos authentication with every request we need a way for the
plugins to manipulate the send parameters.

Change-Id: Ib9e81773ab988ea05869bc27097d2b25e963e59c
Blueprint: generic-plugins
2015-05-26 17:05:09 +10:00
Jamie Lennox
deeab3c164 Fix auth required message translation
Passing a string that is formatted into a translation function doesn't
work. We need to pass the full translatable string.

Change-Id: I94b13f18c19b3b872fab380f8822a88db1b876e9
2015-05-26 17:02:10 +10:00
Jenkins
4776495adf Merge "Provide a means to get all installed plugins" 2015-05-22 22:53:02 +00:00
Jenkins
d3b1f637e2 Merge "Add docstrings for `protocol` parameter" 2015-05-22 18:07:35 +00:00
Brant Knudson
c2461d09be Revert "Remove keystoneclient.middleware"
This reverts commit 37742ec52082f14a8467a464a431987ac1b5df7a.

Conflicts:
	requirements.txt

Change-Id: I4b3749793e67b37c8a39f00a32e5d4e818fd04a1
2015-05-21 12:41:06 -05:00
Brant Knudson
7e4d409612 Revert "Remove unused fixtures"
Repropose this

This reverts commit e7853b8909358a78b8ae86c075ee234467a0d82f.

Change-Id: I7b21bb139ccf7379d6f1b26f1ecddaa43767a334
2015-05-21 12:41:02 -05:00
Marek Denis
af9d954ef5 Add docstrings for `protocol` parameter
Parameter ``protocol`` was missing docstrings in the __init__.
Also, config help is very poor.
This patch fixes both issues.

Change-Id: Ia2cfee9ba6aa5f4ca036c008bcfe03ff9113c7a3
2015-05-21 19:15:54 +02:00
Jenkins
841e634ace Merge "Support discovery on the AUTH_INTERFACE" 2015-05-20 23:10:10 +00:00
Jenkins
e74f284243 Merge "Prompt for password on CLI if not provided" 2015-05-20 20:08:05 +00:00
Jenkins
4d440709c4 Merge "Ensure that failing responses are logged" 2015-05-20 20:06:20 +00:00
Eric Brown
7cf319e790 Typo in openstack client help
The openstack client output for the help of --os-user-id states
"longin" instead of "login".  The openstack client gets it's help
output from the keystoneclient.

Change-Id: I7c92a82cd60b2835d98101200cf641b46dd145b4
Closes-Bug: #1455673
2015-05-15 14:54:16 -07:00
Jenkins
59c0872cdc Merge "Drop use of 'oslo' namespace package" 2015-05-14 06:53:39 +00:00
Jenkins
64724d70c5 Merge "Sync from oslo incubator" 2015-05-14 06:53:37 +00:00