Commit graph

101 commits

Author SHA1 Message Date
Bhuvan Arumugam
f60c1cf4d4 Auto generate AUTHORS for python-keystoneclient.
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.

* .gitignore
  Add AUTHORS file.

* keystoneclient/openstack/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.
  Generate AUTHORS file before creating the package.

* openstack-common.conf
  Add config file to copy libraries from openstack-common project,
  using update.py script.

* keystoneclient/openstack/__init__.py
* keystoneclient/openstack/common/__init__.py
  Add new placeholders.

Change-Id: I1a17ee8f1e19e8ad522f0d2e37c04fffba5e16cb
2012-05-04 21:46:32 -07:00
Jenkins
e9ba370434 Merge "Split user-role-list from user-list" 2012-05-03 18:15:46 +00:00
Jenkins
2ff5ad0046 Merge "fix parameter name error in exapmle" 2012-04-30 15:27:57 +00:00
Josh Kearney
5628eeaf76 Removed unused imports and variables.
Also fixes AUTHORS file. Previous version was copied directly from python-novaclient.

Change-Id: I33654b6fe7197efbff300ebaf4892a8b53d85c54
2012-04-05 17:27:12 -05:00
Thierry Carrez
7b8532908b Include last missing files in tarball
Fix MANIFEST.in to include missing files in published tarballs.
Fixes bug 963478.

Change-Id: Ide576c8e0dd91ba6788d8fc9596a97ab0533fc12
2012-04-03 11:56:55 +02:00
Peng Yong
49582d0b38 fix parameter name error in exapmle
Change-Id: I7e20a82b1cb6a5608043625d4e869a67949af8e7
2012-04-01 13:49:57 +08:00
Dolph Mathews
e957119771 Drop support for OS --tenant_id (bug 960977)
Change-Id: I36849c53e1c63609fc9df7fcd1c245bb3d3a6872
2012-03-29 14:54:24 -07:00
Thierry Carrez
5194621738 Open Folsom
Bump version to 2012.2 to formally open Folsom development.

Change-Id: I4f4ea23c840f3fd5dce1cfa5ca0cc6dc2ced73b1
2012-03-23 21:43:39 +01:00
Jenkins
bf13df13dd Merge "Useful messages for missing auth data (bug 946297)" 2012-03-21 21:04:58 +00:00
Dolph Mathews
fd94b49197 Useful messages for missing auth data (bug 946297)
Change-Id: I5afe543ff883358fddfb4c8b546de1d68415e0e3
2012-03-21 10:41:08 -05:00
Monty Taylor
6d67b4a6a2 Updated tox.ini to work properly with Jenkins.
As part of doing that, fixed a unittest to work with python2.6.
Change-Id: I575a8534bf008077c1a24a25336f1d711f742297
2012-03-21 10:48:51 -04:00
Jenkins
77742d7b13 Merge "Backslash continuations (python-keystoneclient)" 2012-03-21 00:04:37 +00:00
Dolph Mathews
b8e9d090b9 Implement user-get based on tenant-get (bug 940272)
Change-Id: Id679f1df068247db8f6a1f13515870488011b544
2012-03-20 12:53:13 -05:00
Zhongyue Luo
c8350b7a67 Backslash continuations (python-keystoneclient)
Fixes bug #940023

Backslash continuations removal for python-keystoneclient

Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
2012-03-17 01:08:58 +08:00
Jenkins
c10ba52316 Merge "CLI shows help without args (bug 936398)" 2012-03-16 02:28:20 +00:00
Dolph Mathews
5c269ba6b3 Split user-role-list from user-list
Change-Id: Id39e178c0ec068afbf5cae2d5bba3cf2238d608e
2012-03-14 20:22:31 -05:00
Dean Troyer
9dc4e6a8e1 Change CLIAuth arg names
Change the argument names used for common Keystone authentication per the
updated http://wiki.openstack.org/CLIAuth:

--auth_url -> --os_auth_url
--password -> --os_password
--username -> --os_username
--tenant_id -> os_tenant_id
--tenant_name -> os_tenant_name
--region -> os_region_name

All old args are depricated but available for backward compatibility.

Fixes bug 954532

Change-Id: I26f8e0cf491549f5836c4079ff86e4823c0ef9a7
2012-03-14 12:51:17 -05:00
Dolph Mathews
5c223fb641 enabled treated as string (bug 953678)
Change-Id: I897797b3fb264647c486e6c10eab8edd00eadbcc
2012-03-14 10:28:09 -05:00
Dolph Mathews
decf46c1cb CLI shows help without args (bug 936398)
Change-Id: If0adfc5283f725c797ee6043fbfc59a775d9b462
2012-03-13 23:00:22 -05:00
Jenkins
8c824bd639 Merge "fix bug 950685,make update user password works" 2012-03-10 19:07:03 +00:00
Jenkins
04c4a15fc0 Merge "List roles for user on CLI (bug 932282)" 2012-03-10 11:07:20 +00:00
Yaguang Tang
a7be3495f1 fix bug 950685,make update user password works
Change-Id: If9c33fefdf7439cd5a6c301094b630bd541e821a
2012-03-10 16:05:58 +08:00
Dean Troyer
4a975ce993 Add endpoint commands help text
Makes the new endpoint-* commands help text consistient with the
other keystone commands.  Also removes 'nargs' from options that
require arguments.

