Bump sqlalchemy minimum version to 1.1.0

Sqlalchemy add a new class for hybrid property in v1.1.0[1]. It
can solve the password length problem for User password SQL obj.

[1]: https://docs.sqlalchemy.org/en/latest/changelog/migration_11.html#change-3653

Change-Id: I7a18bd528607ec5112cc55c7682f95d61be8b509
Closes-bug: #1735250
This commit is contained in:
wangxiyuan 2018-10-29 11:13:18 +08:00
parent bad5665c0b
commit bc6b2f1b0b
4 changed files with 16 additions and 2 deletions

View File

@ -374,6 +374,12 @@ class IdentityTests(object):
PROVIDERS.identity_api.delete_user,
uuid.uuid4().hex)
def test_create_user_with_long_password(self):
user = unit.new_user_ref(domain_id=CONF.identity.default_domain_id,
password='a' * 2000)
# success create a user with long password
PROVIDERS.identity_api.create_user(user)
def test_create_user_missed_password(self):
user = unit.new_user_ref(domain_id=CONF.identity.default_domain_id)
user = PROVIDERS.identity_api.create_user(user)

View File

@ -57,7 +57,7 @@ scrypt==0.8.0
six==1.10.0
Sphinx==1.6.5
sqlalchemy-migrate==0.11.0
SQLAlchemy==1.0.13
SQLAlchemy==1.1.0
stestr==1.0.0
stevedore==1.20.0
tempest==17.1.0

View File

@ -0,0 +1,8 @@
---
fixes:
- |
[`bug 1734244 <https://bugs.launchpad.net/keystone/+bug/1735250>`_]
Users can't set password longer than 128 if Keystone using
`Sqlalchemy` < 1.1.0. Update `Sqlalchemy` to a higher version can solve
this problem.
[`Related Sqlalchemy Changelog <https://docs.sqlalchemy.org/en/latest/changelog/migration_11.html#change-3653>`_].

View File

@ -12,7 +12,7 @@ Flask!=0.11,>=1.0.2 # BSD
Flask-RESTful>=0.3.5 # BSD
cryptography>=2.1 # BSD/Apache-2.0
six>=1.10.0 # MIT
SQLAlchemy>=1.0.13 # MIT
SQLAlchemy>=1.1.0 # MIT
sqlalchemy-migrate>=0.11.0 # Apache-2.0
stevedore>=1.20.0 # Apache-2.0
passlib>=1.7.0 # BSD