Sha256: 69969a62a69a2ff42e47f54c6ea1e6d6dff328dd4ddca035e866a908c2e79cb1

Contents?: true

Size: 937 Bytes

Versions: 37

Compression:

Stored size: 937 Bytes

Contents

require 'spec_helper'

describe "ey logs" do
  given "integration"

  it "prints logs returned by awsm" do
    login_scenario "one app, one environment"
    fast_ey %w[logs -e giblets]
    @out.should match(/MAIN LOG OUTPUT/)
    @out.should match(/CUSTOM LOG OUTPUT/)
    @err.should == ''
  end

  it "complains when it can't infer the environment" do
    login_scenario "one app, many environments"
    fast_failing_ey %w[logs]
    @err.should =~ /Multiple environments possible, please be more specific/i
  end
end

describe "ey logs" do
  given "integration"

  def command_to_run(opts)
    cmd = ["logs"]
    cmd << "--environment" << opts[:environment] if opts[:environment]
    cmd << "--account"     << opts[:account]     if opts[:account]
    cmd
  end

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

  include_examples "it takes an environment name and an account name"
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
engineyard-3.1.2 spec/ey/logs_spec.rb
engineyard-3.1.1 spec/ey/logs_spec.rb
engineyard-3.1.0 spec/ey/logs_spec.rb
engineyard-3.0.1 spec/ey/logs_spec.rb
engineyard-3.0.0 spec/ey/logs_spec.rb
engineyard-2.3.3 spec/ey/logs_spec.rb
engineyard-2.3.2 spec/ey/logs_spec.rb
engineyard-2.3.1 spec/ey/logs_spec.rb
engineyard-2.3.0 spec/ey/logs_spec.rb
engineyard-2.2.1 spec/ey/logs_spec.rb
engineyard-2.2.0 spec/ey/logs_spec.rb
engineyard-2.2.0.rc1 spec/ey/logs_spec.rb
engineyard-2.1.3 spec/ey/logs_spec.rb
engineyard-2.1.2 spec/ey/logs_spec.rb
engineyard-2.1.1 spec/ey/logs_spec.rb
engineyard-2.1.0 spec/ey/logs_spec.rb
engineyard-2.1.0.rc1 spec/ey/logs_spec.rb
engineyard-2.0.13 spec/ey/logs_spec.rb
engineyard-2.0.12 spec/ey/logs_spec.rb
engineyard-2.0.11 spec/ey/logs_spec.rb