Commit Graph

39 Commits

Author SHA1 Message Date
Kristi Nikolla 175cb0b642 Tell reno to ignore the kilo branch
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>
2020-02-21 13:51:02 -05:00
Pavlo Shchelokovskyy 91fe8a925b Ignore .eggs dir as well
Change-Id: I1e2b1229edb8272333340b29cc1897a36ed324d5
2018-07-04 12:39:20 +00:00
Jesse Pretorius 3ffee23599 Remove the sample .conf file
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
2018-04-18 19:41:37 +00:00
Gage Hugo 71e543152e Migrate to stestr
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
2017-09-22 11:07:09 -05:00
Lance Bragstad d28f4cd97c Cleanup policy generation
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
2017-05-02 15:08:41 +00:00
Lance Bragstad ca70982775 Include sample policy file in documentation
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
2017-04-21 21:47:09 +00:00
Samuel de Medeiros Queiroz 9a5395f1b2 Migrate identity /v3 docs from api-ref repo
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
2016-05-24 09:58:23 -03:00
Steve Martinelli 15668ded09 include sample config file in docs
leverage oslo.config to rebuild our sample config file in our
docs

Change-Id: I88a2429dd3cacd1d014b5b441b98fbfee7e1e208
2016-02-08 16:40:58 -05:00
Steve Martinelli a18e359ad7 Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: I187f63dff3603fa9690f7bfa2dc6d5b53193b21a
2015-11-10 16:10:00 -05:00
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