Commit Graph

32 Commits

Author SHA1 Message Date
Monty Taylor 4f9d4d051a Migrate to pbr.
Fixes bug 1179007.

Change-Id: I99d571bbf37ef53366a96de088c249cb6fd23b0e
2013-05-18 09:02:07 -07:00
Monty Taylor ca17541f33 Migrate to flake8.
Fixes bug 1172444.

Change-Id: Icec0820d0f780ed9473218b7e46e29c1e3db6541
2013-05-18 08:29:02 -07:00
Tatyana Leontovich 8451a94822 Add test for glanceclient shells
Add unittests for the following modules:
* glanceclient.shell
* glanceclient.v1.shell
* glanceclient.v1.legacy_shell
* glanceclient.v2.shell
Also add mock library to the tools/test-requires

Implements: blueprint glanceclient-shells-unittests
Change-Id: I5ec527c5efff3726932d234d7c67e08149643f89
2013-05-17 19:46:07 +03:00
Dirk Mueller 31960f0a85 Allow for prettytable 0.7.x as well
Relax requirements to >= 0.6, < 0.8, as 0.7.x seems to
work as well. Added testcase to ensure this.

Change-Id: I1a1a709e6053451b1256a0d78f8fe8562fb10e62
2013-03-15 17:38:04 +01:00
Brian Waldon 96cd98d00b Expect minumum warlock version of 0.7.0
Change-Id: Ic2ef17f29ebd4c157a8ccf7a52b9c74e0c17a54e
2013-02-13 10:05:06 -08:00
Monty Taylor c5e9426bb5 Migrate to testr.
Part of blueprint grizzly-testtools

Change-Id: I9a12f0300e2731a6ee0a82e1f9737a6b83aa5d85
2013-01-16 18:39:18 -05:00
Monty Taylor 1d461a6496 Use testtools instead of unittest.
Part of blueprint grizzly-testtools

Change-Id: Ie914fd8f59cddb1a480566ec4eff908bfb51921c
2013-01-02 15:20:36 -08:00
Chuck Short c0ec97f310 Pin pep8 to 1.3.3
Standardize pep8 to 1.3.3 and cleared up any errors
found by pep8 tests.

Change-Id: Ib7eb97d0789556d1676ccad58b5d3364065b7d15
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-11-25 11:34:56 -05:00
Vishvananda Ishaya 8d81623d5f Unpin keystoneclient dependency
The new 0.2.0 keystoneclient was released with no api changes, and
glanceclients dependency breaks gating so unpin it.

Change-Id: I9cbe2ebb462005ebfea3b7a0e68ca39069a0765f
2012-11-16 16:37:03 -08:00
Stuart McLaren 556082cd66 Implement blueprint ssl-connect-rework
Use pyOpenSSL for HTTPS connections.

This allows:

* Neater loading of system CA files
* Optional disabling of SSL compression

The performance gain from disabling SSL compression is significant
in cases where the image being uploaded/downloaded is in an already
compressed format (eg qcow2).

Related to bp ssl-connect-rework.

Change-Id: I0568b6c95c5fc7b8eafdbd0284e24c453660a55a
2012-10-08 13:51:41 +00:00
Jenkins e233f66ecd Merge "Add nosehtmloutput as a test dependency." 2012-08-22 00:52:33 +00:00
Clark Boylan df7b82d2f2 Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: Ib7f07dbe7e81d17d42a191a664c7f844f58fcb94
2012-08-21 14:34:22 -07:00
Dan Prince 27350e50e0 Update pip-requires with warlock<2.
Allow warlock to be used up to version 2 (the next
major version of the library).

Change-Id: I0c5a47f9ebfa0145dfab7310a22982d5d8e9aa52
2012-08-17 11:50:33 -04:00
Brian Waldon ba83562b24 Update python-keystoneclient version dependency
We need version v0.1.2 for the 'insecure' keyword to work in
keystoneclient.v2_0.client.Client

Change-Id: I0f8564d5e9067f8e7fcc2f3fb48cd09757977f38
2012-08-01 20:41:41 -07:00
Brian Waldon 1e744f162e Replace httplib2 with httplib as http driver
* This allows us to send truly chunked responses to users
* Handle bad connection url schemes with a new InvalidEndpoint exception
* Fixes bug 1023240

Change-Id: I34500987f51d4e0c6e1f89ecf93853de3fcbb1c3
2012-07-23 13:52:12 -07:00
Jenkins 070f176abf Merge "Relax prettytable dependency to v0.6.X from v0.6" 2012-07-19 21:26:04 +00:00
Brian Waldon c201f24d5a Relax prettytable dependency to v0.6.X from v0.6
Change-Id: Ide7247ba444b60179d9c76c43dfaa43c025b69c9
2012-07-17 15:29:57 -07:00
Brian Waldon c398af18b0 Replace static v2 Image model with warlock model
* Add warlock v0.1.0 as a dependency
* Generate a pythonic, self-validating Image model using warlock
* Add raw method to Schema model
* Related to bp glance-client-v2

