12 Commits

Author SHA1 Message Date
Rafael Durán Castañeda
04df79b64e Run pep8 for tests.
Fixes bug 1021508

Test code should be as pep8 compliant as source code, however right now
'run_tests.sh' only runs pep8 for source code.

Change-Id: I877493a8bf6f28bef71fe2aca6f188a75798225f
2012-07-06 00:56:23 +02:00
Jenkins
ed43d47b82 Merge "Reorder test imports by full import path" 2012-07-03 19:03:25 +00:00
Zhongyue Luo
a7417e26d8 Reorder test imports by full import path
Fixes bug #1020182

Reorder imports of modules in keystone/tests.

Change-Id: I2ff61dd3d9486281b4a2a889e4dc8b9105c87d49
2012-07-03 00:21:39 +08:00
Adam Young
58105d8f56 Correct Tree DN
instead of
    cn=example,cn=com,ou=Users
code now generates
    ou=Users,cn=example,cn=com

Getting stricter in testing and adding some regression testing

Fixes Bug 980209

Change-Id: Ib97e6cb00848ea183c7e1f2b2589b25924a08caa
2012-06-29 21:41:37 -04:00
Dolph Mathews
23ca656927 Refactor 404's into managers & drivers (bug 968519)
The goal is to move the responsibility of reference checks away from
controllers and into the underlying managers & drivers, which can
handle the task with equal or greater efficiency.

- Tenant references from create_user/update_user are NOT tested
  due to inconsistencies between backends
- Additional test coverage improvements

Also fixes bug 999209, bug 999608, bug 1006029, bug 1006055, bug 1006287,
bug 1006334, and bug 1006344.

Change-Id: I7de592e7dd4518038436b9a9fdaab559b00a0537
2012-06-27 11:47:24 -05:00
Mark McLoughlin
b2aa78b558 Use cfg's new global CONF object
Implements blueprint cfg-global-object

Change-Id: Ic53b41dafa8666ce21f33697f7e8697f1e5cb0fd
2012-06-13 08:14:40 +01:00
Chmouel Boudjnah
bb2fbb7030 Fixes some pep8 warning/errors.
- Using flake8 so a bit more than that.

Change-Id: I63fa21f7d3d02f96c0c56804fdd56da37c952d7d
2012-05-24 16:21:09 +02:00
Josh Kearney
f640093ba8 Rename keystone.conf to .sample.
Fixes bug 966670.

Change-Id: Ic57c9971c4f3a14c30e2382c58c3d0da6b2a7957
2012-04-10 12:38:50 -05:00
Dolph Mathews
5720730c2e Added license header (bug 929663)
Change-Id: Ia36a22f2d6bba411e4fad81ea2d6fa1f0465a733
2012-03-09 18:49:45 +00:00
Adam Young
bc346357a2 LDAP get_user_by_name
Required by keystoneclient

https://bugs.launchpad.net/keystone/+bug/943567
bug 943567

Change-Id: I5aec63e81262ad6f3b2e5a984841d8d6bdfa8da5
2012-03-02 14:50:13 -05:00
termie
dd35d2afbf standardize ldap and related tests
ldap was accidentally supplying some of its own values rather than using
the built-in fixtures, so it was providing the incorrect interface for a
couple calls.

also adds a test for get_user_by_name (skipped for ldap) and
standardizes the kvs and ldap authenticate calls

fix user authentication live ldap tests
Change-Id: If1ccce1fd9c84622bb89344bc5d5c59b059d03ae
2012-03-01 15:39:22 -05:00
Adam Young
63437e9dca LDAP Identity backend
Bug 933852

Merged over the code from the legacy keystone implementation, updated
style and streamlined the API a bit.

 * Unit tests can be run against a live OpenLDAP server
 * Password hashing done via passlib. Only does salted sha1, which is what simple_bind requires, but is not secure.
 * Added pip dependencies

Change-Id: I5296d94f6b7d0a7c7dbc887cdae872171e34bb5f
2012-02-27 16:51:46 -08:00