15 Commits

Author SHA1 Message Date
Vipul Sabhaya
bb6a4da316 Change defaults for Service name + type
* Corresponds to change made in reddwarf-integration that changes
  the service name + type in keystone.

fixes bug# 1122515

Change-Id: I28a366662bfe9816a926708fc376afdf29f00de1
2013-02-15 10:10:26 -08:00
denizdemir
28c8f2aa20 fixing delete method name for Paginated class
bug 1098668

https://bugs.launchpad.net/python-reddwarfclient/+bug/1098668

Change-Id: Ib8fe4a02dcd39b5db02bb83df6cec0a3b76f753a
2013-01-22 14:55:51 -08:00
Vipul Sabhaya
844492a8eb Only pep8 violations fix
fix pep8 violations

fix tox configurtion for pep8

fix pretty print for actions that return a response body

Change-Id: I39a529bda8780649a5159761af7103eee8520412
2012-11-01 11:20:10 -07:00
Tim Simpson
9cee37a6d9 No longer load the token file on auth login.
* Print a pretty message about saving the token when we get one.
2012-08-28 12:38:37 -05:00
Ed Cranford
3f171b854d Moves get_client to _get_client and fixes calls to it in mcli. 2012-08-22 16:36:24 -05:00
Tim Simpson
62e603a3b7 Minor fixes and tweaks.
* insecure no longer needs a string value added to it.
* Print "ok" in situations where the client would otherwise give no
  output.
* Fixed a bug in non-verbose output.
2012-08-14 15:32:52 -05:00
Tim Simpson
88f9530151 Added a ton of CLI options, plus fixed a CI bug.
* Renamed the auth_type "basic" to the more apt "auth1.1".
* Made it possible to pass an "token" and "service_url" argument alone to
  the client. It wouldn't work with just this before.
* The client now saves all arguments you give it to the pickled file,
  including the auth strategy, and preserves the token and service_url
  (which it didn't before) which makes exotic auth types such as "fake"
  easier to work with.
* Not raising an error for a lack of an auth_url until auth occurs
  (which is usually right after creation of the client anyway for most
   auth types).
* Moved oparser code into CliOption class. This is where the options live
  plus is the name of that pickled file that gets stored on login.
* Added a "debug" option which avoids swallowing stack traces if
  something goes wrong with the CLI. Should make client work much easier.
* Added a "verbose" option which changes the output to instead show the
  simulated CURL statement plus the request and response headers and
  bodies, which is useful because I...
* Added an "xml" option which does all the communication in XML.
* Fixed a bug which was affecting the CI tests where the client would fail
  if the response body could not be parsed.
* Added all of Ed's work to update the mgmt CLI module with his newer
  named parameters.
2012-08-14 12:35:38 -05:00
Ed Cranford
0fad705f91 Built common CommandsBase so we can share double-dashed options from the parser between command classes. 2012-07-27 16:58:02 -05:00
Nirmal Ranganathan
199ded7eb5 Moving away from novaclient and adding all the missing pieces into reddwarfclient.
- Added parameters for the authentication instead of the arguments.
- Cleaned out the HttpClient and Authentication pieces.
2012-07-06 15:02:06 -05:00
Tim Simpson
44c952347a Changing the default auth_strategy from "basic" to None. 2012-06-18 15:01:24 -05:00
Nirmal Ranganathan
290d515c76 Adding rax auth 2012-06-18 13:43:54 -05:00
Ed Cranford
389bdf81aa Adds pagination limit and marker to instances, databases, and users indices. 2012-06-01 14:28:00 -05:00
Ed Cranford
01313e56fe PEP8 fixes 2012-05-03 16:20:39 -05:00
Tim Simpson
b1eeaa4b95 Changing Reddwarf client to use its own request function.
* Nova client changed in a way that broke our client, so copying the code from there is necessary.
* Adding InstanceStatus class with the status strings.
* Moved the Dbaas and ReddwarfHTTPClient into their own module.
* Changed exceptions module to check Nova's exception map after first looking in Reddwarf's.
2012-05-02 13:26:04 -05:00
Tim Simpson
17911cb64f Initial copy of reddwarfclient from reddwarf project. 2012-03-07 15:16:58 -06:00