8 Commits

Author SHA1 Message Date
Brian Waldon
eb4aaa97bd Split noauth context middleware into new class
Use UnauthenticatedContextMiddleware in the case that you want to deploy
without an auth service. ContextMiddleware is now solely for authenticated
requests.

* Rewrite ownership tests for adding/updating images through the v1 API
* Fixes bug 992859

Change-Id: I608671aac8300c9195769542708708afda991e04
2012-05-03 09:00:07 -07:00
Bhuvan Arumugam
f4ce37b9c2 Auto generate AUTHORS file for glance.
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. To be consistent with other projects,
  the new file AUTHORS is generated automatically.

* .gitignore
  Add AUTHORS file.

* glance/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.

* MANIFEST.in
  s/Authors/AUTHORS

* glance/tests/unit/test_misc.py
  AuthorsTestCase: Remove this class that test an entry in
  Authors file.
  parse_mailmap(), str_dict_replace(): Remove these methods.

Change-Id: If83c3fe9b2142342ac11cc019bc24926f52ee753
2012-04-30 19:44:43 -07:00
Monty Taylor
eea25b4149 Prep tox config for jenkins builds.
Change-Id: Id81588d3a2aabc0931d5bf12f078d8f770305e69
2012-02-06 08:31:49 -08:00
James E. Blair
37fc2b00c0 Rename .glance-venv to .venv.
This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects.  By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.

Change-Id: I7916783d863e5184bad8293c3aed5ba119e374a9
2011-12-05 13:09:22 -08:00
Kevin L. Mitchell
9385a39bec Additions to .gitignore
Installing or testing glance adds several files that are not currently
ignored by git, leading to cluttered displays of modified files.  This
causes the 'build', 'dist', and 'glance.egg-info' directories to be
ignored, reducing the clutter.

Change-Id: I3f0ca3f99fcf6cfe0480fbf5755908ee411552ea
2011-10-13 13:09:35 -05:00
Jay Pipes
53db059772 Refactoring/cleanup around our exception handling
Fixes LP Bug #820643 - import_class() does not
report original exception.

* Makes ALL exceptions now use base exception class
* Removes unused exception classes from Nova
* Removes unused code in glance.common.utils
* Adds unit tests for bool_from_string and import_class

Change-Id: If6775eb3ce85390bc5d579dff6c59c6066e77e9b
2011-10-11 11:54:20 -04:00
Jay Pipes
72e2e31fea Add @skip_if_disabled decorator to test.utils and integrate
it into the base functional API test case. The S3 functional
test case now uses test_api.TestApi as its base class and
the setUp() method sets the disabled and disabled_message
attributes that the @skip_if_disabled decorator uses.

The S3 test case now tests all the methods that are tested
for the filesystem store driver in test_api.TestApi

Removed the test.functional.test_s3.conf file as it was no
longer needed.

Change-Id: I308d7a655c8c26339d0e2560634421935bbc8b5d
2011-08-08 12:56:30 -04:00
Justin Shepherd
486deeabd6 Implemented @utils.skip_test, @utils.skip_unless and @utils.skip_if functionality in glance/test/utils.py. Added glance/tests/unit/test_skip_examples.py which contains example skip case usages.
Fixed issue where ./run_tests.sh would not execute pep8. Fixed couple of pep8 violations in test_skip_examples.py

Change-Id: Id6eaa8768b663b4638fbca0e3bdf72b74969150a
2011-08-04 11:39:14 -05:00