We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc167b commit c4670feCopy full SHA for c4670fe
spec/integration/v2/jobs_spec.rb
@@ -124,16 +124,15 @@
124
end
125
126
context 'when log is missing' do
127
- it 'redirects to archived log url' do
+ it 'returns the log retrieved from s3' do
128
stub_request(:get, "#{Travis.config.logs_api.url}/logs/#{job.id}?by=job_id&source=api")
129
.to_return(status: 404, body: '')
130
response = get(
131
"/jobs/#{job.id}/log.txt",
132
{},
133
{ 'HTTP_ACCEPT' => 'text/plain; version=2' }
134
)
135
- expect(response.status).to eq(307)
136
- expect(response.location).to eq(archived_log_url)
+ expect(response.status).to eq(200)
137
138
139
0 commit comments