Skip to content

Commit

Permalink
🔧 Fix(FileStreamInputArchiverTest): Change usage of the FhirMappingJo…
Browse files Browse the repository at this point in the history
…bExecution constructor
  • Loading branch information
camemre49 committed Jun 26, 2024
1 parent f89ae3a commit ea56234
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ class FileStreamInputArchiverTest extends AnyFlatSpec with Matchers {

// Create test objects for delete mode
val jobId2 = "mocked_job_id_2"
val testDataProcessingSettingsWithDelete: DataProcessingSettings = DataProcessingSettings(archiveMode = ArchiveModes.DELETE)
val testJobWithDelete: FhirMappingJob = testJob.copy(id = jobId2, dataProcessingSettings = testDataProcessingSettingsWithDelete)
val testExecutionWithDelete: FhirMappingJobExecution = testExecution.copy(id = jobId2, job = testJobWithDelete)
val testExecutionWithDelete: FhirMappingJobExecution = testExecution.copy(id = jobId2, archiveMode = ArchiveModes.DELETE)

// Create test objects for off mode
val jobId3 = "mocked_job_id_3"
val testDataProcessingSettingsWithOff: DataProcessingSettings = DataProcessingSettings(archiveMode = ArchiveModes.OFF)
val testJobWithOff: FhirMappingJob = testJob.copy(id = jobId3, dataProcessingSettings = testDataProcessingSettingsWithOff)
val testExecutionWithOff: FhirMappingJobExecution = testExecution.copy(id = jobId3, job = testJobWithOff)
val testExecutionWithOff: FhirMappingJobExecution = testExecution.copy(id = jobId3, ArchiveModes.OFF)

"FileStreamInputArchiver" should "not apply archiving/deletion for a streaming job with archive mode is off" in {
// Initialize spark files for this test
Expand Down

0 comments on commit ea56234

Please sign in to comment.