30 Commits

Author SHA1 Message Date
Victor Morales
ca25a23af0 Sqlite files excluded from the repo
In order to avoid submission of sql database files by mistake, it was
added the pattern of those files into the .gitignore file.

Change-Id: Iaec6b15c8d879c42883de138fa70a2004ca9b2b5
Closes-Bug: #1347976
2014-07-23 20:56:19 -05:00
Dolph Mathews
ec9c58454d gitignore etc/keystone/
this is the default directory used by pki_setup and ssl_setup if running
with a keystone.conf alongside keystone.conf.sample for development...
for example:

$ tree etc/keystone/
etc/keystone/
└── ssl
    ├── certs
    │   ├── 01.pem
    │   ├── ca.pem
    │   ├── index.txt
    │   ├── index.txt.attr
    │   ├── index.txt.old
    │   ├── openssl.conf
    │   ├── req.pem
    │   ├── serial
    │   ├── serial.old
    │   └── signing_cert.pem
    └── private
        ├── cakey.pem
        └── signing_key.pem

3 directories, 12 files

Change-Id: I6264805dc91bc165e930708c2781074aa0b29070
2014-06-05 13:56:18 -05:00
David Stanek
3f27b309f0 Fixes documentation building
- Adds the ability to build docs using tox
 - Fixes autodoc generation

A Sphinx extension is introduced in the commit to facilitate building
the API documentation. This extension should be removed when
bug 1260495 is fixed.

Change-Id: Ibf5e5403cb7d3e67947c87b2828b64a56a11fc30
2013-12-13 02:47:37 +00:00
Sushil Kumar
083c07c4b5 Updates .gitignore
To ignore swap files from getting into repository
currently the implemented ignore is *.swp
however vim adds more swap files if these files exists,
so improving this with *.sw?

Change-Id: I5c70908e32fc5316e395c72810fc45f5db8a7a77
Closes-Bug: #1255864
2013-12-02 17:22:05 +00:00
David Stanek
59adb86b26 Changes to testr as the test runner
run_tests.sh has also been deprecated.

Fixes-Bug: #1177924
Change-Id: I15c1707eb6a62c74a0021a48b89ae15f03fcfea8
2013-10-15 12:28:38 +00:00
Brant Knudson
760856e966 Add support for API message localization
Add support for doing language resolution for a request, based on the
Accept-Language HTTP header.

Using the lazy gettext functionality from oslo gettextutils, it is
possible to use the resolved language to translate an exception message
to the user requested language and return that translation from the API.

Co-authored-by: Luis A. Garcia <luis@linux.vnet.ibm.com>
Co-authored-by: Mathew Odden <mrodden@us.ibm.com>

Implements bp user-locale-api

Change-Id: Id8e92a42039d2f0b01d5c2dada733d068b2bdfeb
2013-08-14 18:09:01 -05:00
Sascha Peilicke
14e090154c Move 'tests' directory into 'keystone' package
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
2013-08-14 01:30:01 -03:00
Adam Young
a39a97d104 .gitignore eggs
Change-Id: I8ca595a0d1ba48150187ef7c9ed7f2e808bb6f8e
2013-07-31 12:28:36 -04:00
Jamie Lennox
2397133b8f Move temporary test files into tests/tmp
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
2013-07-11 09:31:39 +10:00
Brant Knudson
19fb6fc377 Work without admin_token_auth middleware
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
2013-07-03 16:19:00 -05:00
Jamie Lennox
866320c0f7 Ignore the .update-venv directory.
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
2013-06-04 17:12:58 +10:00
Carlos D. Garza
2bc22ef6f7 Rename requires files to standard names.
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
2013-05-24 17:55:05 -05:00
Dolph Mathews
378635224b Generate apache-style common access logs
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
2013-01-31 08:16:21 -06:00
Monty Taylor
49487a6ac6 Remove run_test.py in favor of stock nose.
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
2012-09-27 22:34:51 -07:00
Adam Young
32b82aedd3 Ignore eclipse files.
Change-Id: I3a9bb25b1fbdc696cee45e97e67dfb9af35e7718
2012-09-06 12:11:45 -04:00
Adam Young
5c35a84b72 Speed up SQL unit tests.
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
2012-06-18 20:27:41 -04:00
Bhuvan Arumugam
6c3d9c42cc Auto generate AUTHORS file for keystone component.
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
2012-04-30 07:40:48 -07:00
Josh Kearney
f640093ba8 Rename keystone.conf to .sample.
Fixes bug 966670.

Change-Id: Ic57c9971c4f3a14c30e2382c58c3d0da6b2a7957
2012-04-10 12:38:50 -05:00
Maru Newby
a29ee50bd8 Add build artifacts missing from .gitignore
* Addresses bug 966612

Change-Id: Ia8372abc2bb72e3ff56b2d5ee3b8436ea3157efa
2012-03-27 14:05:30 -07:00
Dolph Mathews
ee577163e3 Improved file logging example (bug 959610)
- Root logger w/ file handler will log WARNING, ERROR, CRITICAL by default

Change-Id: I36cd07cec85712640daa013563401a3bc52f290c
2012-03-19 16:33:00 -05:00
Dolph Mathews
845a0de3f1 gitignore follow up for docs/ rename
Change-Id: I9402b47a61acbd78028ff6f74838b2f5074b9f97
2012-03-01 16:35:02 -06:00
Zhongyue Luo
1746ea6491 Ignore sqlite.db files
Fixes bug #932729

legacy*.sqlite.db files should also be ignored.

Change-Id: Ia776bc45f880e2f1ffd67963c020773a29645153
2012-02-22 13:49:42 +08:00
Monty Taylor
3da657555d Normalize build files with current jenkins.
Change-Id: I528c3cc4e16dfa1465c8e3ac1062c65dc2ddc2f0
2012-01-31 18:28:13 -05:00
termie
94f78a3082 expect sphinx sources to be autogenned 2012-01-18 19:53:37 -08:00
termie
732909a7be add a db_sync command to bin/ks, remove others 2012-01-09 17:55:33 -08:00
termie
8f46af011e basic service running again 2012-01-09 14:32:02 -08:00
Joe Heck
763013c526 renaming keystonelight to keystone 2012-01-09 12:27:18 -08:00
Joe Heck
9691c0f7c8 tweaking for running regular tests in jenkins 2012-01-06 15:58:02 -08:00
Devin Carlen
4b55fa5e8e Split keystone compat by admin and service endpoints 2011-12-30 14:55:57 -08:00
termie
a32c73c535 speed up tests 2011-12-27 12:51:36 -08:00