-
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.
Endret impl av Kafka plugin i bekreftelse-api
- Loading branch information
1 parent
7396be8
commit 84d71db
Showing
20 changed files
with
209 additions
and
93 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
9 changes: 9 additions & 0 deletions
9
...-api/src/main/kotlin/no/nav/paw/bekreftelse/api/listener/NoopConsumerRebalanceListener.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,9 @@ | ||
package no.nav.paw.bekreftelse.api.listener | ||
|
||
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener | ||
import org.apache.kafka.common.TopicPartition | ||
|
||
class NoopConsumerRebalanceListener : ConsumerRebalanceListener { | ||
override fun onPartitionsRevoked(partitions: MutableCollection<TopicPartition>?) {} | ||
override fun onPartitionsAssigned(partitions: MutableCollection<TopicPartition>?) {} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
apps/bekreftelse-api/src/main/resources/local/kafka_key_generator_client_config.toml
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,3 +1,3 @@ | ||
url = "http://localhost:8090/kafka-keys" | ||
urlLokalInfo = "http://localhost:8090/lokal-info" | ||
url = "http://localhost:8090/api/v2/hentEllerOpprett" | ||
urlLokalInfo = "http://localhost:8090/api/v2/lokalInfo" | ||
scope = "api://test.test.kafka-keys/.default" |
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
21 changes: 21 additions & 0 deletions
21
docker/mocks/config/wiremock/kafka-keys-hentEllerOpprett-01017012345.json
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,21 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/api/v2/hentEllerOpprett", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$[?(@.ident == '01017012345')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"id": 10001, | ||
"key": -10001 | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
docker/mocks/config/wiremock/kafka-keys-hentEllerOpprett-02017012345.json
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,21 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/api/v2/hentEllerOpprett", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$[?(@.ident == '02017012345')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"id": 10002, | ||
"key": -10002 | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
docker/mocks/config/wiremock/kafka-keys-hentEllerOpprett-03017012345.json
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,21 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/api/v2/hentEllerOpprett", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$[?(@.ident == '03017012345')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"id": 10003, | ||
"key": -10003 | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
docker/mocks/config/wiremock/kafka-keys-hentEllerOpprett-04017012345.json
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,21 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/api/v2/hentEllerOpprett", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$[?(@.ident == '04017012345')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"id": 10004, | ||
"key": -10004 | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
docker/mocks/config/wiremock/kafka-keys-hentEllerOpprett-05017012345.json
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,21 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/api/v2/hentEllerOpprett", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$[?(@.ident == '05017012345')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"id": 10004, | ||
"key": -10004 | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
Oops, something went wrong.