Sha256: 3039f87acdb588df3045d44e036c2b1708eb39a7068051d287a473af3c155f1d

Contents?: true

Size: 1 KB

Versions: 14

Compression:

Stored size: 1 KB

Contents

require File.expand_path(File.join(__FILE__, '../..', 'test_helper'))
require 'rubber/cloud/aws'
require 'ostruct'

class FogTest < Test::Unit::TestCase

  context "fog" do

    setup do
      env = { 'compute_credentials' =>
                 { 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'},
             'storage_credentials' =>
                 { 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'}}
      env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
      @cloud = Rubber::Cloud::Fog.new(env, nil)
    end

    should "instantiate" do
      assert @cloud.compute_provider
      assert @cloud.storage_provider
    end

    should "provide storage" do
      assert @cloud.storage('mybucket')
    end

    should "not provide table store" do
      assert_raises { @cloud.table_store('somekey') }
    end

    should "create instance" do
      assert @cloud.create_instance('', '', '', '', '', '')
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubber-2.14.0 test/cloud/fog_test.rb
rubber-2.13.1 test/cloud/fog_test.rb
rubber-2.13.0 test/cloud/fog_test.rb
rubber-2.12.2 test/cloud/fog_test.rb
rubber-2.12.1 test/cloud/fog_test.rb
rubber-2.12.0 test/cloud/fog_test.rb
rubber-2.11.0 test/cloud/fog_test.rb
rubber-2.10.2 test/cloud/fog_test.rb
rubber-2.10.1 test/cloud/fog_test.rb
rubber-2.10.0 test/cloud/fog_test.rb
rubber-2.9.0 test/cloud/fog_test.rb
rubber-2.8.1 test/cloud/fog_test.rb
rubber-2.8.0 test/cloud/fog_test.rb
rubber-2.7.5 test/cloud/fog_test.rb