summaryrefslogtreecommitdiffstats
path: root/tests/test_import_legacy.py
Commit message (Collapse)AuthorAgeFilesLines
* Move temporary test files into tests/tmpJamie Lennox2013-07-111-4/+3
| | | | | | | | | | | | | 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
* Rationalize how we get roles after authentication in the controllersHenry Nash2013-07-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Stop passing context to managers (bug 1194938)Dolph Mathews2013-06-281-3/+3
| | | | | | | 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
* Isolate eventlet code into environment.Jamie Lennox2013-06-181-1/+2
| | | | | | | | | | | | | | | | | | 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
* split authenticate callAdam Young2013-06-031-6/+8
| | | | | | | | | Necessary step for splitting out the projects also just a cleaner implementation Blueprint extract-projects-from-id Change-Id: I79f9cac4ace6894fba5784bf61c8ef5b4e81d28f
* Import pysqlite2 if sqlite3 is not available.Yuriy Taraday2012-12-111-3/+5
| | | | | | Otherwise test_import_legacy fails on import. Change-Id: I902493f5b726f5bc9e23e776598b8938c85e622c
* Moved SQL backend tests into memoryDolph Mathews2012-10-231-1/+2
| | | | | | (test_keystoneclient_sql still uses a db on disk) Change-Id: I476ee710983adbe3436f41882e8483f8193daf5c
* Remove run_test.py in favor of stock nose.Monty Taylor2012-09-271-0/+4
| | | | | | | | | | | | 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
* Reorder test imports by full import pathZhongyue Luo2012-07-031-3/+3
| | | | | | | | Fixes bug #1020182 Reorder imports of modules in keystone/tests. Change-Id: I2ff61dd3d9486281b4a2a889e4dc8b9105c87d49
* Use cfg's new global CONF objectMark McLoughlin2012-06-131-3/+3
| | | | | | Implements blueprint cfg-global-object Change-Id: Ic53b41dafa8666ce21f33697f7e8697f1e5cb0fd
* Corrects url conversion in export_legacy_catalogSam Morrison2012-05-071-1/+1
| | | | | | Fixes bug 994936 Change-Id: Ia63fdae7d0bcd7f8b0b587da588404765e22fb8f
* Rename keystone.conf to .sample.Josh Kearney2012-04-101-1/+1
| | | | | | Fixes bug 966670. Change-Id: Ic57c9971c4f3a14c30e2382c58c3d0da6b2a7957
* Spring cleaning, fix PEP8 violations.Chmouel Boudjnah2012-03-201-2/+0
| | | | Change-Id: Ide832cd64c9b285213e23901eaf81946d504e726
* Added Apache 2.0 License information.Monty Taylor2012-02-151-0/+14
| | | | | | Fixes bug 932819 Change-Id: I58e0c2ad704e2e8ff1924a01791694a5e02a154b
* add catalog exporttermie2012-02-141-59/+79
| | | | Change-Id: I66a7b3e8136757979c96984242b2bbd5f390b9a0
* make sure passwords work after migrationtermie2012-02-131-3/+18
| | | | Change-Id: I0086a362d772bf158e3fdc12fb42c1c7c50d50dd
* add legacy diablo import teststermie2012-02-131-0/+8
| | | | Change-Id: Id96b376ad92d906d14c3183eec2739fa34a2e51b
* add essex test as welltermie2012-02-131-0/+56
Change-Id: Ib71a360568c6fdef4fdf8791d3f41b749391befb