This patch was adopted from Idd56c3f37d5786daae7181c36d38d267cbf1885c
Original description:
When reno 3.x runs under setuptools, it scans all of the branches it can
find, including any that look like they're closed and have an -eol tag.
The old kilo branch in this repository has a jumbled history that
somehow makes it look like it should include tags that it doesn't. We
know that there are no release notes in that branch, because reno wasn't
adopted while it was open. The releasenotes/source/index.rst links to
separate release notes in the wiki.
This patch tells reno to ignore that branch so that it doesn't throw an
exception when it gets confused about the old tag.
Change-Id: I28fd0fd499c40e33ff164fd643dadd6ac9009b17
Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Sean McGinnis <sean.mcginnis@gmail.com>
The sample configuration file is almost never up to date as it has to
be updated by a person submitting a patch.
The implementation of published autogenerated sample config files in
documentation was done in I88a2429dd3cacd1d014b5b441b98fbfee7e1e208
and in If00cd3bcc654a45944c0bc8b3f146c75bd970f9a. These generate
sample configuration files and publish them in the documentation on
every commit, ensuring that they are always up to date, and not
requiring human intervention to be updated.
As has been done with nova (in Mitaka), cinder (in Newton), and
neutron (in Newton) this patch removes the sample config file from the
git tree and replaces it with a README file explaining how to generate
them, or where to find the latest published versions in the online
documentation.
This commit also breaks a related testcase into two distinct tests for
easier readability, making it clearer what the behavior is through one
assertion/concept per test.
Depends-On: https://review.openstack.org/#/c/562007/
Change-Id: Ic4d6a98035f59b6ebe48d9c85af50fc9408fc3ab
With the latests changes to os-testr[0] it now expects
a .stestr.conf file instead of a .testr.conf file. This
change migrates the testing suite from using testr to
use stestr instead.
[0] http://lists.openstack.org/pipermail/openstack-dev/2017-September/122135.html
Change-Id: Ie0de862f2192491fa7752af03c8c03b3ee36337a
This commit only adds the sample policy file to the projects
.gitignore file in the interest of keeping environments cleaner.
This also adds the genpolicy tox environment to the tox environment
list to be consistent with how we maintain other tox environments.
Change-Id: Idf538c97f5f7383d8d6e5c18c985d9715033926b
Since we're moving all policy into code and documenting it there we
should generate those docs automatically, so they are less likely to
be out-of-date.
Change-Id: If00cd3bcc654a45944c0bc8b3f146c75bd970f9a
partially-implements: blueprint policy-docs
Docs at [1] have already been converted from WADL (SGML / XML) to RST
using fairy-slipper [2].
This commit polish the results from the conversion and migrate the docs
to our repository under 'api-ref/source' directory. In addition, it
added missing descriptions for access_token_id and consumer_id to
'parameters.yaml'.
Polishing the generated RST files include:
- Removing unnecessary blank lines;
- Removing empty references.
Polishing the generated RST files do not include:
- Modifying their content;
- Modifying file names;
- Wrapping lines at the maximum of 79 chars.
Updating the documentation will be done after this migration step.
This change also adds a tox environment to build the docs using sphinx
under 'api-ref/build', which in turn is added to '.gitignore'.
Lastly, 'os-api-ref' is added as a test requirement. It provides the
sphinx stanzas rest_method and rest_parameter, used to define OpenStack
APIs in RST docs.
[1] https://github.com/openstack/api-site/tree/master/api-ref/source/identity/v3
[2] https://github.com/russell/fairy-slipper
Change-Id: If1b9a3e1b2e4ea7211c337071254c26b881893a3
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
- 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
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
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
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
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
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