Sha256: 328cb72aaef705f0fc86f6fc58b92171b54ad99033bf156837b47b4658fc0625

Contents?: true

Size: 799 Bytes

Versions: 9

Compression:

Stored size: 799 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, 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

9 entries across 9 versions & 1 rubygems

Version Path
rubber-2.3.1 test/cloud/aws_test.rb
rubber-2.3.0 test/cloud/aws_test.rb
rubber-2.2.4 test/cloud/aws_test.rb
rubber-2.2.3 test/cloud/aws_test.rb
rubber-2.2.2 test/cloud/aws_test.rb
rubber-2.2.1 test/cloud/aws_test.rb
rubber-2.2.0 test/cloud/aws_test.rb
rubber-2.1.2 test/cloud/aws_test.rb
rubber-2.1.1 test/cloud/aws_test.rb