Skip to content

Commit

Permalink
Ikke løs behov som har 'bruk-søknad-orkestrator' til true
Browse files Browse the repository at this point in the history
  • Loading branch information
geiralund committed Jun 3, 2024
1 parent 2356325 commit e6a2108
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 e6a2108

Please sign in to comment.