1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Evan Light
94a881905f [OpenStack] Use JSON instead of XML
Current implementation will fail of OpenStack is required
by itself because of Fog::XML::Connection.  Prefer to use
JSON in any event. Replaced with Fog::Core::Connection.
2014-04-09 12:00:38 -04:00
Paul Thornthwaite
0e1daf3ddd [GH-2711] Replace Fog::Connection with XML shim
Unlike last attempt this replaces Fog::Connection with
Fog::XML::Connection which should be directly compatible.

Fog::Connection is there for old PRs but should be removed real soon.

Providers using JSON should be able to replace "XML" with "Core" within
their code to cut down on the dependency.

If I get the time I may attempt to clean up some but testing with Mock
will mean that is mostly educated guesswork.
2014-02-27 00:54:17 +00:00
Paul Thornthwaite
5007aac401 Revert "[core] Replace Fog::Connection with stable version"
This reverts commit 7ee3535d99.
2014-02-26 09:52:02 +00:00
Paul Thornthwaite
7ee3535d99 [core] Replace Fog::Connection with stable version
Fog::Connection mixed in XML parsing via the `parser` argument which
wasn't much use for the majority of APIs using JSON.

This adds the deprecation warning and attempts to update providers to
the correct version of Connection that they need.

Either the cleaner `Fog::Core::Connection` or if reliant on the XML
parsing still `Fog::XML::SAXParserConnection`

The SAX parser will be moving to `fog/xml` fairly soon.
2014-02-25 21:42:34 +00:00
Lance Ivy
1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
Lance Ivy
429ccf926c openstack orchestration no longer depends on cloud formation 2014-02-01 14:01:50 -05:00
Lance Ivy
c27901dc8c ensure that each service requires its provider 2014-02-01 13:07:49 -05:00
Brian D. Burns
fe2b2d9f30 [openstack] remove :host from Excon request params 2013-10-11 11:45:38 -04:00
Dan Prince
1854e9a040 Jsonify all OS orchestration requests.
Updates the Orchestration request method so that *all* request
bodies with JSON responses get converted to JSON.

The previous code failed to convert some HTTP 2xx responses to
JSON.
2013-10-02 09:18:38 -04:00
Dan Prince
c284578ee6 All OpenStack heat requests must contain User/Key.
Updates the OpenStack Orchestration request() method
so that all requests contain the X-Auth-User and X-Auth-Key
headers.

Heat requires these parameters so that it can make subsequent requests
based on the users behalf.

For reference see here:

https://github.com/openstack/python-heatclient/blob/master/heatclient/common/http.py#L186
2013-09-30 22:45:09 -04:00
Dan Prince
4712c0427e Minor whitespace cleanups. 2013-09-11 08:18:05 -04:00
Thomas Kadauke
704e33e7d8 Store mock stacks in memory to make tests more realistic 2013-09-10 22:16:42 -04:00
Thomas Kadauke
9457089347 Tests for previous commit 2013-09-10 22:16:42 -04:00
Thomas Kadauke
ecef54c8bc CRUD for OpenStack heat's Stack model 2013-09-10 22:16:42 -04:00