From 909cb31571012321fc693b0d0fa767e22a73245a Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Wed, 10 Dec 2014 11:09:33 +0000 Subject: [PATCH] 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 9717002fd3d18aef0c359fc52ac704894a34dac0. --- spec/fog/bin/rackspace_spec.rb | 10 ++++++++++ spec/fog/bin_spec.rb | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 spec/fog/bin/rackspace_spec.rb diff --git a/spec/fog/bin/rackspace_spec.rb b/spec/fog/bin/rackspace_spec.rb new file mode 100644 index 000000000..b847cf7bd --- /dev/null +++ b/spec/fog/bin/rackspace_spec.rb @@ -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 diff --git a/spec/fog/bin_spec.rb b/spec/fog/bin_spec.rb index 9bdbc85c7..c4f1a32f5 100644 --- a/spec/fog/bin_spec.rb +++ b/spec/fog/bin_spec.rb @@ -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?