-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#374 Add integrations tests missing from the last fixup.
- Loading branch information
Showing
3 changed files
with
1,281 additions
and
0 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
...src/test/scala/za/co/absa/pramen/core/integration/IncrementalPipelineDeltaLongSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright 2022 ABSA Group Limited | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package za.co.absa.pramen.core.integration | ||
|
||
class IncrementalPipelineDeltaLongSuite extends IncrementalPipelineLongFixture { | ||
private val format = "delta" | ||
|
||
"For inputs without information date the pipeline" should { | ||
"work end to end as a normal run" in { | ||
testOffsetOnlyNormalRun(format) | ||
} | ||
|
||
"work with incremental ingestion and normal transformer" in { | ||
testOffsetOnlyIncrementalIngestionNormalTransformer(format) | ||
} | ||
|
||
"work end to end as rerun" in { | ||
testOffsetOnlyRerun(format) | ||
} | ||
|
||
"work end to end as rerun with deletion of records" in { | ||
testOffsetOnlyRerunWithRecordsDeletion(format) | ||
} | ||
|
||
"work end to end as rerun with deletion of records with previous data present" in { | ||
testOffsetOnlyRerunWithRecordsDeletionAndPreviousDataPresent(format) | ||
} | ||
|
||
"run for a historical date range with force update" in { | ||
testOffsetOnlyHistoricalDateRangeWithForceUpdate(format) | ||
} | ||
|
||
"run for a historical date range with fill gaps update" in { | ||
testOffsetOnlyHistoricalDateRangeWithFillGaps(format) | ||
} | ||
|
||
"deal with uncommitted offsets when no path" in { | ||
testOffsetOnlyDealWithUncommittedOffsetsWithNoPath(format) | ||
} | ||
|
||
"deal with uncommitted offsets when no data" in { | ||
testOffsetOnlyDealWithUncommittedOffsetsWithNoData(format) | ||
} | ||
|
||
"deal with uncommitted changes when there is data" in { | ||
testOffsetOnlyDealWithUncommittedOffsetsWithData(format) | ||
} | ||
|
||
"fail is the input data type does not conform" in { | ||
testOffsetOnlyFailWhenInputDataDoesNotConform(format) | ||
} | ||
|
||
"fail if the output table does not have the offset field" in { | ||
testOffsetOnlyFailWhenInputTableDoestHaveOffsetField(format) | ||
} | ||
} | ||
|
||
"For inputs with information date the pipeline" should { | ||
"work end to end as a normal run" in { | ||
testWithInfoDateNormalRun(format) | ||
} | ||
|
||
"work with incremental ingestion and normal transformer" in { | ||
testWithInfoDateIncrementalIngestionNormalTransformer(format) | ||
} | ||
|
||
"work end to end as rerun" in { | ||
testWithInfoDateRerun(format) | ||
} | ||
|
||
"work for historical runs" in { | ||
testWithInfoDateHistoricalDateRange(format) | ||
} | ||
} | ||
|
||
"When the input column is timestamp" should { | ||
"work end to end as a normal run" in { | ||
testWithTimestampNormalRun(format) | ||
} | ||
} | ||
|
||
"Edge cases" should { | ||
"offsets cross info days" in { | ||
testOffsetCrossInfoDateEdgeCase(format) | ||
} | ||
} | ||
} |
Oops, something went wrong.