345 Commits

Author SHA1 Message Date
Terry Howe
033f27fe4d Add ability to prompt for passwords for user create and set
* Add get_password method to the utilities
* Add --password-prompt option
* Call the get_password method if a prompt is requested
* Various tests

Change-Id: I1786ad531e2a2fbcc21b8bc86aac0ccd7985995a
Closes-Bug: 1100116
2014-02-21 14:42:22 -07:00
Jenkins
2f5e8232aa Merge "Python 3: fix a syntax error" 2014-02-11 21:36:46 +00:00
Jenkins
e068cd0d71 Merge "FakeResponse: use a default status code" 2014-02-11 21:35:55 +00:00
Jenkins
c8354b8d83 Merge "Fix misspellings in python openstackclient" 2014-02-11 18:44:30 +00:00
Cyril Roelandt
9dc3eb5b18 FakeResponse: use a default status code
When running some tests from test_restapi.py, the following error happens:

    TypeError: unorderable types: NoneType() < int()

In Python 2, comparing NoneType and integers is possible:

    >>> None < 2
    True

But in Python 3, it's not allowed. Fix this by using a default status code.

Change-Id: Ic0fad5c68f3bf2dd8a2b98423549903f982192c9
2014-02-11 17:31:37 +01:00
Jenkins
9aa207eb9d Merge "Use six.iteritems() rather than dict.iteritems()" 2014-02-11 15:41:40 +00:00
Cyril Roelandt
eaa4c3e1a6 Python 3: fix a syntax error
"raise AttributeError, name" is invalid in Python 3.

Change-Id: Id61bd3747f49c2bd810cbfeae56506e7ed9d2bd0
2014-02-11 15:44:54 +01:00
Cyril Roelandt
3a5abf743c Use six.iteritems() rather than dict.iteritems()
This is compatible with both Python 2 and 3.

Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
2014-02-11 02:53:24 +01:00
Jeremy Stanley
380d78c856 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: I89ff5c22be053f09defb04b3ec589d74bffcae9d
Closes-Bug: #1277495
2014-02-10 03:10:52 +00:00
Shane Wang
8aa0b07fbc Fix misspellings in python openstackclient
Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: Ic0d3efa26eb9a05ce16a8319c142f5bd1ce23821
Closes-Bug: #1257295
2014-02-07 13:26:48 +08:00
Jenkins
632363328b Merge "Add token create subcommand for identity v3 api" 2014-01-31 17:28:02 +00:00
Qiu Yu
a8d828f330 Add token create subcommand for identity v3 api
Implements token create subcommand which is an equivalent of keystone
token-get command. Original "wrap" parameter for keystone token-get is
not implemented yet due to cliff Bug #1269299

This is a part of: blueprint add-identity-token-support

Change-Id: I2255021c9d1f10f757686583b1ebe40b5f3a9ecb
2014-01-29 15:59:12 +08:00
OpenStack Jenkins
0aeb357fc2 Updated from global requirements
Change-Id: I98929876d5a21a990009398d9a8259c54d893e7e
2014-01-24 22:40:56 +00:00
Jenkins
0076f694ac Merge "Fix keyring issue where there were name space problems" 2014-01-23 17:38:15 +00:00
Jenkins
cb2fd0af83 Merge "Remove copyright from empty files" 2014-01-23 17:38:15 +00:00
Terry Howe
bc2395eb47 Fix keyring issue where there were name space problems
The import of keyring conflicted with a string named keyring

Change-Id: I7416ea1cf453a126dd03dba8bc2900cad35ed2da
Closes-bug: #1271987
2014-01-23 09:37:13 -07:00
Jenkins
9e9bbad120 Merge "Remove remaining print statements" 2014-01-23 04:09:53 +00:00
Dean Troyer
350718f3bb Remove remaining print statements
I think these are the last two stragglers, including debugging lines

Change-Id: Ic3dd98480211d0f7d3cc951bec5cd54f902a101f
2014-01-22 18:53:11 -06:00
Jenkins
ebfa6698a1 Merge "Add token create subcommand for identity v2 api" 2014-01-22 08:13:42 +00:00
Alexander Ignatov
ad4367839f Remove copyright from empty files
According to policy change in HACKING:
http://docs.openstack.org/developer/hacking/#openstack-licensing
empty files should no longer contain copyright notices.

Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93
Closes-Bug: #1262424
2014-01-20 17:28:13 +04:00
Qiu Yu
4848d3ca3a Add token create subcommand for identity v2 api
Implements token create subcommand which is an equivalent of keystone
token-get command. Original "wrap" parameter for keystone token-get is
not implemented yet due to cliff Bug #1269299

This is a part of: blueprint add-identity-token-support

Change-Id: I9e4de93306f2f5959717b5219621da03961524d8
2014-01-17 17:42:01 +08:00
Sascha Peilicke
81d33a524d Sync with global requirements
Change-Id: Ie47804617ab9a11a91efd96c7989f0207e47e120
2014-01-16 09:21:39 +01:00
Jenkins
a53ed797b7 Merge "Fix image set properties error" 2014-01-10 17:27:50 +00:00
Jenkins
b00bbaa062 Merge "Fix errant underscores" 2014-01-10 17:27:48 +00:00
Jenkins
6ad05112f4 Merge "Displaying curl commands for nova and cinder calls" 2014-01-10 17:07:12 +00:00
Dean Troyer
9e31f8ea14 Fix errant underscores
Change-Id: I71b8c8df14b85e3042220e3593a9732ee6cefe15
2014-01-09 16:54:40 -06:00
Jenkins
e821a6b97f Merge "Add support for specifying custom domains" 2014-01-08 16:40:34 +00:00
Paul Belanger
420b10ee6d Add support for specifying custom domains
Add the ability to pass user_domain_id / user_domain_name, domain_id
/ domain_name, and project_domain_id / project_domain_name to keystone.
These parameters are the first step needed to getting multi-domain
support working via the CLI.