Change-Id: Ib98e912a7af0bb570b4fd738733edd9b837d1a04
2012-07-13 18:38:41 -07:00
Monty Taylor c315c5274f Latest setup goodness.
Upgrade the common setup code to the latest versions, and use setuptools-git
for sdist tarball generation.

Change-Id: I81eca9199b7d330ef8ec80482565a75f8475a78c
2012-07-11 12:21:29 -05:00
Monty Taylor ac7121fc0e Use PyPI for keystoneclient.
Change-Id: Ib1ce43cde3e6848a873778dd9fc6aa4709df6452
2012-07-02 18:24:05 -04:00
Brian Waldon 2822748bc1 Stick prettytable at v0.6
Doing this so we can align columns reliably

Change-Id: Ibdbc6f3df08d6f9c45b6e0a0f5a2440ba2637dbd
2012-06-07 14:41:14 -07:00
Brian Waldon bcff183f9a Set pep8 dependency at v1.2
Additionally, remove the pep8 dep override in tox.ini so the dep we
set in tools/test-requires is actually used

Change-Id: Iceb6d7a5dd8eceeebc1408e8a5edfabb48462d3e
2012-06-04 09:12:36 -07:00
Monty Taylor 32ba1385ef Properly install from zipball.
Change-Id: I505a42ec11b388e3ee5c818a1aadf0f70d5565c5
2012-05-25 14:38:33 -04:00
Monty Taylor a0f6ef9c6b Fix the zipball change.
-f downloads things from a url. -e does them for vcs.

Change-Id: I14c5edd0ca163112baea08c81771f35f13930264
2012-05-24 09:46:38 -04:00
Monty Taylor ee7ea16481 Replace git url with github zipball.
distribute does not grok git urls, but auto-generated zipfiles are a
short-term workaround until we've got pypi uploads sorted.

Fixes bug 1003328

Change-Id: Iaded7245cea7a30c2f421c7b48ece9823aaf152f
2012-05-23 11:38:06 -04:00
Chuck Short 93c1755acd Added condition requirement to simplejson
simplejson is a part of python 2.6.

Change-Id: I3a1d776918c8707f21532fe3b043a039b72d6704
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-04-30 11:21:12 -04:00
James E. Blair ae58edcba7 Use tox for running tests locally.
See: http://wiki.openstack.org/ProjectTestingInterface

Tox can manage virtualenvs, and is currently doing so for running
tests in Jenkins.  It's just as, or more, useful for running tests
locally, so this starts the migration from the run_tests system to
tox.  The goal is to reduce duplicate testing infrastructure, and
get what's running locally on developer workstations as close to
what is run by Jenkins as possible.

This patch removes run_tests.py, and the scripts that manage .venv.
It makes run_tests.sh call tox to facilitate the transition for
developers used to typing "run_tests.sh".

Developers will need tox installed on their workstations.  It can
be installed from PyPI with "pip install tox".  run_tests.sh outputs
those instructions if tox is not present.

New facilities are available using tox directly, including:

  tox -e py26  # run tests under python 2.6
  tox -e py27  # run tests under python 2.7
  tox -e pep8  # run pep8 tests
  tox          # run all of the above
  tox -e venv foo  # run the command "foo" inside a virtualenv

The configuration of the openstack nose plugin is removed from
setup.cfg and added to the nosetests command line arguments in tox.
It is used when running tox from the command line, so the enhanced,
colorized output is visible to developers running the test suite
locally.  However, when Jenkins runs tox, the xunit plugin will be
used instead, providing output natively understood by jenkins which
is much more readable in that context.

Change-Id: Id678c2fb8a5a7d79c680d3d1f2f12141f73dc8a6
2012-04-27 23:45:38 +00:00
Monty Taylor 292085445b Add Sphinx to test-requires.
Change-Id: I8dec9a2e80e0ad8ceb6805a731a26585d9af92b3
2012-04-05 19:05:52 -07:00
Brian Waldon fc02efd1c7 Correct keystoneclient egg name in pip-requires 2012-04-03 10:01:49 -07:00
Brian Waldon 883d22d032 Further cleanup
* README is now relevant
* Auth now properly skipped with os-image-url and os-auth-token provided
2012-03-26 23:30:44 -07:00
Brian Waldon c530de6389 Basic get/list operations work
* 'glance image-list' and 'glance image-show' work
* Set up tests, pep8, venv
2012-03-26 22:48:48 -07:00
Monty Taylor 57e352a070 All the latest OpenStack hotness. 2012-02-29 14:14:14 -08:00