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

6 commits

Author SHA1 Message Date
Paul Thornthwaite
5d03a2398c [Brightbox] Guards unimplemented mock tests
This guards the newer tests just added that rely on unimplemented mocks
2012-11-29 16:04:45 +00:00
Paul Thornthwaite
31c5895119 [Brightbox] Adds means to update scoped account
A Compute instance encapsulates a connection for a client to the
Brightbox API. Users can have multiple accounts but there was no easy
way to switch between them when account had to be passed in via the
initializer.

Now the scoped account can be set on an existing instance which overrides
any configured setting but it can be reset if needed.

The #request method still can accept `account_id` as an option which
again overrides the previous settings.

Finally the parameter is now correctly sent as a query string parameter
not part of the API request JSON.
2012-11-29 10:43:55 +00:00
Paul Thornthwaite
dbc53d0f48 [Brightbox] Adds option to disable token management
Original request method handles missing tokens and the first
Unauthorized response by requesting a new access token.

This magic can be disruptive for clients so can be disabled by passing
in `:brightbox_token_management => false` to the Compute service.
2012-11-29 10:41:14 +00:00
Paul Thornthwaite
a1f1a8b8ce [Brightbox] Moves tokens to CredentialSet 2012-11-29 10:27:34 +00:00
Paul Thornthwaite
6da9aa7b6d [Brightbox] Tests recognised options
Never actually tested the options we declared when creating a new
instance of the Compute service.
2012-11-27 10:29:48 +00:00
Paul Thornthwaite
b221b97ba6 [brightbox|compute] Helper to get default image from API
* First will look for a configuration value brightbox_default_image
* Second will query the API for latest Ubuntu (ideally LTS)
2012-08-15 15:48:23 +01:00