Redirect to full amazon url
Amazon can't work properly with SSL and CNAME for subdomains. For now we can use full amazon url.
This commit is contained in:
parent
31371686c9
commit
a565522f41
|
@ -21,7 +21,7 @@ class Travis::Api::App
|
||||||
end
|
end
|
||||||
|
|
||||||
def archive_url(path)
|
def archive_url(path)
|
||||||
"https://#{hostname('archive')}#{path}"
|
"https://s3.amazonaws.com/#{hostname('archive')}#{path}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def hostname(name)
|
def hostname(name)
|
||||||
|
|
|
@ -29,7 +29,7 @@ describe 'Jobs' do
|
||||||
it 'redirects to archive' do
|
it 'redirects to archive' do
|
||||||
job.log.update_attributes!(content: 'the log', archived_at: Time.now, archive_verified: true)
|
job.log.update_attributes!(content: 'the log', archived_at: Time.now, archive_verified: true)
|
||||||
response = get "/jobs/#{job.id}/log.txt", {}, headers
|
response = get "/jobs/#{job.id}/log.txt", {}, headers
|
||||||
response.should redirect_to("https://archive.travis-ci.org/jobs/#{job.id}/log.txt")
|
response.should redirect_to("https://s3.amazonaws.com/archive.travis-ci.org/jobs/#{job.id}/log.txt")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ describe 'Jobs' do
|
||||||
it 'redirects to archive' do
|
it 'redirects to archive' do
|
||||||
job.log.destroy
|
job.log.destroy
|
||||||
response = get "/jobs/#{job.id}/log.txt", {}, headers
|
response = get "/jobs/#{job.id}/log.txt", {}, headers
|
||||||
response.should redirect_to("https://archive.travis-ci.org/jobs/#{job.id}/log.txt")
|
response.should redirect_to("https://s3.amazonaws.com/archive.travis-ci.org/jobs/#{job.id}/log.txt")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user