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

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.
This commit is contained in:
Paul Thornthwaite 2014-12-10 11:09:33 +00:00
parent a67cadb71d
commit 909cb31571
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,10 @@
require "minitest/autorun"
require "fog"
require "fog/bin"
require "helpers/bin"
describe Rackspace do
include Fog::BinSpec
let(:subject) { Rackspace }
end

View file

@ -36,6 +36,7 @@ describe Fog do
assert_equal "Openvz", Fog.providers[:openvz]
assert_equal "Ovirt", Fog.providers[:ovirt]
assert_equal "ProfitBricks", Fog.providers[:profitbricks]
assert_equal "Rackspace", Fog.providers[:rackspace]
assert_equal "Rage4", Fog.providers[:rage4]
assert_equal "RiakCS", Fog.providers[:riakcs]
assert_equal "SakuraCloud", Fog.providers[:sakuracloud]
@ -85,6 +86,7 @@ describe Fog do
assert_includes Fog.registered_providers, "Openvz"
assert_includes Fog.registered_providers, "Ovirt"
assert_includes Fog.registered_providers, "ProfitBricks"
assert_includes Fog.registered_providers, "Rackspace"
assert_includes Fog.registered_providers, "Rage4"
assert_includes Fog.registered_providers, "RiakCS"
assert_includes Fog.registered_providers, "SakuraCloud"
@ -134,6 +136,7 @@ describe Fog do
assert_includes Fog.available_providers, "Openvz" if Openvz.available?
assert_includes Fog.available_providers, "Ovirt" if Ovirt.available?
assert_includes Fog.available_providers, "ProfitBricks" if ProfitBricks.available?
assert_includes Fog.available_providers, "Rackspace" if Rackspace.available?
assert_includes Fog.available_providers, "Rage4" if Rage4.available?
assert_includes Fog.available_providers, "RiakCS" if RiakCS.available?
assert_includes Fog.available_providers, "SakuraCloud" if SakuraCloud.available?