Skip to content

Commit c9d7442

Browse files
committed
Hotfix for Release v13-s12 (tests)
1 parent fbb261b commit c9d7442

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

projects/metis/cypress/e2e/dashboard.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ context('metis-ui', () => {
1919
setupUser();
2020
cy.request(Cypress.env('dataServer') + '/' + UrlManipulation.METIS_UI_CLEAR);
2121
setEmptyDataResult(
22-
'/orchestrator/workflows/executions/?orderField=CREATED_DATE&ascending=false' +
22+
'/orchestrator/workflows/executions?orderField=CREATED_DATE&ascending=false' +
2323
'&nextPage=0&workflowStatus=INQUEUE&workflowStatus=RUNNING'
2424
);
2525
cy.visit('/dashboard');

projects/metis/src/app/_services/workflow.service.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ describe('Workflow Service', () => {
320320
mockHttp
321321
.expect(
322322
'GET',
323-
'/orchestrator/workflows/executions/' +
323+
'/orchestrator/workflows/executions' +
324324
'?orderField=CREATED_DATE&ascending=false&nextPage=0' +
325325
'&workflowStatus=INQUEUE&workflowStatus=RUNNING'
326326
)
@@ -337,15 +337,15 @@ describe('Workflow Service', () => {
337337
mockHttp
338338
.expect(
339339
'GET',
340-
'/orchestrator/workflows/executions/' +
340+
'/orchestrator/workflows/executions' +
341341
'?orderField=CREATED_DATE&ascending=false&nextPage=0' +
342342
'&workflowStatus=CANCELLED&workflowStatus=FAILED&workflowStatus=FINISHED'
343343
)
344344
.send(mockFirstPageResults);
345345
mockHttp
346346
.expect(
347347
'GET',
348-
'/orchestrator/workflows/executions/' +
348+
'/orchestrator/workflows/executions' +
349349
'?orderField=CREATED_DATE&ascending=false&nextPage=1' +
350350
'&workflowStatus=CANCELLED&workflowStatus=FAILED&workflowStatus=FINISHED'
351351
)
@@ -359,15 +359,15 @@ describe('Workflow Service', () => {
359359
mockHttp
360360
.expect(
361361
'GET',
362-
'/orchestrator/workflows/executions/' +
362+
'/orchestrator/workflows/executions' +
363363
'?orderField=CREATED_DATE&ascending=false&nextPage=0' +
364364
'&workflowStatus=INQUEUE&workflowStatus=RUNNING'
365365
)
366366
.send(mockFirstPageResults);
367367
mockHttp
368368
.expect(
369369
'GET',
370-
'/orchestrator/workflows/executions/' +
370+
'/orchestrator/workflows/executions' +
371371
'?orderField=CREATED_DATE&ascending=false&nextPage=1' +
372372
'&workflowStatus=INQUEUE&workflowStatus=RUNNING'
373373
)
@@ -386,15 +386,15 @@ describe('Workflow Service', () => {
386386
mockHttp
387387
.expect(
388388
'GET',
389-
'/orchestrator/workflows/executions/' +
389+
'/orchestrator/workflows/executions' +
390390
'?orderField=CREATED_DATE&ascending=false&nextPage=0' +
391391
'&workflowStatus=CANCELLED&workflowStatus=FAILED&workflowStatus=FINISHED'
392392
)
393393
.send(mockWorkflowExecutionResults);
394394
mockHttp
395395
.expect(
396396
'GET',
397-
'/orchestrator/workflows/executions/' +
397+
'/orchestrator/workflows/executions' +
398398
'?orderField=CREATED_DATE&ascending=false&nextPage=1' +
399399
'&workflowStatus=CANCELLED&workflowStatus=FAILED&workflowStatus=FINISHED'
400400
)
@@ -409,15 +409,15 @@ describe('Workflow Service', () => {
409409
mockHttp
410410
.expect(
411411
'GET',
412-
'/orchestrator/workflows/executions/' +
412+
'/orchestrator/workflows/executions' +
413413
'?orderField=CREATED_DATE&ascending=false&nextPage=0' +
414414
'&workflowStatus=INQUEUE&workflowStatus=RUNNING'
415415
)
416416
.send(mockWorkflowExecutionResults);
417417
mockHttp
418418
.expect(
419419
'GET',
420-
'/orchestrator/workflows/executions/' +
420+
'/orchestrator/workflows/executions' +
421421
'?orderField=CREATED_DATE&ascending=false&nextPage=1' +
422422
'&workflowStatus=INQUEUE&workflowStatus=RUNNING'
423423
)

projects/metis/test-data/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ new (class extends TestDataServer {
489489
return true;
490490
}
491491

492-
regRes = /orchestrator\/workflows\/executions\/\?\S+INQUEUE\S+RUNNING/.exec(route);
492+
regRes = /orchestrator\/workflows\/executions\?\S+INQUEUE\S+RUNNING/.exec(route);
493493

494494
if (regRes) {
495495
const params = url.parse(route, true).query;
@@ -499,7 +499,7 @@ new (class extends TestDataServer {
499499
return true;
500500
}
501501

502-
regRes = /orchestrator\/workflows\/executions\/\?/.exec(route);
502+
regRes = /orchestrator\/workflows\/executions[\/\?]/.exec(route);
503503

504504
if (regRes) {
505505
console.log('unhandled.....');

0 commit comments

Comments
 (0)