-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ved opprettelse av person eller ident så skal identen sendes til kafk… (
#2502) * Ved opprettelse av person eller ident så skal identen sendes til kafka-kø for minside * Legger til mock-kafka profil * Payload på task kan ikke være større enn 8000 bytes - lagrer derfor kun aktiv personIdent som payload på tasken for å aktivere brukere for mikrofrontend * Skal ha færre i en chunk per task for å kunne passe inn i en payload - maks str er 4672 for å kunne indeksere en rad --------- Co-authored-by: charliemidtlyng <[email protected]>
- Loading branch information
1 parent
125fe21
commit 94dc622
Showing
5 changed files
with
47 additions
and
12 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
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
19 changes: 19 additions & 0 deletions
19
src/test/kotlin/no/nav/familie/ef/sak/infrastruktur/config/KafkaMock.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package no.nav.familie.ef.sak.no.nav.familie.ef.sak.infrastruktur.config | ||
|
||
import io.mockk.mockk | ||
import no.nav.familie.ef.sak.minside.MinSideKafkaProducerService | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Primary | ||
import org.springframework.context.annotation.Profile | ||
|
||
@Configuration | ||
class KafkaMock { | ||
|
||
@Profile("mock-kafka") | ||
@Bean | ||
@Primary | ||
fun minSideKafkaProducerService(): MinSideKafkaProducerService { | ||
return mockk(relaxed = true) | ||
} | ||
} |