Skip to content

Commit

Permalink
Motta inntektjustering testdata (#6420)
Browse files Browse the repository at this point in the history
* Legger til preutfylt melding for inntektsjustering i testdata egendefinert melding

* eget felt for fnr er ubrukt da det finnes på dto
  • Loading branch information
Bjodn authored Nov 22, 2024
1 parent 828b604 commit 7ef8375
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ internal class InntektsjusteringRiver(

init {
initialiserRiver(rapidsConnection, InntektsjusteringInnsendtHendelseType.EVENT_NAME_INNSENDT) {
validate { it.requireKey(InntektsjusteringInnsendt.fnrBruker) }
validate { it.requireKey(InntektsjusteringInnsendt.inntektsjusteringInnhold) }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ internal class InntektsjusteringRiverTest {
.newMessage(
mapOf(
"@event_name" to InntektsjusteringInnsendtHendelseType.EVENT_NAME_INNSENDT.eventname,
InntektsjusteringInnsendt.fnrBruker to "123",
InntektsjusteringInnsendt.inntektsjusteringInnhold to inntektsjustering.toJson(),
),
).toJson()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<option value="udefinert" selcted >Udefinert</option>
<option value="omregning">Omregning</option>
<option value="inntektsjusteringjobb">Inntektsjusteringjobb</option>
<option value="inntektsjustering">Inntektsjustering fra selvbetjening</option>
</select>
</div>

Expand Down Expand Up @@ -56,6 +57,9 @@
} else if( hendelseType == 'inntektsjusteringjobb') {
document.getElementById('json').value = '{"@event_name": "INNTEKTSJUSTERING:START_INNTEKTSJUSTERING_JOBB","kjoering": "asdf","antall": 1, "spesifikke_saker": "","ekskluderte_saker": ""}'
prettify()
} else if( hendelseType == 'inntektsjustering') {
document.getElementById('json').value = '{"@event_name":"inntektsjustering_innsendt","@inntektsjustering_innhold":{"id":"accdcbb1-be49-4ab5-b7d3-a3852d19cf42","fnr":"123","inntektsaar":2025,"arbeidsinntekt":100,"naeringsinntekt":200,"inntektFraUtland":300,"afpInntekt":400,"afpTjenesteordning":"tjenesteordning","skalGaaAvMedAlderspensjon":"JA","datoForAaGaaAvMedAlderspensjon":"2025-06-10","tidspunkt":"2024-08-01T05:06:07Z"}}'
prettify()
} else {
document.getElementById('json').value = ''
}
Expand Down

0 comments on commit 7ef8375

Please sign in to comment.