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
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
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
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
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
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
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
Switch to mock rather than mox. We should pick one or the other
mocking library, and mock is preferred.
Change-Id: I86ad9638da2f53189fbaea3fd9476356eb0c7ff5
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
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
Python 3 deprecated the logger.warn method in favor of warning.
DeprecationWarning: The 'warn' method is deprecated, use 'warning'
instead
Change-Id: Idbd4de3c7c631fb2c235701c9b300c37a90d9538
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
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
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
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
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
Passing a string that is formatted into a translation function doesn't
work. We need to pass the full translatable string.
Change-Id: I94b13f18c19b3b872fab380f8822a88db1b876e9
Parameter ``protocol`` was missing docstrings in the __init__.
Also, config help is very poor.
This patch fixes both issues.
Change-Id: Ia2cfee9ba6aa5f4ca036c008bcfe03ff9113c7a3
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