Skip to content

Commit

Permalink
Validate cross navigation for 4.0.0 enrich
Browse files Browse the repository at this point in the history
The purpose of this test is to verify that enric version prior to 4.1.0
will not break with additional cross_nagivation_config enrichment.
  • Loading branch information
peel committed Jun 12, 2024
1 parent 164a68a commit 845b572
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow.enrichments/cross_navigation_config/jsonschema/1-0-0",

"data": {
"enabled": true,
"vendor": "com.snowplowanalytics.snowplow.enrichments",
"name": "cross_navigation_config"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ object EnrichmentRegistry {
PiiPseudonymizerEnrichment.parse(enrichmentConfig, schemaKey).map(_.some)
case "iab_spiders_and_robots_enrichment" =>
IabEnrichment.parse(enrichmentConfig, schemaKey, localMode).map(_.some)
case _ =>
case err =>
println(s"HOLA>>> Enrichment is not recognized $err")
Option.empty[EnrichmentConf].validNel // Enrichment is not recognized
}
}
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.2")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("com.snowplowanalytics" % "sbt-snowplow-release" % "0.3.1")
addSbtPlugin("com.snowplowanalytics" % "sbt-snowplow-release" % "0.3.2")

0 comments on commit 845b572

Please sign in to comment.