Skip to content

Commit

Permalink
Leser bare behovspakker der ikke søknad-orkestrator skal løse behovene.
Browse files Browse the repository at this point in the history
  • Loading branch information
geiralund committed May 7, 2024
1 parent c4f4d31 commit f76ccdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ internal class SøknadFaktaQuizLøser(
River(rapidsConnection).apply {
validate { it.demandAny("@event_name", listOf("faktum_svar", "behov")) }
validate { it.demandAllOrAny("@behov", løserBehov) }
validate { it.demandValue("bruk-søknad-orkestrator", false) }
validate { it.rejectKey("@løsning") }
validate {
it.require("InnsendtSøknadsId") { innsendtSøknad -> innsendtSøknad["urn"].asText().let { urn -> URN.rfc8141().parse(urn).namespaceSpecificString().toString() } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ internal class SøknadFaktaQuizLøserTest {
"@opprettet": "2020-11-18T11:04:32.867824",
"@id": "930e2beb-d394-4024-b713-dbeb6ad3d4bf",
"@behovId": "930e2beb-d394-4024-b713-dbeb6ad3d4bf",
"bruk-søknad-orkestrator" : false,
"identer":[{"id":"12345678910","type":"folkeregisterident","historisk":false}],
"søknad_uuid": "41621ac0-f5ee-4cce-b1f5-88a79f25f1a5",
"@behov": [
Expand All @@ -202,6 +203,7 @@ internal class SøknadFaktaQuizLøserTest {
"@opprettet": "2020-11-18T11:04:32.867824",
"@id": "930e2beb-d394-4024-b713-dbeb6ad3d4bf",
"@behovId": "930e2beb-d394-4024-b713-dbeb6ad3d4bf",
"bruk-søknad-orkestrator": false,
"identer":[{"id":"12345678910","type":"folkeregisterident","historisk":false}],
"søknad_uuid": "41621ac0-f5ee-4cce-b1f5-88a79f25f1a5",
"@behov": [
Expand Down

0 comments on commit f76ccdb

Please sign in to comment.