-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publiser meldinger med Kafka-key i API-app #782
Conversation
@@ -25,6 +25,7 @@ class HentForespoerslerProducer( | |||
) { | |||
rapid | |||
.publish( | |||
key = UUID.randomUUID(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Her har vi ingen naturlig nøkkel, men vi det er heller ikke så farlig når vi kun skal lese data.
@@ -253,7 +253,7 @@ abstract class EndToEndTest : ContainerTest() { | |||
|
|||
fun publish(vararg messageFields: Pair<Key, JsonElement>) { | |||
println("Publiserer melding med felt: ${messageFields.toMap()}") | |||
imTestRapid.publish(messageFields.toMap()) | |||
imTestRapid.publish(UUID.randomUUID(), *messageFields) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nøkkelen har ikke betydning her, da imTestRapid
ikke er en ekte rapid.
Testet OK. |
api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/auth/TilgangProducer.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔑
@@ -15,6 +15,7 @@ import no.nav.helsearbeidsgiver.utils.log.MdcUtils | |||
import no.nav.helsearbeidsgiver.utils.wrapper.Fnr | |||
import java.util.UUID | |||
|
|||
// TODO test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skal denne være med?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tok den med som en påminnelse til fremtiden når jeg tilfeldigvis så at den klassen manglet tester.
Dette er nødvendig for å sikre oss at meldingene på Kafka blir lest i samme rekkefølge som de blir skrevet.