Skip to content

Commit

Permalink
[16144] Added additional check to integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcutshall committed Nov 21, 2024
1 parent 7f92ba3 commit 97b21ad
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class FHIRTranslatorIntegrationTests : Logging {
assertThat(event.params[ReportStreamEventProperties.RECEIVER_NAME]).isEqualTo("phd.x")
val enrichments = event.params[ReportStreamEventProperties.ENRICHMENTS] as List<*>
assertThat(enrichments).hasSize(1)
assertThat(enrichments.first()).isEqualTo(receiverSetupData.first().schemaName)

// check action table
UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.translate))
Expand Down Expand Up @@ -321,6 +322,7 @@ class FHIRTranslatorIntegrationTests : Logging {
assertThat(event.params[ReportStreamEventProperties.RECEIVER_NAME]).isEqualTo("phd.x")
val enrichments = event.params[ReportStreamEventProperties.ENRICHMENTS] as List<*>
assertThat(enrichments).hasSize(1)
assertThat(enrichments.first()).isEqualTo(receiverSetupData.first().schemaName)

// check action table
UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.translate))
Expand Down Expand Up @@ -410,6 +412,7 @@ class FHIRTranslatorIntegrationTests : Logging {
assertThat(event.params[ReportStreamEventProperties.RECEIVER_NAME]).isEqualTo("phd.x")
val enrichments = event.params[ReportStreamEventProperties.ENRICHMENTS] as List<*>
assertThat(enrichments).hasSize(1)
assertThat(enrichments.first()).isEqualTo(receiverSetupData.first().schemaName)

// check action table
UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.translate))
Expand Down Expand Up @@ -509,6 +512,7 @@ class FHIRTranslatorIntegrationTests : Logging {
assertThat(event.params[ReportStreamEventProperties.RECEIVER_NAME]).isEqualTo("phd.x")
val enrichments = event.params[ReportStreamEventProperties.ENRICHMENTS] as List<*>
assertThat(enrichments).hasSize(1)
assertThat(enrichments.first()).isEqualTo(receiverSetupData.first().schemaName)

// check action table
UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.translate))
Expand Down

0 comments on commit 97b21ad

Please sign in to comment.