|
|
@@ -852,7 +852,7 @@ describe('ClsiManager', function () {
|
|
|
ctx.project._id,
|
|
|
ctx.user_id,
|
|
|
{
|
|
|
- compileBackendClass: 'c2d',
|
|
|
+ compileBackendClass: 'c4d',
|
|
|
compileGroup: 'priority',
|
|
|
}
|
|
|
)
|
|
|
@@ -868,7 +868,7 @@ describe('ClsiManager', function () {
|
|
|
url.host === CLSI_HOST &&
|
|
|
url.pathname ===
|
|
|
`/project/${ctx.project._id}/user/${ctx.user_id}/compile` &&
|
|
|
- url.searchParams.get('compileBackendClass') === 'c2d' &&
|
|
|
+ url.searchParams.get('compileBackendClass') === 'c4d' &&
|
|
|
url.searchParams.get('compileGroup') === 'priority'
|
|
|
)
|
|
|
)
|
|
|
@@ -885,7 +885,7 @@ describe('ClsiManager', function () {
|
|
|
ctx.AnalyticsManager.recordEventForUserInBackground
|
|
|
).to.have.been.calledWith(ctx.user_id, 'double-compile-result', {
|
|
|
projectId: 'project-id',
|
|
|
- compileBackendClass: 'c2d',
|
|
|
+ compileBackendClass: 'c4d',
|
|
|
newCompileBackendClass: 'n4',
|
|
|
status: 'success',
|
|
|
compileTime: 1337,
|
|
|
@@ -1055,7 +1055,7 @@ describe('ClsiManager', function () {
|
|
|
await ctx.ClsiManager.promises.deleteAuxFiles(
|
|
|
ctx.project._id,
|
|
|
ctx.user_id,
|
|
|
- { compileBackendClass: 'c2d', compileGroup: 'priority' },
|
|
|
+ { compileBackendClass: 'c4d', compileGroup: 'priority' },
|
|
|
'node-1'
|
|
|
)
|
|
|
// wait for the background task to finish
|
|
|
@@ -1065,7 +1065,7 @@ describe('ClsiManager', function () {
|
|
|
it('should clear both cookies', function (ctx) {
|
|
|
expect(
|
|
|
ctx.ClsiCookieManager.promises.clearServerId
|
|
|
- ).to.have.been.calledWith(ctx.project._id, ctx.user_id, 'c2d')
|
|
|
+ ).to.have.been.calledWith(ctx.project._id, ctx.user_id, 'c4d')
|
|
|
expect(
|
|
|
ctx.ClsiCookieManager.promises.clearServerId
|
|
|
).to.have.been.calledWith(ctx.project._id, ctx.user_id, 'n4')
|
|
|
@@ -1078,7 +1078,7 @@ describe('ClsiManager', function () {
|
|
|
url.host === CLSI_HOST &&
|
|
|
url.pathname ===
|
|
|
`/project/${ctx.project._id}/user/${ctx.user_id}` &&
|
|
|
- url.searchParams.get('compileBackendClass') === 'c2d' &&
|
|
|
+ url.searchParams.get('compileBackendClass') === 'c4d' &&
|
|
|
url.searchParams.get('compileGroup') === 'priority' &&
|
|
|
url.searchParams.get('clsiserverid') === 'node-1'
|
|
|
),
|
|
|
@@ -1168,7 +1168,7 @@ describe('ClsiManager', function () {
|
|
|
ctx.project._id,
|
|
|
ctx.user_id,
|
|
|
false,
|
|
|
- { compileBackendClass: 'c2d', compileGroup: 'priority' },
|
|
|
+ { compileBackendClass: 'c4d', compileGroup: 'priority' },
|
|
|
'node-1'
|
|
|
)
|
|
|
// wait for the background task to finish
|
|
|
@@ -1180,7 +1180,7 @@ describe('ClsiManager', function () {
|
|
|
sinon.match(
|
|
|
url =>
|
|
|
url.toString() ===
|
|
|
- `http://clsi.example.com/project/${ctx.project._id}/user/${ctx.user_id}/wordcount?compileBackendClass=c2d&compileGroup=priority&file=main.tex&image=mock-image-name&clsiserverid=node-1`
|
|
|
+ `http://clsi.example.com/project/${ctx.project._id}/user/${ctx.user_id}/wordcount?compileBackendClass=c4d&compileGroup=priority&file=main.tex&image=mock-image-name&clsiserverid=node-1`
|
|
|
)
|
|
|
)
|
|
|
expect(ctx.FetchUtils.fetchStringWithResponse).to.have.been.calledWith(
|