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

19 commits

Author SHA1 Message Date
Josef Stribny
099a2784d1 Remove libvirt tests from fog 2015-04-17 15:08:02 +02:00
Chris Luo
707d12e774 fix powerdns_spec.rb 2015-03-17 10:43:40 -04:00
Chris Luo
ac97e494ab Fix binspec def 2015-03-17 10:42:01 -04:00
Chris Luo
90a4ada1d5 Initial integration of powerdns 2015-03-17 10:41:26 -04:00
Chris Luo
87fe99efd0 Debug modularization and integration 2015-03-17 10:39:12 -04:00
Chris Luo
84d1b66bbc Fix binspec def 2015-03-17 10:39:12 -04:00
Chris Luo
d3fdfebd4c Initial integration of powerdns 2015-03-17 10:39:12 -04:00
Paul Thornthwaite
706f873c53 DRY up specs with spec_helper
We require setting up MiniSpec and `fog` in each spec and this just
feels cleaner way of doing it.

Adding Coverage next and we don't want the code in EVERY spec.
2015-03-15 00:47:24 +00:00
Paul Thornthwaite
0ef2453fa0 Tests top level classes interface
Currently most providers used by the `fog` binary give themselves a top
level class. This has become the place a lookup table between services
and the classes which implement them.

This adds compatibility tests for the existing behaviour to allow
controlled extraction to modules.

This top level class behaviour is due to be deprecated and removed in
fog 2.0
2015-02-25 22:36:58 +00:00
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