Revert "Revert test changes for proxied headers when requesting pdfs from clsi"

This reverts commit ab31d2c3fdc00a38f6444248011a3871b83dbec2.
This commit is contained in:
Brian Gough 2014-12-12 15:43:21 +00:00
parent 0561adde4b
commit d3b38c8dc2

View file

@ -137,7 +137,12 @@ describe "CompileController", ->
statusCode: 204 statusCode: 204
headers: { "mock": "header" } headers: { "mock": "header" }
@req.method = "mock-method" @req.method = "mock-method"
@req.headers = {
'Mock': 'Headers',
'Range': 'should be passed - Range'
'If-Range': 'should be passed - If-Range'
'If-Modified-Since': 'should be passed - If-Modified-Since'
}
describe "user with standard priority", -> describe "user with standard priority", ->
@ -152,6 +157,11 @@ describe "CompileController", ->
method: @req.method method: @req.method
url: "#{@settings.apis.clsi.url}#{@url}", url: "#{@settings.apis.clsi.url}#{@url}",
timeout: 60 * 1000 timeout: 60 * 1000
headers: {
'Range': 'should be passed - Range'
'If-Range': 'should be passed - If-Range'
'If-Modified-Since': 'should be passed - If-Modified-Since'
}
) )
.should.equal true .should.equal true
@ -175,6 +185,11 @@ describe "CompileController", ->
method: @req.method method: @req.method
url: "#{@settings.apis.clsi_priority.url}#{@url}", url: "#{@settings.apis.clsi_priority.url}#{@url}",
timeout: 60 * 1000 timeout: 60 * 1000
headers: {
'Range': 'should be passed - Range'
'If-Range': 'should be passed - If-Range'
'If-Modified-Since': 'should be passed - If-Modified-Since'
}
) )
.should.equal true .should.equal true