Change-Id: Idc638883b3675cf1d30163064e58ffe761c6f08b
2012-03-09 13:59:31 -06:00
Dolph Mathews
93d07cc793 List roles for user on CLI (bug 932282)
Change-Id: I947d2ff74b0a131e4ecc7d696877aea4d994fe71
2012-03-09 13:23:38 -06:00
termie
6ce6ebbc96 prevent keyerrors when accessing optional keys
You used to have these in the token, why were they removed and then
subsequently grabbed at? The change that added these doesn't work against
keystone, btw, so I'm surprised it got in, these dict keys are not
required to be in the return from service_catalog.get_token() and
adding them as properties is only going to make matters worse as people
rarely think about having None attributes.

Change-Id: I695bbd6730d25d8db3a25cea81e3ffb0ef289bbb
2012-03-07 11:58:55 -08:00
Jenkins
5c5918baac Merge "Make ec2-credentials-* commands work properly for non-admin user" 2012-03-07 18:16:17 +00:00
Dolph Mathews
9c07999dd5 Removed ?fresh=nonsense (bug 936405)
Change-Id: I69f7411967ef23348854c206efc79a3cf7d3755d
2012-03-07 10:32:32 -06:00
Dean Troyer
bdc0abbd81 Make ec2-credentials-* commands work properly for non-admin user
* Add user id to token-get output
* Save authenticated user and tenant IDs in client in Client._extract_service_catalog()
* Handle default user and tenant IDs in ec2-credentials-* commands

Fixed bug 947011

Change-Id: I97750f666ba03f32f0bb1be0c2df5ad8a321b433
2012-03-06 23:57:06 -06:00
Hengqing Hu
96a106e529 Remove trailing whitespaces in regular file
Change-Id: I49c7f59fd1c695ccfccbd597a15e01d2d140eb20
2012-03-03 12:45:09 +08:00
Jenkins
ca767856b6 Merge "Endpoints: Add create, delete, list support" 2012-02-28 07:07:59 +00:00
Adam Gandelman
7292a7197c Endpoints: Add create, delete, list support
This adds the ability for admins to list, create and delete
endpoints in the service catalog.

New endpoints can be created and associated with an existing
service, similar to the original Keystone.

The current, file-backed templated catalog driver does not support these
actions.  This requires that the SQL catalog backend is merged:

https://review.openstack.org/#change,4464

Update: As per discussion on above review, Remove use of OS-KSADM key,
        update tests accordingly.

Change-Id: Ie6f219fe989327bd61e293ce100b70dbf7f6de52
2012-02-27 18:52:15 -08:00
Dean Troyer
4ec85e8275 Clean up EC2 CRUD
Fixes bug 932427

* adds ec2-credentials-get
* cleans up ec2-credentials-list output
* display status of 3c2-credentials-delete
* add basic shell tests

Rebased 27Feb2012

Change-Id: Ic06ba9e2e49bad872f9091e1830d5296b0d411aa
2012-02-27 15:53:09 -06:00
Dean Troyer
265d4e9ffb Fix --tenant_id corner case with ec2-create-creds command
And add some tests for that case

Rebased after CLI changes merged
Rebased again after more bit rot discovered

Change-Id: I95fa5ab19bff1d5e884b5c3675a123b134866e21
2012-02-24 17:32:30 -06:00
Jenkins
81116e4441 Merge "Help output tweaks, Vol I" 2012-02-24 23:10:15 +00:00
jakedahn
2a1c94a753 Improve usability of CLI.
* Fixes bug #936422
  * Fixes bug #932223
  * Depends on bcwaldon's review: https://review.openstack.org/#change,4305
  * This review proposes making changes outlined in this spreadsheet:
    https://docs.google.com/spreadsheet/ccc?key=0Ak6TA47h_6fwdGZwRE5WWEJBdEhnckpMTG5RcWFjY3c#gid=0
    This cleans up the CLI, normalizing commands and arguments, correcting
    optional and required arguments and flags.
  * included https://review.openstack.org/4270 here per Brian's request

  Note that some commands have changed names to conform to noun-verb form:
  user-update-password  ->  user-password-update
  add-user-role  ->  user-role-add
  remove-user-role  ->  user-role-remove
  ec2-create-credentials  ->  ec2-credentials-create
  ec2-list-credentials  ->  ec2-credentials-list
  ec2-delete-credentials  ->  ec2-credentials-delete
  token  ->  token-get

