File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
server/src/test/scala/za/co/absa/atum/server/api/controller Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ object FlowControllerUnitTests extends ZIOSpecDefault with TestData {
47
47
test(" Returns expected CheckpointDTO" ) {
48
48
for {
49
49
result <- FlowController .getFlowCheckpointsV2(checkpointQueryDTO2)
50
- } yield assertTrue (result == Seq (checkpointDTO2))
50
+ } yield assertTrue (result.data == Seq (checkpointDTO2))
51
51
}
52
52
53
53
)
Original file line number Diff line number Diff line change @@ -87,16 +87,16 @@ object PartitioningControllerUnitTests extends ZIOSpecDefault with TestData {
87
87
suite(" GetPartitioningCheckpointsSuite" )(
88
88
test(" Returns expected Seq[MeasureDTO]" ) {
89
89
for {
90
- result <- PartitioningController .getPartitioningCheckpoints (checkpointQueryDTO1)
90
+ result <- PartitioningController .getPartitioningCheckpointsV2 (checkpointQueryDTO1)
91
91
} yield assertTrue(result.data == Seq (checkpointDTO1, checkpointDTO2))
92
92
},
93
93
test(" Returns expected empty sequence" ) {
94
94
for {
95
- result <- PartitioningController .getPartitioningCheckpoints (checkpointQueryDTO2)
95
+ result <- PartitioningController .getPartitioningCheckpointsV2 (checkpointQueryDTO2)
96
96
} yield assertTrue(result.data == Seq .empty[CheckpointDTO ])
97
97
},
98
98
test(" Returns expected InternalServerErrorResponse" ) {
99
- assertZIO(PartitioningController .getPartitioningCheckpoints (checkpointQueryDTO3).exit)(
99
+ assertZIO(PartitioningController .getPartitioningCheckpointsV2 (checkpointQueryDTO3).exit)(
100
100
failsWithA[InternalServerErrorResponse ]
101
101
)
102
102
}
You can’t perform that action at this time.
0 commit comments