Closes-Bug: #1198171
Change-Id: I81a8534913978ff1cce01ec02741ae477e8c5fa4
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Signed-off-by: Bo Tang <btang@cs.utsa.edu>
2014-01-07 16:50:20 -06:00
Dean Troyer
7b999d786c Fix image set properties error
Change-Id: Ia290935c8a040221caf1a46ca29a7bb2e5df1ce6
2014-01-06 09:42:40 -06:00
Florent Flament
a5e087e7a9 Displaying curl commands for nova and cinder calls
When using the -v option, displays curl equivalent commands and http
messages exchanged with the nova and cinder API servers. Displays the
same messages as those displayed with the --debug option of
python-novaclient and python-cinderclient.

Implements: blueprint curl-commands-in-debugging-messages for nova and
cinder related calls

Change-Id: Ibc8ef79d874334585b81d652b9c7df9e874fffa9
2014-01-02 11:08:53 +01:00
Terry Howe
202c3e375b Closes-Bug: #1262322 Make links clickable
Change-Id: I61302ff5274cdaa09801cb9b0dc9bfd353ac687f
2013-12-25 09:41:17 -07:00
Terry Howe
12f31eed2f Closes-Bug: #1262321
Remove the unimplemented post_process method call

Change-Id: Iaed526cc25a651008a66ad7f0050070ab2b4c595
2013-12-19 20:06:54 -07:00
Dean Troyer
de27c1b455 Release notes for 0.3.0 release
Change-Id: I6f025b745378613eb674e13dd503e57d049a3e50
2013-12-17 09:22:17 -06:00
Dean Troyer
4595ca1365 Remove mox3 requirement
mox3 is only used got py3 testing when converting tests from mox,
all OSC tests are new so we don't need it.

Change-Id: I2fae539e99143f91048c95d1e46cfbd7b0e9bdb0
2013-12-17 09:21:03 -06:00
OpenStack Jenkins
c645049c24 Updated from global requirements
Change-Id: I065a67d560efca0907da9fcaa8d5ce4712dfa2c1
2013-12-10 23:45:49 +00:00
Jenkins
facdc8704e Merge "Bring RESTApi closer to ithe imminent keystoneclient.Session" 2013-12-06 22:48:29 +00:00
Jenkins
cd870886fc Merge "Update docs for plugins and release notes" 2013-12-06 22:47:15 +00:00
Jenkins
b88a7b8ccc Merge "Add module list command" 2013-12-05 23:34:31 +00:00
Dean Troyer
4f1ebe8069 Update docs for plugins and release notes
* Fill out the existing command and man page
* Add a plugins page.
* Begin the release notes for 0.3.0

Change-Id: I4527fed28a10a9d79fc8f6c1d925a4bf0d0a7a36
2013-12-05 17:29:35 -06:00
Jenkins
e06e1a2cce Merge "Add missing requests and six requirements" 2013-12-05 17:22:34 +00:00
Sascha Peilicke
f227092a06 Add missing requests and six requirements
From global-requirements: requests>=1.1, six>=1.4.1

Change-Id: I536adc511931229a268ba81f81aef1aed59b33eb
2013-12-04 14:44:09 +01:00
Dean Troyer
a93cc3fae2 Add module list command
Lists versions of installed python modules

(Origianlly proposed as 'version list')

Change-Id: I76a51d3d6783f46ef2daa0a41626019a880a2a50
2013-12-03 17:53:55 -06:00
Dean Troyer
74a27056b3 Update OSC's CommandManager subclass
cliff.commandmanager.CommandManager gained an option, update
openstackclient.common.commandmanager.ComamndManager to match.

Also add CommandManager.get_command_groups() to return a list of the
currently loaded command groups.  I expect this to be useful in
upcoming client diagnostic commands for plugins/extensions.

If these turn out to be generally useful we'll propose them to
upstream cliff.

Change-Id: Ic15a7ca0ef975ca679e753be861be7c628b8e10c
2013-12-03 17:40:54 -06:00
Dean Troyer
f2dbe2e437 Bring RESTApi closer to ithe imminent keystoneclient.Session
Prepare to use the (soon to be) common Session from keystoneclient
* Rework RESTApi to eventually be a subclass of keystoneclient.Session

Change-Id: I68e610f8b19a3f6267a93f7bf3de54a228be68aa
2013-12-03 14:26:46 -06:00
Terry Howe
5dcc3b6164 Add return Closes-Bug: 1246356
Change-Id: I70999a91062b9c61e5f420b1ed33a45086b62fd4
2013-11-27 14:25:12 -07:00
Dean Troyer
935781fdf9 Restore Object API name 'object-store'
It's used in the service catalog, doh!

Change-Id: If8f6db49c84756fd8e58cc68910160da4cd99b5d
2013-11-25 14:46:57 -06:00
Dean Troyer
9062811d10 Expand support for command extensions
Allows client libraries to have complete access to the rest of the
OSC ClientManager.  In addition, extension libraries can define
global options (for API version options/env vars) and define
versioned API entry points similar to the in-repo commands.

The changes to ClientManager exposed some issues in the existing
object api tests that needed to be cleaned up.

Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95
2013-11-21 01:27:10 -06:00
Jenkins
d45187a0c1 Merge "Add server image create command" 2013-11-20 06:37:25 +00:00
Jenkins
b70b1d04e4 Merge "Complete basic test infrastructure" 2013-11-20 06:37:24 +00:00
Jenkins
56fbf65941 Merge "change execute to run" 2013-11-19 17:24:30 +00:00