Change-Id: I8128fa105a1b8002199211f9e475b1a7a6229b8c
2012-02-23 16:28:38 -06:00
Jenkins
1f75cab683 Merge "Use unittest2 instead of unittest." 2012-02-23 19:49:22 +00:00
Jenkins
709b8812fb Merge "Fix inconsistient method names and add tests" 2012-02-23 19:43:20 +00:00
Dean Troyer
a395835ebc Help output tweaks, Vol I
Fixes bug 936399 and bug 936424

* Refer to 'Identiy API' rather than 'Keystone API'
* 'keystone help' and 'keystone --help' now produce the same output,
  the list of sub-commands
* updates README

Change-Id: I179149807a0aa66947e4ac17ad2839a653a55888
2012-02-22 15:35:15 -06:00
Brian Waldon
c4093ec56e Move --version to --identity_api_version
* Default to OS_IDENTITY_API_VERSION before KEYSTONE_VERSION
* Copy in 'env' function from python-novaclient hat supports multiple env var names
* Fixes bug 936162

Change-Id: I3b4013408465ea45788517cb31afb7fc652e6e95
2012-02-21 15:39:54 -08:00
Dean Troyer
f4297ce10d Remove internal '-' from flag names
Fixes bug 936400
* global --auth-url becomes --auth_url
* user-create --default-tenant becomes --tenant_id

Change-Id: I483bb369556f4da2a6de61a39d00a7adbe1cf12e
2012-02-20 16:49:21 -06:00
Dean Troyer
47c057afd5 Fix inconsistient method names and add tests
Fixes bug 937104

https://review.openstack.org/3527 renamed methods in RoleManager:
get_user_role_refs() -> roles_for_user()
add_user_to_tenant() -> add_user_role()
remove_user_from_tenant() -> remove_user_role()

* Calls to old method names in Tenant and TenantManager are fixed.
* Add tests for all renamed and affected methods.

Change-Id: Idf569d7dd737c5ccc38b4ea8212d5336998ae0f1
2012-02-20 11:36:48 -06:00
Ghe Rivero
5d5160ce50 Added condition requirement to argparse
Change-Id: Ibffdcbd3ed7e2c2e982023455d60d10a6001ff23
2012-02-20 07:33:34 +01:00
Dean Troyer
bbd2561507 Add tenant commands to cli
* Adds tenant-list, tenant-get and tenant-update to keystone command
* Removes tenant-enable and tenant-disable
* Fixes more overlap in cli args, clean up command args, particularly
  removing nargs from arguments that are not optional.
* Fixes bug 932235

Change-Id: I1aafec1b2a3943e0f6c86f0228ab29f181a7ffce
2012-02-17 15:11:47 -06:00
Brian Waldon
0cc939c904 Display token and service catalog for user
* Adds commands 'token', 'catalog' and 'endpoint-get' to keystone CLI
* Fixes bug 930421

Change-Id: I9eceea3bf98a5c87b122fa663c96f7119ef8d3cc
2012-02-16 13:23:23 -08:00
Gabriel Hurley
0414cf1ef2 Restores proper PUT method for user update now that KSL supports it.
Change-Id: Ifd68a9878489efa29442f1035d0393ada9c6d3ff
2012-02-16 11:56:59 -08:00
Jenkins
ed5ca4e841 Merge "Fixes user update methods." 2012-02-16 18:06:22 +00:00
Alan Pevec
e7c638b4f1 Add license file to the tarball
Change-Id: Ic291ba96defe44368c0e78c877c2258fb0f64fbc
2012-02-16 18:25:23 +01:00
Tihomir Trifonov
a1f927e899 Fixes user update methods.
1. Fixes the url for user update methods to reflect extension status,
   e.g. 'users/{user_id}/tenant' to 'users/{user_id}/OS-KSADM/tenant',
   as per Keystone API.

2. Fixes the update_user method, as it expects a POST instead of PUT.

Change-Id: I045ca7650b2ef8969af695900da1b4f62d4da6bd
2012-02-15 15:56:03 -08:00
Ken Thomas
92b264bbbc Use unittest2 instead of unittest.
This allows the test to run on RHEL 6.2
and python 2.6.

Fixed bug 933076

Change-Id: Idb026114ac1813266d77a70d13b0c3b9467f5199
2012-02-15 13:34:25 -08:00
Vishvananda Ishaya
9a6a086baf Fix conflicts with shell args for subcommands
Change-Id: I48517f6b8e25268a00532d9e6fd8fed54f5317cd
2012-02-10 12:45:17 -08:00