Skip to content

Commit

Permalink
https://github.com/gbif/pipelines/issues/1078
Browse files Browse the repository at this point in the history
fixing it test, steps count
  • Loading branch information
fmendezh committed Sep 24, 2024
1 parent 391ada1 commit b81871a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void newFullIngestionCompletedTest() {

// Should
Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -138,7 +138,7 @@ public void newHalfIngestionCompletedTest() {

// Should
Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(4, result.size());
Assert.assertEquals(5, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -242,7 +242,7 @@ public void newFullIngestionFailedTest() {

// Should
Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -329,7 +329,7 @@ public void twoStepsIngestionCompletedTest() {

// Should
Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void successFullInterpretationTest() {
assertTrue(path.toFile().exists());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(1, result.size());
Assert.assertEquals(2, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void invalidChildSystemProcessTest() {
assertEquals(0, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(4, result.size());
Assert.assertEquals(5, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void normalCaseWhenFilesInDirectoryTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -196,7 +196,7 @@ public void failedCaseWhenXmlAvroEmptyTest() {
assertTrue(PUBLISHER.getMessages().isEmpty());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void normalCaseTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -216,7 +216,7 @@ public void csvCaseTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -293,7 +293,7 @@ public void xlsxCaseTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -448,7 +448,7 @@ public void normalSingleStepCaseTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -524,7 +524,7 @@ public void failedCaseTest() {
assertTrue(PUBLISHER.getMessages().isEmpty());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void normalCaseWhenFilesInDirectoryTest() throws Exception {
assertEquals(1, PUBLISHER.getMessages().size());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down Expand Up @@ -184,7 +184,7 @@ public void failedCaseWhenXmlAvroEmptyTest() {
assertTrue(PUBLISHER.getMessages().isEmpty());

Map<StepType, PipelineStep> result = historyClient.getStepMap();
Assert.assertEquals(6, result.size());
Assert.assertEquals(7, result.size());

Assert.assertEquals(1, historyClient.getPipelineExecutionMap().size());
Assert.assertEquals(1, historyClient.getPipelineProcessMap().size());
Expand Down

0 comments on commit b81871a

Please sign in to comment.