Sha256: f162799b68d2b27103b910a4dce3f8cbc7853305d819dfd50957c65313d83fba

Contents?: true

Size: 944 Bytes

Versions: 22

Compression:

Stored size: 944 Bytes

Contents

require 'deploy_test'

class TierSettingDeployTest < DeployTest
  def test_sets_default_tier_as_webserver
    deploy(:application => 'simple', :environment => "production")
    assert_equal 'WebServer', @eb.environment_tier('simple', t('production', 'simple'))
  end

  def test_can_change_tier
    deploy(:application => 'simple', :environment => "production", :tier => 'Worker')
    assert_equal 'Worker', @eb.environment_tier('simple', t('production', 'simple'))
  end

  def test_should_worker_tier_should_not_have_cname_prefix
    deploy(:application => 'simple', :environment => "production", :tier => 'Worker')
    assert_nil @eb.environment_cname_prefix('simple', t('production', 'simple'))
  end

  def test_should_raise_error_when_deploy_worker_tier_with_blue_green
    assert_raises(RuntimeError) do
      deploy(:application => 'simple', :environment => "production", :tier => 'Worker', :strategy => 'blue-green')
    end
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
man_eb_deployer-0.8.0 test/tier_setting_deploy_test.rb
eb_deployer_updated-0.8.1 test/tier_setting_deploy_test.rb
eb_deployer_updated-0.8.0 test/tier_setting_deploy_test.rb
eb_deployer-0.7.0 test/tier_setting_deploy_test.rb
eb_deployer-0.6.6 test/tier_setting_deploy_test.rb
eb_deployer-0.6.5 test/tier_setting_deploy_test.rb
eb_deployer-0.6.4 test/tier_setting_deploy_test.rb
eb_deployer-0.6.3 test/tier_setting_deploy_test.rb
eb_deployer-0.6.2 test/tier_setting_deploy_test.rb
eb_deployer-0.6.1 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta6 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta5 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta4 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta3 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta2 test/tier_setting_deploy_test.rb
eb_deployer-0.5.2 test/tier_setting_deploy_test.rb
eb_deployer-0.6.0.beta1 test/tier_setting_deploy_test.rb
eb_deployer-0.5.1.beta3 test/tier_setting_deploy_test.rb
eb_deployer-0.5.1.beta2 test/tier_setting_deploy_test.rb