112 Commits

Author SHA1 Message Date
Josh Kearney
17a87b9c02 Clean up test_shell so that the tests are captured though the test framework.
Also makes a small modification to gitignore.

Change-Id: Iefbfbcfd35270b06ed65edb34708fa9b4d5bf563
2013-01-30 14:59:29 -06:00
Jenkins
26fcc303b2 Merge "Remove old/unsupported options from run_tests help message." 2013-01-30 17:05:42 +00:00
Jenkins
6449851a96 Merge "Use install_venv_common.py from oslo." 2013-01-30 15:43:59 +00:00
Jenkins
5a9fbc5fca Merge "Updated README to reflect latest changes." 2013-01-30 15:43:58 +00:00
Josh Kearney
282649ca40 Remove old/unsupported options from run_tests help message.
Change-Id: Ie0d796ecbd3c98b496a225c2a2c128db94a1831e
2013-01-29 17:29:57 -06:00
Josh Kearney
67bba28ed1 Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I3426a7f51b0018e074cc6f4b1d70b38e52464a38
2013-01-29 16:12:21 -06:00
Josh Kearney
37b75a10c2 Updated README to reflect latest changes.
Change-Id: I996d5c0ec6e480fcbdc546bad238eee2e20504d6
2013-01-29 15:12:39 -06:00
Josh Kearney
64cd45b03d Ensure that image and identity clients are constructed properly.
Also removed tests that don't test anything.

Change-Id: I0cb420248c8a1374110c014063fe029686e90216
2013-01-29 12:11:52 -06:00
Josh Kearney
4297e5781b First pass at adding compute unit tests.
Change-Id: Icf3340d457f75eec89bb0e5c9b4b953c3b81020f
2013-01-28 17:58:59 -06:00
Jenkins
1bb59c53ee Merge "Use the cliff framework's ShowOne as intended for show image." 2013-01-28 23:50:10 +00:00
Jenkins
910ad96441 Merge "Sync latest openstack-common updates." 2013-01-28 23:49:44 +00:00
Jenkins
d8225be7ce Merge "Standardize on a copyright header and ensure all files have them." 2013-01-28 23:49:13 +00:00
Steve Martinelli
b253534348 v3 identity - group and project api
updated with latest comments
modified entry points in setup.py
added group.py (v3)
added project.py (v3)
fixed indentation
updated to include new headers

Change-Id: Ice68b6c5bacb68d2e95321d903043056a9b8e810
2013-01-28 15:28:32 -06:00
Ilya Persky
72adfc61f2 Fix test runner run_tests.sh is broken
run_tests.sh contains incorrect variable assignment at line 80
which makes script to fail when trying to run tests.

Fixes: bug #1105000

Change-Id: Ib29c50f28d8b7e09935cd4136e709e0e0141ad2a
2013-01-25 13:55:31 +02:00
Josh Kearney
4c91e7c56e Use the cliff framework's ShowOne as intended for show image.
Also reformat code to follow newer PEP8 version. Full cleanup
and PEP8 version bump coming in later patch.

Change-Id: Ida3dd9a89660b9c4a91449846dd2d6e223ef187a
2013-01-24 21:30:22 -06:00
Josh Kearney
def0f8ab77 Sync latest openstack-common updates.
Change-Id: I09adc9b5c01aa97ffba58dff8a696172e8654e3e
2013-01-24 14:44:54 -06:00
Josh Kearney
0a4912f9fb Standardize on a copyright header and ensure all files have them.
Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
2013-01-24 12:02:23 -06:00
Jenkins
8d64cc2caa Merge "Remove incorrect 'raise'." 2013-01-23 21:15:13 +00:00
Josh Kearney
df34db8afb Remove incorrect 'raise'.
Fixes bug 1096102.

Change-Id: Ibcdccd949566f47bb516c7562149d6b0100fce18
2013-01-22 20:22:40 -06:00
Josh Kearney
63c8bb5306 Migrate from nose to testr.
Run tests with testr for parallel execution.

