|
|
@@ -231,6 +231,21 @@ describe "CompileController", ->
|
|
|
)
|
|
|
.should.equal true
|
|
|
|
|
|
+ describe "user with build parameter via query string", ->
|
|
|
+ beforeEach ->
|
|
|
+ @CompileManager.getProjectCompileLimits = sinon.stub().callsArgWith(1, null, {compileGroup: "standard"})
|
|
|
+ @req.query = {build: 1234}
|
|
|
+ @CompileController.proxyToClsi(@project_id, @url = "/test", @req, @res, @next)
|
|
|
+
|
|
|
+ it "should proxy to the standard url with the build parameter", ()->
|
|
|
+ @request
|
|
|
+ .calledWith(
|
|
|
+ method: @req.method
|
|
|
+ qs: {build: 1234}
|
|
|
+ url: "#{@settings.apis.clsi.url}#{@url}",
|
|
|
+ timeout: 60 * 1000
|
|
|
+ )
|
|
|
+ .should.equal true
|
|
|
|
|
|
describe "new pdf viewer", ->
|
|
|
beforeEach ->
|