diff --git a/modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/MiscEnrichments.scala b/modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/MiscEnrichments.scala index 306411e62..aaa476eb8 100644 --- a/modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/MiscEnrichments.scala +++ b/modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/MiscEnrichments.scala @@ -55,6 +55,7 @@ object MiscEnrichments { case "cnsl" => "cnsl".asRight // Games Console case "tv" => "tv".asRight // Connected TV case "srv" => "srv".asRight // Server-side App + case "headset" => "headset".asRight // AR/VR Headset case _ => val msg = "not recognized as a tracking platform" val f = FailureDetails.EnrichmentFailureMessage.InputData( diff --git a/modules/common/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/miscEnrichmentSpecs.scala b/modules/common/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/miscEnrichmentSpecs.scala index f363e0d26..e13822302 100644 --- a/modules/common/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/miscEnrichmentSpecs.scala +++ b/modules/common/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/miscEnrichmentSpecs.scala @@ -60,6 +60,7 @@ class ExtractPlatformSpec extends Specification with DataTables { "valid connected TV" !! "tv" ! "tv".asRight | "valid games console" !! "cnsl" ! "cnsl".asRight | "valid iot (internet of things)" !! "iot" ! "iot".asRight | + "valid headset" !! "headset" ! "headset".asRight | "invalid empty" !! "" ! err("").asLeft | "invalid null" !! null ! err(null).asLeft | "invalid platform" !! "ma" ! err("ma").asLeft |> { (_, input, expected) =>