| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Similar to a range of other components (e.g. glance,nova,...) and recent
reviews by Monty.
Running individual tests can be done like this:
./run_tests.sh keystone.tests.test_drivers
Change-Id: I2482a48322150e5eb09b703326a94d8283f1c75b
|
|
|
|
| |
Change-Id: I8ca595a0d1ba48150187ef7c9ed7f2e808bb6f8e
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Requests would fail with a 500 Internal Server Error if the
admin_token_auth middleware was removed from the paste pipeline.
The requests would fail because the code assumed that the context
contained an 'is_admin' element, but that element was only in
the context if the admin_token_auth middleware was in the
pipeline.
This change makes it so that if the admin_token_auth middleware
isn't in the paste pipeline requests will not fail with a
500 Internal Server Error.
Change-Id: Ic064785226ee70ee475d8f72fea3c2ae6971a07f
Fixes: bug 1190708
|
|
|
|
|
|
|
| |
It appears to be made when you resume a broken venv creation.
It is listed in oslo's pep8 exclude list and .gitignore.
Change-Id: I3db570c778ca9c6e0df72f5512ed1a9c643ecb38
|
|
|
|
|
|
|
|
|
| |
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.
Fixes: bug #1179008
Change-Id: I1a19f0c73ab48987e2ff0dade1a57a68b65f0a22
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Taking advantage of this middleware either requires enabling
verbose/debug or utilizing an external logging.conf which configures an
'access' logger.
Example output:
127.0.0.1 - - [2013-01-29T17:15:02.752214] "GET http://localhost:5000/v3/projects HTTP/1.0" 200 16
This patch also revises etc/logging.conf.sample with some more practical
defaults (e.g. supporting externally-managed log rotations) in addition
to illustrating how to generate an 'access.log' file.
DocImpact
Change-Id: I2a6048fa5fbf8661a6859d9e3a259d4cfa5fc589
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I3a9bb25b1fbdc696cee45e97e67dfb9af35e7718
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using a cached copy of the SQLite Data base speeds up the tests:
Before this change
Ran 44 tests in 126.154s
OK
Slowest 5 tests took 15.87 secs:
3.34 test_delete_role (test_backend_sql.SqlIdentity)
3.17 test_delete_user_with_tenant_association (test_backend_sql.SqlIdentity)
3.17 test_create_tenant_invalid_name_fails (test_backend_sql.SqlIdentity)
3.10 test_get_user (test_backend_sql.SqlIdentity)
3.10 test_get_tenant_bad_tenant (test_backend_sql.SqlIdentity)
After this change:
Ran 44 tests in 58.996s
OK
Slowest 5 tests took 8.64 secs:
2.57 test_add_user_to_tenant (test_backend_sql.SqlIdentity)
1.58 test_update_tenant_long_name_fails (test_backend_sql.SqlIdentity)
1.51 test_rename_duplicate_user_name_fails (test_backend_sql.SqlIdentity)
1.50 test_delete_tenant_with_user_association (test_backend_sql.SqlIdentity)
1.49 test_delete_user_with_tenant_association (test_backend_sql.SqlIdentity)
Slowest test was where the database was initialized
Change-Id: Idf046763e8718762695bbcedce4d223f654054db
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 976267
Now that git commits are gated by CLA, we shouldn't enforce
committers to add an entry in AUTHORS file. The AUTHORS file
should be generated automatically, based on git commits.
This commit fixes the problem.
* AUTHORS
Remove this file.
* .gitignore
Add AUTHORS file.
* keystone/openstack/common/setup.py
generate_authors(): New method to create AUTHORS file. If
AUTHORS.in file exists, append it's content to AUTHORS file.
* setup.py
Import the new method.
local_sdist.run(): Generate AUTHORS file before creating the
package.
* tests/test_authors.py
Remove this test case.
Change-Id: Id3ca59382e417d054d14f7735f30595bfbe2df48
|
|
|
|
|
|
| |
Fixes bug 966670.
Change-Id: Ic57c9971c4f3a14c30e2382c58c3d0da6b2a7957
|
|
|
|
|
|
| |
* Addresses bug 966612
Change-Id: Ia8372abc2bb72e3ff56b2d5ee3b8436ea3157efa
|
|
|
|
|
|
| |
- Root logger w/ file handler will log WARNING, ERROR, CRITICAL by default
Change-Id: I36cd07cec85712640daa013563401a3bc52f290c
|
|
|
|
| |
Change-Id: I9402b47a61acbd78028ff6f74838b2f5074b9f97
|
|
|
|
|
|
|
|
| |
Fixes bug #932729
legacy*.sqlite.db files should also be ignored.
Change-Id: Ia776bc45f880e2f1ffd67963c020773a29645153
|
|
|
|
| |
Change-Id: I528c3cc4e16dfa1465c8e3ac1062c65dc2ddc2f0
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|