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

24 commits

Author SHA1 Message Date
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
Thom Mahoney & Eugene Howe
0192e53ef7 openstack modifications
* add model and collection for security group rules
* add mock data for networks
* returns address in create_server mock
* proper security group rule mocks
* proper security group mocks
2013-12-09 16:31:16 -08:00
Brian D. Burns
40e8f458f2 use Fog::JSON 2013-11-19 00:51:57 -05:00
Grzesiek Kolodziejczyk
95e5356dda [OS|Volume] Add listing/showing volume types 2013-11-01 16:05:29 +01:00
Brian D. Burns
fe2b2d9f30 [openstack] remove :host from Excon request params 2013-10-11 11:45:38 -04:00
Erik Michaels-Ober
f2bd2404d1 Revert "Updated gem spec to require json rather than multi_json"
This reverts commits: 66638b25d7,
3f0314dbd1, and
18ce4b7eca.

Since google-api-client was added as a dependency in afa9b025e9,
multi_json is a de facto dependency of fog, so this is a needless layer.
If #1034 is still an issue, I'd be happy to ship a version of multi_json
that requires rubygems >= 1.3.5.
2013-05-06 04:05:36 -07:00
Dan Prince
07c4d64195 Merge pull request #1693 from amerine/remove_openstack_cache_busting
Remove the OpenStack API cache busting.
2013-05-03 07:11:45 -07:00
Philip Mark M. Deazeta
3147f9b36b [openstack|volume] Added quota requests for Cinder 2013-04-12 18:10:01 +08:00
Kyle Rames
66638b25d7 Updated gem spec to require json rather than multi_json; Fog::JSON will attempt to load and use multi_json first and then fallback to require json; removed hard coded references to multi_json 2013-04-03 08:42:45 -05:00
Mark Turner
ed70672110 Remove the OpenStack API cache busting.
Not sure why this was ever here, and I cannot find a reason to continuously bust
the Nova request caching in the wsgi request handler. It does not help
performance, and makes attempts at ANY caching of responses to a Fog request
annoying.
2013-03-23 22:54:58 -07:00
Sergio Rubio
df1bb783e0 [openstack|volume] remove extra comma 2013-01-28 11:25:03 +01:00
Sergio Rubio
940b54e456 [openstack|volume] Configurable :openstack_endpoint_type
:openstack_endpoint_type is missing as a recognized parameter. This
patch fixes that, and allows the :openstack_endpoint_type to be
configurable instead of hardcoding the value to 'adminURL'

That is, you can create the connection to the service as follows:

require 'fog'

conn = Fog::Volume.new({
  :provider => 'OpenStack',
  :openstack_api_key => ENV['OS_PASSWORD'],
  :openstack_username => ENV["OS_USERNAME"],
  :openstack_auth_url => ENV["OS_AUTH_URL"]
  :openstack_tenant => ENV["OS_TENANT_NAME"],
  :openstack_endpoint_type => 'publicURL', # publicURL, adminURL, etc
})

Defaults to adminURL to maintain backwards compatibility.
2013-01-24 11:23:33 +01:00
Dan Prince
ba26129001 OpenStack auth updates to select by service name.
This patch updates the OpenStack auth implementation so that
it supports selecting API service by both 'name' and 'type'.

Previously the implementation was confusing because it
used a config param called :openstack_service_name to
select the service 'type' from the catalog. This patch
swaps it so that :openstack_service_name actually selects
by 'name'.

The previous logic to select service by type ('compute' for example)
has been preserved in a new :openstack_service_type parameter.
This option is used just as it was before for backwards compatability.

This change is potentially breaking for anyone previously using
:openstack_service_name (which I don't think is that common but is
possible). As such we should probably make a release note saying
that previous users of :openstack_service_name should migrate to
use :openstack_service_type instead.
2012-12-10 07:55:54 -05:00
Philip Mark M. Deazeta
a9fb65985c [openstack] Make use of the unscoped token for reauthentication 2012-11-26 17:23:13 +08:00
Dan Prince
794f1159a2 Merge pull request #1142 from grkvlt/accept-headers-openstack
Add Accept header with application/json media type to OpenStack requests
2012-11-13 12:06:24 -08:00
Nelvin Driz
7c72e5394f [openstack] Authentication Mocks
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-09-28 14:41:59 +08:00
Andrew Donald Kennedy
2d4f0fa0db [openstack] Add Accept header with application/json media type to requests 2012-09-12 16:19:21 +03:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Philip Mark M. Deazeta
e4cf9e3db9 [openstack|volume] Added volume model 2012-05-14 14:46:36 +08:00
Nelvin Driz
7b46964770 [openstack] Make current_user and current_token accessible to services
- This is for users with no permission to access keystone admin API

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Philip Mark M. Deazeta
c138c0fcae [openstack|volume] Added volume service requests 2012-04-30 10:35:02 +08:00