Part of blueprint grizzly-testtools.

Change-Id: I560592186f2f440049a451a32e58067262ab62d0
2013-01-22 12:16:09 -06:00
Josh Kearney
c1ea298904 Clean up test environment and remove unused imports.
First round of adding more complete unit test coverage.

Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
2013-01-22 11:44:18 -06:00
Josh Kearney
089f4cf716 Updated gitignore and manifest.
Change-Id: Ifcac1c9177865da9d248769961ec17fa8f44e67a
2013-01-21 15:36:55 -06:00
Jenkins
d336ce918e Merge "Adds Glance API v2 support." 2013-01-17 01:53:17 +00:00
Josh Kearney
eb1ae2e9f2 Adds Glance API v2 support.
Change-Id: Ib0325e62a7e50aa94e852a73f9a2cb95daa8d5f6
2013-01-16 11:29:34 -06:00
Jenkins
6037133f44 Merge "Move from unittest2 to testtools" 2013-01-15 23:54:20 +00:00
Dean Troyer
fe3123b802 Move from unittest2 to testtools
Change-Id: I475a082af0660e0ee0e86ca4cd1bf0e2d711e3ed
2013-01-15 15:59:59 -06:00
Jenkins
c6755d5c2a Merge "bug 1091029" 2012-12-27 17:39:52 +00:00
Henry Nash
e7585624ac Increment minimum required keystoneclient version number
The movement of auth_token from keystone to keystoneclient is part
of the updated 0.2 version of keystoneclient.  The server still
maintains an import back from the client for backward compatibility.
However, in order to support this, installations must upgrade to
the latest 0.2 version of the client.

Change-Id: I1ed1ebebbd56b2ed9c035c9e7d83783c8b2ae5fc
2012-12-27 11:33:27 -06:00
Jenkins
541895994f Merge "Remove upper bounds on openstack dependencies." 2012-12-27 17:24:16 +00:00
Ben Andrews
0fe3efaacb bug 1091029
sets version that pip can use for pyparser to one that is for python 2.X. 2.0.0 is only for python 3

Change-Id: Ief16981b5e2c7d8716fdf77e15998cc9ffae9779
Fixes: bug #1091029
2012-12-16 20:48:36 -05:00
James E. Blair
2fad9aa0f6 Remove upper bounds on openstack dependencies.
Change-Id: Ib2980bc219aba66cfdbc67b7fc4eafbf6501ef23
2012-11-16 16:38:03 -08:00
Alessandro Pilotti
67e413a224 Fixes setup compatibility issue on Windows
Fixes Bug #1052161

"python setup.py build" fails on Windows due to a hardcoded shell path:
/bin/sh

setup.py updated using openstack-common/update.py

Change-Id: I33d38e0f96b6d124248c4a31959952d61cf1eb16
2012-11-05 18:34:15 +02:00
Doug Hellmann
fd85c7e1f4 Add OpenStack trove classifier for PyPI
Add trove classifier to have the client listed among the
other OpenStack-related projets on PyPI.

Change-Id: I34c47bde5885a3f436c100cda5202d6ad8356131
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-22 18:48:39 -04:00
Jenkins
cd140091b5 Merge "Update compute client bits" 2012-09-18 17:03:37 +00:00
Jenkins
2c512acede Merge "Add cliff prereqs" 2012-09-08 21:55:12 +00:00
Dean Troyer
c49b049af8 Add cliff prereqs
The real issue is cmd2 not pulling in pyparsing properly on a fresh system.

Change-Id: I9bae29f9a664431d0145ebc5a0cc4caec638d739
2012-09-06 11:26:11 -05:00
Dean Troyer
90a1c65f3a Update compute client bits
* add server create, delete, pause, reboot, rebuild
  resume, suspend, unpause commands

