5 Commits

Author SHA1 Message Date
daniel-a-nguyen
9d190c26e3 Refactored client code and test to consume XML
Removed unused constants

Change-Id: I7a965a498ab4607de145359697b7d5d976aaa4ff
Fixes: bug #1154300
2013-03-12 16:26:02 -07:00
DJ Johnstone
5925e50c8c Correcting the types of the values in the returned data
Partially implements: blueprint test-with-xml
Change-Id: I6db4ac284b224c994ec6b674cfb8cb053e4b2734
2013-01-31 11:00:22 -06: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
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
Tim Simpson
fc5d8bd490 Made the client send and receive XML.
* Added a FakeAuth class, since it was so useful for hitting fake mode.
* Added a morph_request and morph_response function to the ReddwarfHTTPClient class, to make it possible to use different content types (XML).
* Added an XML module with a version of the client class that reads XML.
* Added a "mgmt" attribute to the Dbaas class, so that management classes can be hit in a way that closer approximates their URLs.
* Added a "resize_flavor" method, which is a clone of the "resize_instance" method, since that name makes a lot more sense.
2012-07-26 09:37:40 -05:00