Sha256: 00414c531b726a3c0fbe64d55b4c45d6620fcb27297dc9e85fc82e77c8b86af9

Contents?: true

Size: 794 Bytes

Versions: 22

Compression:

Stored size: 794 Bytes

Contents

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

class AwsTest < Test::Unit::TestCase

  context "aws" do

    setup do
      env = {'access_key' => "XXX", 'secret_access_key' => "YYY", 'region' => "us-east-1"}
      env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil)
      @cloud = Rubber::Cloud::Aws.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 "provide table store" do
      assert @cloud.table_store('somekey')
    end

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

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rubber-2.1.0 test/cloud/aws_test.rb
rubber-2.0.8 test/cloud/aws_test.rb
rubber-2.0.7 test/cloud/aws_test.rb
rubber-2.0.6 test/cloud/aws_test.rb
rubber-2.0.5 test/cloud/aws_test.rb
rubber-2.0.4 test/cloud/aws_test.rb
rubber-2.0.3 test/cloud/aws_test.rb
rubber-2.0.2 test/cloud/aws_test.rb
rubber-2.0.1 test/cloud/aws_test.rb
rubber-2.0.0 test/cloud/aws_test.rb
rubber-2.0.0.pre12 test/cloud/aws_test.rb
rubber-2.0.0.pre11 test/cloud/aws_test.rb
rubber-2.0.0.pre10 test/cloud/aws_test.rb
rubber-2.0.0.pre9 test/cloud/aws_test.rb
rubber-2.0.0.pre8 test/cloud/aws_test.rb
rubber-2.0.0.pre7 test/cloud/aws_test.rb
rubber-2.0.0.pre6 test/cloud/aws_test.rb
rubber-2.0.0.pre5 test/cloud/aws_test.rb
rubber-2.0.0.pre4 test/cloud/aws_test.rb
rubber-2.0.0.pre3 test/cloud/aws_test.rb