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

5 commits

Author SHA1 Message Date
Paul Thornthwaite
51cb839405 [GH-1390] Remove redundant calls to Fog.credentials
If you use the supported means to create services such as:

    Fog::Service.new(:provider => "Example")

It already loads the contents of `~/.fog` and filters the values based
on if they are recognised or required.

That means in a number of services that are initialising based on
`options` or a value from `Fog.credentials` both are the same.

The `options` should have been loaded and merged from credentials in the
service "builder".
2014-03-27 09:25:13 +00:00
Paul Thornthwaite
98cb07f59d [Brightbox] Remove dependency on .fog in test
This isolates the tests from the values in `Fog.credentials` which is
based on the contents of `~/.fog`

Underlying problem is that the code (and many others) rely on the Fog
global making it too tightly coupled to the environment hence having to
stub.

Full issue: https://github.com/fog/fog/issues/1390

This will probably be a repeating pattern we need to work on to DRY up
so every test from every provider doesn't include this setup workaround.
2014-03-13 10:30:35 +00:00
Paul Thornthwaite
bc421ae96c [Brightbox] Use minitest in Brightbox module
Includes a simple test of Compute class.
2014-03-12 16:30:57 +00:00
Paul Thornthwaite
08b4f9a1b4 [Brightbox] Round out fog-brightbox gem
Adding Gemfile, Rakefile, README and licence information.
2014-03-12 16:11:00 +00:00
Paul Thornthwaite
192c0c098b [Brightbox] Extract to provider module 2014-02-19 21:43:29 +00:00