Skip to content

Commit

Permalink
🔧 Fix(KafkaSourceIntegrationTest): Fix the source configurations base…
Browse files Browse the repository at this point in the history
…d on the mapping task model changes
  • Loading branch information
camemre49 committed Aug 1, 2024
1 parent 81c3640 commit fda8761
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ class KafkaSourceIntegrationTest extends AnyFlatSpec with ToFhirTestSpec with Be
val consumer = new KafkaConsumer[String, String](consumerProperties, new StringDeserializer, new StringDeserializer)

val streamingSourceSettings: Map[String, KafkaSourceSettings] =
Map("source" -> KafkaSourceSettings("kafka-source", "https://aiccelerate.eu/data-integration-suite/kafka-data", s"PLAINTEXT://localhost:$kafkaPort"))
Map("kafka-source" -> KafkaSourceSettings("kafka-source", "https://aiccelerate.eu/data-integration-suite/kafka-data", s"PLAINTEXT://localhost:$kafkaPort"))

val fhirSinkSettings: FhirRepositorySinkSettings = FhirRepositorySinkSettings(fhirRepoUrl = onFhirClient.getBaseUrl())

val patientMappingTask: FhirMappingTask = FhirMappingTask(
mappingRef = "https://aiccelerate.eu/fhir/mappings/patient-mapping",
sourceContext = Map("source" -> KafkaSource(topicName = "patients", groupId = "tofhir", startingOffsets = "earliest"))
sourceContext = Map("source" -> KafkaSource(topicName = "patients", groupId = "tofhir", startingOffsets = "earliest", sourceRef = Some("kafka-source")))
)
val otherObservationMappingTask: FhirMappingTask = FhirMappingTask(
mappingRef = "https://aiccelerate.eu/fhir/mappings/other-observation-mapping",
sourceContext = Map("source" -> KafkaSource(topicName = "observations", groupId = "tofhir", startingOffsets = "earliest"))
sourceContext = Map("source" -> KafkaSource(topicName = "observations", groupId = "tofhir", startingOffsets = "earliest", sourceRef = Some("kafka-source")))
)
val familyMemberHistoryMappingTask: FhirMappingTask = FhirMappingTask(
mappingRef = "https://aiccelerate.eu/fhir/mappings/family-member-history-mapping",
sourceContext = Map("source" -> KafkaSource(topicName = "familyMembers", groupId = "tofhir", startingOffsets = "earliest"))
sourceContext = Map("source" -> KafkaSource(topicName = "familyMembers", groupId = "tofhir", startingOffsets = "earliest", sourceRef = Some("kafka-source")))
)

val fhirMappingJob: FhirMappingJob = FhirMappingJob(
Expand Down

0 comments on commit fda8761

Please sign in to comment.