Sha256: 4a63b2a6b0e91bedb6df0e96862d4e0f0bb205e94d4dd242e473b5a4ea793cef

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

require 'acceptance_spec_helper'

feature "Resolve host error handling" do
  background { config_exists <<-CONFIG }
    default_destination "slots:staging:s2"
    project :slots do
      environment :staging do
        server :s1 do
          host "1.2.3.4"
        end

        server :s2 do
          host "2.3.4.5"
        end
      end
    end
  CONFIG

  scenario "Non-existent location" do
    run "taketo slots:staging:qqq --dry-run"
    stderr.should include("Can't find such destination: slots:staging:qqq")
    exit_status.should_not be_success
  end

  scenario "Ambiguous location" do
    run "taketo slots:staging --dry-run"
    stderr.should include("There are multiple possible destinations: slots:staging:s1, slots:staging:s2")
    exit_status.should_not be_success
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
taketo-0.3.1 spec/acceptance/error_handling_spec.rb
taketo-0.3.0 spec/acceptance/error_handling_spec.rb
taketo-0.2.0 spec/acceptance/error_handling_spec.rb
taketo-0.2.0.alpha spec/acceptance/error_handling_spec.rb