require 'spec_helper'

describe 'deployment job control' do
  include IntegrationExampleGroup

  before do
    deploy_simple
  end

  it 'restarts a job' do
    expect(run_bosh('restart foobar 0')).to match %r{foobar/0 has been restarted}
  end

  it 'recreates a job' do
    expect(run_bosh('recreate foobar 1')).to match %r{foobar/1 has been recreated}
  end

  it 'stops and starts a job' do
    expect(run_bosh('stop foobar 2')).to match %r{foobar/2 has been stopped}
    expect(run_bosh('start foobar 2')).to match %r{foobar/2 has been started}
  end
end
require 'spec_helper'

describe 'deployment job control' do
  include IntegrationExampleGroup

  before do
    deploy_simple
  end

  it 'restarts a job' do
    expect(run_bosh('restart foobar 0')).to match %r{foobar/0 has been restarted}
  end

  it 'recreates a job' do
    expect(run_bosh('recreate foobar 1')).to match %r{foobar/1 has been recreated}
  end
end
Revert "Limit concurrent integration specs on travis to 12"
Revert "Limit concurrent integration specs on travis to 12"

This reverts commit 046f50663389d03d1ea4b0c4854b2fb614b41f66.
