| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new folder tests/tmp and move all temporary test artefacts like
sqlite dbs into the folder. This has a number of advantages:
- clean up .gitignore and tests folder.
- common/sql/util.py files didn't really belong in common as they were
test only.
- by doing ``sudo mount -t tmpfs -o size=16M tmpfs tests/tmp; sudo chown
$USER: tests/tmp`` tests speed up about 3x (ext4; credit ayoung's blog).
Change-Id: I9b02a5273dd27db963e9a26085b7456f4c5f6a41
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently there is a mixture of strategies in the v2 and v3 controllers
for how to get the roles assigned for the scope of the requested
authentication. This duplicates code, is hard to maintain and in at
least once case (where your only roles on a project are due to a group
membership) is not actually correct (for v2 tokens).
This change does the following:
- Standardizes on using the 'get_roles_for_user_and_project()', and its
domain equivalent, for how roles are obtained to build a token. This
was already the case for v3 tokens. The controllers no longer need
to get metadata and extract the roles.
- Removes the driver level function to 'authorize_for_project' - this is
now handled wihin the controller. The driver simply supports the user
authentication.
A nice (and planned for) sideffect of the above is that we now hide
the schema of how we store roles within the driver layer - i.e.
nothing outside of the driver (other than any specific-to-implementation
tests) have to know about how roles are stored in the metadata. This paves
the way for a re-implementation of the grant tables in IceHouse.
This change also fills in missing function definitons in the assignment
driver.
Implements bp authenticate-role-rationalization
Change-Id: I75fc7f5f728649d40ab1c696b33bbcd88ea6edee
|
|
|
|
|
|
|
| |
We don't have a use case for passing the request context to the manager
layer, so this patch removes a bunch of cruft.
Change-Id: Ic6435782c4c9f32e38c7800172645cc1af23ea09
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The environment module will be configured once, during code initialization.
Subsequently all other possibly-evented modules will retrieve from
environment and transparently obtain either the eventlet or standard
library modules.
If eventlet, httplib, subprocess or other environment dependant module
is referenced outside of the environment module it should be considered
a bug.
The changes to tests are required to ensure that test is imported first
to setup the environment. Hopefully these can all be replaced with an
__init__.py in a post-nose keystone.
Implements: blueprint extract-eventlet
Change-Id: Icacd6f2ee0906ac5d303777c1f87a184f38283bf
|
|
|
|
|
|
|
|
|
| |
Necessary step for splitting out the projects
also just a cleaner implementation
Blueprint extract-projects-from-id
Change-Id: I79f9cac4ace6894fba5784bf61c8ef5b4e81d28f
|
|
|
|
|
|
| |
Otherwise test_import_legacy fails on import.
Change-Id: I902493f5b726f5bc9e23e776598b8938c85e622c
|
|
|
|
|
|
| |
(test_keystoneclient_sql still uses a db on disk)
Change-Id: I476ee710983adbe3436f41882e8483f8193daf5c
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move specific functionality into test fixtures, so that normal test runners
can work. For now, this means we can use unaltered nose. For the future, it
gets us closer to being able to use other test runners such as testrepository
which allow for things like parallel test runs and re-running failed tests
in a dev/test cycle.
Also, aligns keystone with nova and glance.
Change-Id: Ic1966281c0bdfbc09792360209692e9d4a0a51a7
|
|
|
|
|
|
|
|
| |
Fixes bug #1020182
Reorder imports of modules in keystone/tests.
Change-Id: I2ff61dd3d9486281b4a2a889e4dc8b9105c87d49
|
|
|
|
|
|
| |
Implements blueprint cfg-global-object
Change-Id: Ic53b41dafa8666ce21f33697f7e8697f1e5cb0fd
|
|
|
|
|
|
| |
Fixes bug 994936
Change-Id: Ia63fdae7d0bcd7f8b0b587da588404765e22fb8f
|
|
|
|
|
|
| |
Fixes bug 966670.
Change-Id: Ic57c9971c4f3a14c30e2382c58c3d0da6b2a7957
|
|
|
|
| |
Change-Id: Ide832cd64c9b285213e23901eaf81946d504e726
|
|
|
|
|
|
| |
Fixes bug 932819
Change-Id: I58e0c2ad704e2e8ff1924a01791694a5e02a154b
|
|
|
|
| |
Change-Id: I66a7b3e8136757979c96984242b2bbd5f390b9a0
|
|
|
|
| |
Change-Id: I0086a362d772bf158e3fdc12fb42c1c7c50d50dd
|
|
|
|
| |
Change-Id: Id96b376ad92d906d14c3183eec2739fa34a2e51b
|
|
Change-Id: Ib71a360568c6fdef4fdf8791d3f41b749391befb
|