-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
La til hendelsetidspunkt i interne hendelser
- Loading branch information
Showing
20 changed files
with
117 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: nais.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: paw-arbeidssoekerregisteret-bekreftelse-min-side-varsler | ||
namespace: paw | ||
labels: | ||
team: paw | ||
spec: | ||
azure: | ||
application: | ||
enabled: true | ||
image: {{ image }} | ||
port: 8080 | ||
replicas: | ||
min: 1 | ||
max: 1 | ||
env: | ||
- name: KAFKA_KEYS_SCOPE | ||
value: api://dev-gcp.paw.paw-kafka-key-generator/.default | ||
liveness: | ||
path: /internal/isAlive | ||
initialDelay: 10 | ||
readiness: | ||
path: /internal/isReady | ||
initialDelay: 10 | ||
prometheus: | ||
enabled: true | ||
path: /internal/metrics | ||
observability: | ||
autoInstrumentation: | ||
enabled: true | ||
runtime: java | ||
kafka: | ||
pool: {{ kafka }} | ||
streams: true | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
requests: | ||
memory: 256Mi | ||
cpu: 25m | ||
accessPolicy: | ||
outbound: | ||
rules: | ||
- application: paw-kafka-key-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...-hendelser/src/main/kotlin/no/nav/paw/bekreftelse/internehendelser/BekreftelseHendelse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...in/kotlin/no/nav/paw/bekreftelse/internehendelser/RegisterGracePeriodeGjendstaaendeTid.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.time.Duration | ||
import java.time.Instant | ||
import java.util.* | ||
|
||
const val registerGracePeriodeGjenstaandeTid = "bekreftelse.register_grace_periode_gjenstaande_tid" | ||
const val registerGracePeriodeGjenstaaendeTid = "bekreftelse.register_grace_periode_gjenstaaende_tid" | ||
|
||
data class RegisterGracePeriodeGjendstaaendeTid( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val arbeidssoekerId: Long, | ||
override val hendelseTidspunkt: Instant, | ||
val bekreftelseId: UUID, | ||
val gjenstaandeTid: Duration | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = registerGracePeriodeGjenstaandeTid | ||
override val hendelseType: String = registerGracePeriodeGjenstaaendeTid | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...in/no/nav/paw/arbeidssoekerregisteret/testdata/bekreftelse/BekreftelseMottattGenerator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
package no.nav.paw.arbeidssoekerregisteret.testdata.bekreftelse | ||
|
||
import no.nav.paw.bekreftelse.internehendelser.BekreftelseMeldingMottatt | ||
import java.time.Instant | ||
import java.util.* | ||
|
||
fun bekreftelseMottatt( | ||
bekreftelseId: UUID = UUID.randomUUID(), | ||
periodeId: UUID = UUID.randomUUID(), | ||
hendelseId: UUID = UUID.randomUUID(), | ||
arbeidssoekerId: Long = 1L, | ||
hendelseTidspunkt: Instant = Instant.now() | ||
) = BekreftelseMeldingMottatt( | ||
bekreftelseId = bekreftelseId, | ||
periodeId = periodeId, | ||
hendelseId = hendelseId, | ||
arbeidssoekerId = arbeidssoekerId | ||
arbeidssoekerId = arbeidssoekerId, | ||
hendelseTidspunkt = hendelseTidspunkt | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...tlin/no/nav/paw/arbeidssoekerregisteret/testdata/bekreftelse/PeriodeAvsluttetGenerator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
package no.nav.paw.arbeidssoekerregisteret.testdata.bekreftelse | ||
|
||
import no.nav.paw.bekreftelse.internehendelser.PeriodeAvsluttet | ||
import java.time.Instant | ||
import java.util.* | ||
|
||
fun periodeAvsluttet( | ||
hendelseId: UUID = UUID.randomUUID(), | ||
periodeId: UUID = UUID.randomUUID(), | ||
arbeidssøkerId: Long = 1L | ||
arbeidssøkerId: Long = 1L, | ||
hendelseTidspunkt: Instant = Instant.now() | ||
) = PeriodeAvsluttet( | ||
hendelseId = hendelseId, | ||
periodeId = periodeId, | ||
arbeidssoekerId = arbeidssøkerId, | ||
hendelseTidspunkt = hendelseTidspunkt | ||
) |