Sha256: a7e8e5f96942f1228d1fe34c0951276392e6c22acf4f7376727126d519819ab9

Contents?: true

Size: 829 Bytes

Versions: 18

Compression:

Stored size: 829 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

class SampleServer < Awsborn::Server
  instance_type :m1_small
  image_id 'ami-2fc2e95b'
  keys :all
end

describe Awsborn::ServerCluster do

  before(:each) do
    Awsborn.verbose = false
  end

  describe "build" do
    it "adds the domain to servers" do
      c = Awsborn::ServerCluster.build SampleServer, 'foo' do
        domain 'example.org'
        server :name, :ip => 'www'
      end
      c.first.elastic_ip.should == 'www.example.org'
    end
    it "adds the domain to load balancers" do
      c = Awsborn::ServerCluster.build SampleServer, 'foo' do
        domain 'example.org'
        load_balancer 'elbe', :dns_alias => 'www', :region => 'eu-west-1'
      end
      c.load_balancers.first.dns_alias.should == 'www.example.org'
    end
  end


end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
awsborn-0.9.11 spec/server_cluster_spec.rb
awsborn-0.9.10 spec/server_cluster_spec.rb
awsborn-0.9.9 spec/server_cluster_spec.rb
awsborn-0.9.8 spec/server_cluster_spec.rb
awsborn-0.9.7 spec/server_cluster_spec.rb
awsborn-0.9.6 spec/server_cluster_spec.rb
awsborn-0.9.5 spec/server_cluster_spec.rb
awsborn-0.9.4 spec/server_cluster_spec.rb
awsborn-0.9.3 spec/server_cluster_spec.rb
awsborn-0.9.2 spec/server_cluster_spec.rb
awsborn-0.9.1 spec/server_cluster_spec.rb
awsborn-0.9.0 spec/server_cluster_spec.rb
awsborn-0.8.7 spec/server_cluster_spec.rb
awsborn-0.8.6 spec/server_cluster_spec.rb
awsborn-0.8.5 spec/server_cluster_spec.rb
awsborn-0.8.4 spec/server_cluster_spec.rb
awsborn-0.8.3 spec/server_cluster_spec.rb
awsborn-0.8.2 spec/server_cluster_spec.rb