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

8 commits

Author SHA1 Message Date
Greg Blomquist
a239227d2a Show failure for Openstack Storate service_type
The openstack_service_type for the Openstack Storage Service (Swift) currently
defaults to "object-store".  However, if the Swift service is unvailable, the
authenticate_v2 method attempts to call:

    service_type.join ", "

The problem is that the String "object-store" doesn't have a join method.

The new tests show that "object-store" is an invalid service_type, whereas
["object-store"] is a valid service_type.

https://github.com/fog/fog/issues/3112
2014-08-15 15:03:01 -04:00
Paul Thornthwaite
ef9a9697ab Remove trailing whitespace
Done with `rubocop --auto-correct --only TrailingWhitespace`
2014-05-26 14:44:18 +01:00
Paul Thornthwaite
330a351ade Remove trailing blank lines
Done with `rubocop --auto-correct --only TrailingBlankLines`
2014-05-26 14:35:26 +01:00
Yauheni Kryudziuk
3ae372d847 Allow v1 auth for OpenStack 2013-08-15 08:48:13 +02: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
Dan Prince
c544610791 OpenStack custom exception cleanup.
Fixes an exception class name error for the custom
OpenStack ServiceUnavailable exception. Previously the wrong
class name was being used.

Also cleans up and simplifies some other exceptions in the OpenStack
implementation. (We can simply use NotFound from Fog::Errors instead)
2012-12-09 16:51:07 -05:00
Eric Hodel
64b08cbf12 Raise a NotFound exception for missing services
Previously a NoMethodError would be raised giving no information about
what was missing.  Now an appropriate exception with a useful message is
returned.
2012-12-05 14:20:46 -08:00
Eric Hodel
f15f54aff0 Added test for Fog::Openstack::authenticate_v2 2012-12-05 14:20:46 -08:00