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

9 commits

Author SHA1 Message Date
Paul Thornthwaite
707eb7e8e4 [fog-brightbox] Correct CHANGELOG categories
To match the version number increase, there are no real enhancements
they are just implementation/supporting file updates.
2014-04-10 16:23:38 +01:00
Paul Thornthwaite
8363250159 [fog-brightbox] Prepare for v0.0.2 release 2014-04-10 15:53:02 +01:00
Paul Thornthwaite
08a9b11995 [Brightbox] Test error when required args missing
This adds a test to confirm existing behaviour that ArgumentError is
raised when `brightbox_client_id` or `brightbox_secret` is omitted.
2014-04-08 00:03:58 +01:00
Paul Thornthwaite
2bd274eb23 [Brightbox] Update testing to MiniTest::Spec
Using spec form is going to be the standard way to testing (but relying
on asserts). This update allows the test(s) to be picked up by the main
rake task again.
2014-04-03 09:47:23 +01:00
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