Commit Graph

41 Commits

Author SHA1 Message Date
Jenkins 995372fff7 Merge "Refactor HTTPClient to use two request methods" 2012-05-22 23:55:35 +00:00
Brian Waldon 3943699427 Refactor HTTPClient to use two request methods
Rather than depend on magic, I would prefer that we explicitly call
two different request methods: json_request and raw_request. The
former will encode/decode request bodies to and from JSON, while
the latter will not.

Change-Id: I6a429a5975993f71df85df55f11c5d51c050c289
2012-05-22 08:45:00 -07:00
Thierry Carrez 78cd3d9e16 Add missing files to MANIFEST.in
Some files were missing from tarballs generated using
'python setup.py sdist', this adds them to MANIFEST.in.
Fixes bug 1001217.

Change-Id: I0c99deba3f24989b34cff27b5d3cd1c999cd08fa
2012-05-22 11:48:58 +02:00
Brian Waldon 623a0898f8 Add importutils from openstack-common
As a side-effect, openstack.common.setup is getting updated

Change-Id: I9f8696ec5c82ef32872e1a974102dcd179eb70f9
2012-05-20 13:08:20 -07:00
Michael Basnight 399d0bbdef Adding service type as configurable shell option
fixes lp#997698

Change-Id: I5179a2ed5f32a8e7253806f6f9b02de3c06913ed
2012-05-10 14:15:54 -05:00
Jenkins b31c272ae1 Merge "Remove printt" 2012-05-07 23:36:46 +00:00
Dean Troyer 332858d56b Remove printt
prettyprint 0.6 removed printt at the last minute, replace with get_string

Fixes bug 995826

Change-Id: I9a25efc3d723ab0208ea88fc6431a95cc9176acb
2012-05-07 10:39:45 -05: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
Gabriel Hurley 3344eac545 Adds filter support to images.list().
This existed in glance.client, and should exist in the new
client as well! :-)

Change-Id: Iea8c55fcb0f0d30d6dc138072354c3f20d1288cf
2012-04-27 12:25:48 -07:00
Brian Waldon 1f106a3bd9 Add '.tox' to .gitignore
Change-Id: Ie29752e7e4194fca4cbe82c161d7cac9ebd0848c
2012-04-25 20:12:07 -07:00
Jenkins a8ae91b5df Merge "Add fields to image-list" 2012-04-25 03:49:52 +00:00
Jenkins a88bfee9c5 Merge "Strip version from service catalog endpoint" 2012-04-25 03:41:40 +00:00
Dean Troyer 877f144013 Add fields to image-list
Fields were missing from image-list that were present in the old index:
  'Disk Format', 'Container Format', 'Size'

Change-Id: Ia86caec1938560c56292c0f3028ee48e774d0057
2012-04-24 20:33:30 -07:00
Dean Troyer e2936766f7 Strip version from service catalog endpoint
This client includes the API version in the URL directly where the
former practice was to include it in the service catalog endpoint.
This change removes the version from the last component of the
SC endpoint (if present) for transition purposes.

Note that this does not generalize to the other APIs
where the version is not the last component of the SC endpoint.

Change-Id: Ie04c38d80b17a171482e195aa1c633b6b6974042
2012-04-23 17:00:43 -05:00
Dean Troyer 87e0948349 Fix image-create using pipelines
The return value of ImageManager._get_file_size() is passed on to
the glance server in the create api call.  Returning None causes
the server to reject the request as malformed.

Add dtroyer to AUTHORS

Change-Id: I02c90e2db5fbd1e49d1516550c806f26dae83fb9
2012-04-23 14:50:35 -05:00
Brian Waldon d3185dd3b4 Allow tenant name to be used in authentication
Change-Id: If0bdf67143d64172db0b665fc07c165fabc9486a
2012-04-10 09:54:49 -07:00
Jenkins 73ea207a39 Merge "Updated depend processing to norms." 2012-04-09 21:57:22 +00:00
Monty Taylor c80e2640c6 Make tox cover output coverage.xml.
Change-Id: I8719be2f627c9f2bf33e7752cdd7348c14943f7a
2012-04-05 19:06:57 -07:00
Monty Taylor 292085445b Add Sphinx to test-requires.
Change-Id: I8dec9a2e80e0ad8ceb6805a731a26585d9af92b3
2012-04-05 19:05:52 -07:00
Jenkins 66e9676859 Merge "Add AUTHORS test case" 2012-04-05 06:37:44 +00:00
Monty Taylor cc479717cf Updated depend processing to norms.
Change-Id: I843c30acaf813614def68b936eb5a982e5a9b242
2012-04-03 21:54:43 -06:00
Brian Waldon 9829db1c07 Fixing pep8 errors
Change-Id: I7c0ffb5626ee030fca7daf8ae10cb17e221e2133
2012-04-03 20:48:40 -07:00
Brian Waldon 1458d0ea85 Add AUTHORS test case
Change-Id: Ib81aee90fef3b2c101bb6b737e677339638b3cad
2012-04-03 20:18:53 -07:00
Monty Taylor 7103638782 Added gitreview file. 2012-04-03 20:50:44 -06:00
Brian Waldon 538a9e30a2 Adding id for image members 2012-04-03 19:26:38 -07:00
Brian Waldon c72e4dd2b5 image membership management works 2012-04-03 17:39:32 -07:00
Brian Waldon b87b1b5086 Adding support for passing image data through cli 2012-04-03 17:01:48 -07:00
Brian Waldon d191262413 Image update works 2012-04-03 16:00:49 -07:00
Brian Waldon d5bb951e5f More complete image creation 2012-04-03 14:43:04 -07:00
Brian Waldon fc02efd1c7 Correct keystoneclient egg name in pip-requires 2012-04-03 10:01:49 -07:00
Brian Waldon 59e586ed94 Adding image-create action 2012-04-03 10:01:08 -07:00
Brian Waldon d75a029a01 Adding shared-images support 2012-04-02 16:26:19 -07:00
Brian Waldon ca8434f2c3 Image members bones 2012-04-02 15:44:43 -07:00
Brian Waldon 664f370677 Basic testing 2012-04-02 14:08:03 -07:00
Brian Waldon 440ffec575 Update version to 2012.2 2012-03-26 23:44:42 -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
jaypipes b5847df3e2 Merge pull request #1 from emonty/master
Updated support files to latest
2012-02-29 14:17:18 -08:00
Monty Taylor 57e352a070 All the latest OpenStack hotness. 2012-02-29 14:14:14 -08:00
Jay Pipes 972677fc3d Initial checkin for new CLI and client package
Copied mostly from python-keystoneclient with
some Glance-specific stuff. README.rst shows what
WILL be the way to do things, not what is currently coded :)
2012-02-29 16:42:26 -05:00