Skip to content

Commit 78a1002

Browse files
committed
Removed cors_hax spec
1 parent c4670fe commit 78a1002

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

spec/integration/v2/jobs_spec.rb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -136,33 +136,6 @@
136136
end
137137
end
138138

139-
context 'with cors_hax param' do
140-
it 'renders No Content response with location of the archived log' do
141-
stub_request(:get, "#{Travis.config.logs_api.url}/logs/#{job.id}?by=job_id&source=api")
142-
.to_return(
143-
status: 200,
144-
body: JSON.dump(
145-
content: nil,
146-
aggregated_at: Time.now,
147-
archived_at: Time.now,
148-
archive_verified: true
149-
)
150-
)
151-
allow_any_instance_of(Travis::RemoteLog).to receive(:archived_url).and_return(
152-
"https://s3.amazonaws.com/archive.travis-ci.org/jobs/#{job.id}/log.txt"
153-
)
154-
response = get(
155-
"/jobs/#{job.id}/log.txt?cors_hax=true",
156-
{},
157-
{ 'HTTP_ACCEPT' => 'text/plain; version=2' }
158-
)
159-
expect(response.status).to eq 204
160-
expect(response.headers['Location']).to eq(
161-
"https://s3.amazonaws.com/archive.travis-ci.org/jobs/#{job.id}/log.txt"
162-
)
163-
end
164-
end
165-
166139
context 'with chunked log requested' do
167140
it 'succeeds' do
168141
stub_request(:get, "#{Travis.config.logs_api.url}/logs/#{job.id}?by=job_id&source=api")

0 commit comments

Comments
 (0)