377 Commits

Author SHA1 Message Date
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
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
Josh Kearney
df34db8afb Remove incorrect 'raise'.
Fixes bug 1096102.

Change-Id: Ibcdccd949566f47bb516c7562149d6b0100fce18
2013-01-22 20:22:40 -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
Dean Troyer
697a5ac6cb Refactor cliff.Command.run()
* All commands now perform their action in take_action().  Those producing
  output are derived from DisplayCommandBase.

Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
2012-06-20 10:03:01 -05:00
Clark Boylan
6a8302b532 Fix pep8 issues.
Fix several pep8 issues and pin the pep8 test to pep8 version 1.1.
This should prevent future changes from being unmergable by the pep8
gate after a pep8 upgrade.

Change-Id: I4678a9179579fb5c7afe795fb43a8a89a99ad717
2012-06-13 10:49:43 -07:00
Matt Joyce
8d089518f0 removing print call in roles get_data
Change-Id: I2aebf6099821212d4bd4b4b6d78b9752085168b2
2012-05-23 12:18:53 -07:00
Jenkins
3acb1c6a85 Merge "Fix 'set user' command" 2012-05-22 13:59:31 +00:00
Dean Troyer
ec586a75f4 Fix 'set user' command
* missing --name arguemnt in parser for SetUser()
* correct Identity api call for SetUser()

Fix bug 1001384

Change-Id: I51169a0585c1bfe106ddd2e390269f69fc32852c
2012-05-18 17:19:16 -05:00
Dean Troyer
a4aaac78a9 Add role CRUD commands
* add {add|create|delete|list|remove|show|user-list} role commands

Change-Id: I27129168a9f58154fcdb062a533fa926737f822f
2012-05-18 13:57:16 -05:00
Dean Troyer
0c4e131c6e Add endpoint CRUD commands
* add {create|delete|list|show} endpoint commands

Change-Id: Ife9fa789d5818d63288b09687b43d802b1b97858
2012-05-18 10:35:20 -05:00
Dean Troyer
90f9f1dfa0 Clean up tenant and server
* remove '_' from class names
* add class name to log instances
* some cleanups to HACKING

Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
2012-05-16 11:44:18 -05:00
Jenkins
d6a2762746 Merge "Add user CRUD commands" 2012-05-16 14:29:23 +00:00
Dean Troyer
d6a4fb836f Update service commands
* add {create|delete} service
* allow 'service' arg to also search type attribute in show command

Change-Id: I992359dc95fab1fbdab0666d5cbb75e44ba6e0f3
2012-05-15 15:48:11 -05:00
Dean Troyer
0740d85c20 Add user CRUD commands
* add {create|delete|list|set|show} user commands
* fix pep8 issues

Change-Id: I46fe2375b8b4f95b82d8ba31ee8fb660a067d50a
2012-05-15 15:43:05 -05:00
Dean Troyer
f485d71222 Revise command boolean flags
* use --enable|--disable form for boolean 'enabled' value
* clean up logging strings

Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
2012-05-11 17:27:03 -05:00
Dean Troyer
fa4a4a37d6 Move get_client_class() to common.utils
* add constants for API_NAME

Change-Id: I8ccf72f032227e0a452d96303181549b1b11a5d1
2012-05-11 13:49:45 -05:00
Dean Troyer
5378322906 Add tenant CRUD commands
* add {create|delete|set} tenant commands

* move get_XXXX_properties() to common.utils.get_item_properties()
  add mixed_case_fields as an optional arg

Change-Id: I7b3bd9cefb08e39730886b31213cbe422b5a8453
2012-05-11 12:08:05 -05:00
Dean Troyer
712a8c7f9c Add API versioning support
* Specific versions supported are managed in XXXXXX.client.py with a
  mapping from version to client class.  This is based on the scheme
  that is included in novaclient; none of the other client libs have
  that capability.

Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542
2012-05-10 15:52:15 -05:00
Jenkins
9d224b3bf8 Merge "Add tenant commands, work on service" 2012-05-10 20:18:51 +00:00
Dean Troyer
3b2129f0b8 Add copyright notices and update dates
Change-Id: I54a7d99328143205ab97ea930aeeeb69fe92c76c
2012-05-10 14:58:16 -05:00
Dean Troyer
cc0adad81e Add tenant commands, work on service
* adds {list|show} tenant
* fleshes out service commands (still WIP)

Change-Id: I9dabb6ed3f128a30f140146928320f033d097a06
2012-05-10 14:11:17 -05:00
Dean Troyer
6fb1a4e496 More identity client config
* move auth option checking back to OpenStackShell() to keep the shell-level
  interaction at that level; add checking for token flow options

* make identity.client.make_client() configure keystoneclient.v2_0.Client()
  properly for both password flow and token flow auth

* eliminated ClientManager.init_token(), set _service_catalog in __init__()

* compute client handles token flow

Change-Id: I42481b5424489387798c4ec6d3e2a723ab1e6067
2012-05-10 13:54:58 -05:00
Dean Troyer
70b3246a19 Add Identity to ClientManager
* Make the Identity client in identity.client.make_client()
* Auth via ClientManager.identity
* Skip extra auth roundtrip in compute client

Change-Id: I0190639e38f83997c233195f6cc27ff3afdfba10
2012-05-04 16:37:18 -05:00
Dean Troyer
04730e6f40 Add 'list service' command and common modules 2012-04-27 11:53:06 -05:00
Dean Troyer
11d3ba4570 Add openstackclient bits 2012-04-19 22:41:44 -05:00