Sha256: e46e8ec4c48e4a4d690d19d86857c4778ce9a1de3636ebc4b1ff70a4aba047a5

Contents?: true

Size: 802 Bytes

Versions: 20

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe "ey logs" do
  given "integration"

  it "prints logs returned by awsm" do
    api_scenario "one app, one environment"
    ey "logs -e giblets"
    @out.should match(/MAIN LOG OUTPUT/)
    @out.should match(/CUSTOM LOG OUTPUT/)
    @err.should be_empty
  end

  it "complains when it can't infer the environment" do
    api_scenario "one app, many environments"
    ey "logs", :expect_failure => true
    @err.should =~ /single environment/
  end
end

describe "ey logs" do
  given "integration"

  def command_to_run(opts)
    cmd = "logs"
    cmd << " --environment #{opts[:env]}" if opts[:env]
    cmd
  end

  def verify_ran(scenario)
    @out.should match(/Main logs for #{scenario[:environment]}/)
  end

  it_should_behave_like "it takes an environment name"
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
engineyard-1.3.1 spec/ey/logs_spec.rb
engineyard-1.3.0 spec/ey/logs_spec.rb
engineyard-1.2.4 spec/ey/logs_spec.rb
engineyard-1.2.3 spec/ey/logs_spec.rb
engineyard-1.2.2 spec/ey/logs_spec.rb
engineyard-1.2.1 spec/ey/logs_spec.rb
engineyard-1.2.0 spec/ey/logs_spec.rb
engineyard-1.1.3 spec/ey/logs_spec.rb
engineyard-1.1.2 spec/ey/logs_spec.rb
engineyard-1.1.1 spec/ey/logs_spec.rb
engineyard-1.1.0 spec/ey/logs_spec.rb
engineyard-1.0.2 spec/ey/logs_spec.rb
engineyard-1.0.1 spec/ey/logs_spec.rb
engineyard-1.0.0 spec/ey/logs_spec.rb
engineyard-0.10.0 spec/ey/logs_spec.rb
engineyard-0.9.0 spec/ey/logs_spec.rb
engineyard-0.8.2 spec/ey/logs_spec.rb
engineyard-0.8.1 spec/ey/logs_spec.rb
engineyard-0.8.0 spec/ey/logs_spec.rb
engineyard-0.7.1 spec/ey/logs_spec.rb