Skip to content

Commit

Permalink
add integration test for run-errand avoiding unresponsive vms
Browse files Browse the repository at this point in the history
J Evelyn Quintana authored and tjvman committed Oct 25, 2017
1 parent 5f96255 commit a2d11de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/spec/gocli/integration/errand/run_release_job_errand_spec.rb
Original file line number Diff line number Diff line change
@@ -215,6 +215,17 @@
expect(output).to_not match /job=second_service_with_errand index=1/
expect(output).to_not match /job=fake-errand-name/
end

it 'can proceed even if an instance outside of the selection is unresponsive' do
deploy_from_scratch(manifest_hash: manifest_hash, cloud_config_hash: Bosh::Spec::NewDeployments.simple_cloud_config)

original_instance = director.instance('service_with_errand', '0', deployment_name: deployment_name)
original_instance.kill_agent

output = bosh_runner.run('run-errand errand1 --instance service_with_errand/1', deployment_name: deployment_name)

expect(output).to match /job=service_with_errand index=1/
end
end
end

0 comments on commit a2d11de

Please sign in to comment.