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

10 commits

Author SHA1 Message Date
Paul Thornthwaite
746fbc1fd5 [AWS] Fix test and data pipeline issue
Test for `AWS[]` was buggy and to prove it when fixed it revealed that
the `data_pipeline` service was not returning the class not an instance
of the class.
2015-01-03 20:05:12 +00:00
Paul Thornthwaite
1856827b74 [AWS] Tests covering "bin" interface
The `AWS` class has a number of lookups that need moving to the
`Fog::AWS` namespace to ease extraction. This adds tests for AWS current
interface.
2015-01-03 17:09:14 +00:00
Paul Thornthwaite
fcd22c9a9a Test service abstraction code loading
The abstraction modules e.g. `Fog::Compute` have a list of registered
providers. All of these providers should be loaded correctly when
accessed with `Fog::Service[:provider]`

These tests hit each endpoint expecting `ArgumentError` from each
provider caused by the lack of credentials.

Credentials are stubbed out to not cause false results when the test
environment does have credentials for a service.

Some services do not have requirements so do not raise the expected
error. These special cases are just asserted. If they are not loaded the
specs fail again.
2014-12-18 09:49:20 +00:00
Paul Thornthwaite
fedb21dfd8 Merge pull request #3334 from fog/more_abstraction_specs
More specs to cover `Fog` methods
2014-12-11 09:36:29 +00:00
Paul Thornthwaite
d31b5905c4 More specs to cover Fog methods 2014-12-11 00:07:40 +00:00
Paul Thornthwaite
909cb31571 Reinstate Rackspace "bin" checks
Following v1.25.0, Rackspace support was extracted into a module however
it broke support to the original fog API.

The Rackspace module is currently disabled until a few key files are
replaced.

This adds tests that worked against v1.25.0 that checks that `rackspace`
is registered correctly. See https://github.com/fog/fog/pull/3326

This reverts commit 9717002fd3.
2014-12-10 11:11:40 +00:00
Paul Thornthwaite
9717002fd3 Remove Rackspace references until reinstated
Tests were based on v1.25.0 which included Rackspace support. It was
extracted into a module and not correctly referenced so is no longer
present on master.

This commit should be reverted and the specs passing before the next
release.
2014-12-10 10:42:25 +00:00
Paul Thornthwaite
3b805f6483 Detailed checks for Brightbox class 2014-12-09 22:42:50 +00:00
Paul Thornthwaite
2cd387622e Specs for existing Fog::Bin interface
Prepartion for fog/fog-core#105
2014-12-09 22:42:27 +00:00
Paul Thornthwaite
05f1e5bacd Switch testing to MiniTest::Spec
Official testing has been revised slightly to use MiniTest but in spec
form BUT using asserts not expectations.
2014-04-03 09:24:18 +01:00