From 788e962c36683d88eae72ba60967433aa1f8faac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Hagen?= Date: Fri, 23 Aug 2024 08:53:04 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=90=9B=20Fjerner=20krav=20om=20?= =?UTF-8?q?@final=20key"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4f2f446761fc187a4466fd9b979e3c52fb3f1fe3. --- .../meldinger/l\303\270sninger/Fullmaktl\303\270sning.kt" | 1 + .../no/nav/helse/mediator/meldinger/Testmeldingfabrikk.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git "a/spesialist-selve/src/main/kotlin/no/nav/helse/mediator/meldinger/l\303\270sninger/Fullmaktl\303\270sning.kt" "b/spesialist-selve/src/main/kotlin/no/nav/helse/mediator/meldinger/l\303\270sninger/Fullmaktl\303\270sning.kt" index 025883647..94938b00c 100644 --- "a/spesialist-selve/src/main/kotlin/no/nav/helse/mediator/meldinger/l\303\270sninger/Fullmaktl\303\270sning.kt" +++ "b/spesialist-selve/src/main/kotlin/no/nav/helse/mediator/meldinger/l\303\270sninger/Fullmaktl\303\270sning.kt" @@ -23,6 +23,7 @@ internal class Fullmaktløsning( override fun validations() = River.PacketValidation { it.demandValue("@event_name", "behov") + it.demandValue("@final", true) it.demandAll("@behov", listOf("Fullmakt")) it.demandKey("contextId") it.demandKey("hendelseId") diff --git a/spesialist-selve/src/test/kotlin/no/nav/helse/mediator/meldinger/Testmeldingfabrikk.kt b/spesialist-selve/src/test/kotlin/no/nav/helse/mediator/meldinger/Testmeldingfabrikk.kt index 591c14252..7ac1f66b3 100644 --- a/spesialist-selve/src/test/kotlin/no/nav/helse/mediator/meldinger/Testmeldingfabrikk.kt +++ b/spesialist-selve/src/test/kotlin/no/nav/helse/mediator/meldinger/Testmeldingfabrikk.kt @@ -98,6 +98,7 @@ internal object Testmeldingfabrikk { id = UUID.randomUUID(), "behov", mapOf( "fødselsnummer" to fødselsnummer, + "@final" to true, "@behov" to listOf("Fullmakt"), "contextId" to "${UUID.randomUUID()}", "hendelseId" to "${UUID.randomUUID()}", @@ -120,6 +121,7 @@ internal object Testmeldingfabrikk { id = UUID.randomUUID(), "behov", mapOf( "fødselsnummer" to fødselsnummer, + "@final" to true, "@behov" to listOf("Fullmakt"), "contextId" to "${UUID.randomUUID()}", "hendelseId" to "${UUID.randomUUID()}",