Change-Id: I728ec199e4562bd621c3a73106c90d8b790b459a
2012-09-05 16:06:49 -05:00
lrqrun
2372142eaa Fix PEP8 issues.
Fix some pep8 issues in doc/source/conf.py and tests/test_shell.py  make the code looks pretty.

Change-Id: I927f03aff4190f1ac30eb56e7c545de555978c31
2012-08-29 14:17:08 +08:00
Bhuvan Arumugam
8010e773ac Document the use of keyring.
* README.rst
  Document the option --os-use-keyring, and environment variable
  OS_USE_KEYRING, to enable keyring.

Change-Id: I54ceb2d2692fecca328da16f6ed14db8d09a6eb7
2012-08-22 15:57:59 -07:00
Jenkins
a5aa06c92f Merge "Keyring support for openstackclient." 2012-08-22 20:49:54 +00:00
Clark Boylan
5bf17126b9 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: I9f7bdf848aeb0fee727da9cd3b651b3a3ce53182
2012-08-21 14:37:29 -07:00
Bhuvan Arumugam
f0cefcc77d Keyring support for openstackclient.
Bug: 1030440

If password is defined in keyring, use it; otherwise, prompt for the
password. Keying is configured using command line switch,
--os-use-keyring or env(OS_USE_KEYRING).

* openstackclient/common/openstackkeyring.py
  The abstract class for keyring, specifically for openstack. The
  class is used to store encrypted password in keyring, without
  prompting for keyring password. The encrypted password is
  stored in ~/.openstack-keyring.cfg file.

* openstack-common.py
  Update openstackkeyring library from openstack.common.

* openstackclient/shell.py
  OpenStackClient.build_option_parser(): New boolean argument,
   --os-use-keyring, default to env(OS_USE_KEYRING).
  OpenStackClient.authenticate_user(): Get password from keyring,
  if it is defined; otherwise, prompt for the password. If user
  enter a password and keyring is enabled, store it in keyring.
  OpenStackClient.init_keyring_backend(): New method to define
  openstack backend for keyring.
  OpenStackClient.get_password_from_keyring(): New method to
  get password from keyring.
  OpenStackClient.set_password_in_keyring(): New method go set
  password in keyring.

* toos/pip-requires
  Define keyring and pycrypto as one of dependent.

Change-Id: I36d3a63054658c0ef0553d68b38fefbc236930ef
2012-08-15 12:13:36 -07:00
Dolph Mathews
540c4883d6 Secure password prompt (docs)
Change-Id: I879a8aba13318f1dd660a487cbd1fd20c7ae659b
2012-07-13 14:54:27 -05:00
Jenkins
6d911d2d41 Merge "Use PyPI for client libs." 2012-07-05 17:16:38 +00:00
Jenkins
2223308983 Merge "If no password in env or command line, try prompting." 2012-07-05 16:56:35 +00:00
Monty Taylor
b04d7a988c Use PyPI for client libs.
Change-Id: I1a77f2a5973053de0e45b815359ff2fa42318682
2012-07-02 18:27:24 -04:00
Jenkins
fd1b118565 Merge "Fixed a typo in the rst docs." 2012-07-02 13:44:28 +00:00
Ken Thomas
39da32b3a5 If no password in env or command line, try prompting.
Implements blueprint password-prompt

This logic was recently added to keystone as a short term fix. The long
term fix is to have that same logic here. Basically, if no password is
present in the env or command line and there's a tty available for us
to prompt, then attempt to use getpass.

Change-Id: Ia0eec800b96c8f6ca1c2540e21e0e03c3880c713
2012-06-29 22:29:46 +00:00
Monty Taylor
89e21b6b30 Add read_versioninfo method.
Change-Id: Iba12b260a30cc1311967a833e26eaeb9bf3afb47
2012-06-26 21:06:04 -05:00
Lorin Hochstein
1a5aabf6fc Fixed a typo in the rst docs.
Change-Id: Ie3484f8fe0a63ff5a6815f3ec440adf7dc5d9482
2012-06-26 16:57:33 -04:00