Skip to content

Commit

Permalink
chore: remove spm from whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasDev committed Jan 8, 2025
1 parent d896d15 commit 210d29d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import no.nav.syfo.soknad.kafka.model.FlexSporsmal
private val whitelistetHovedsporsmal =
listOf(
// Vanlige spørsmål
"ANSVARSERKLARING",
"TILBAKE_I_ARBEID",
"FERIE_V2",
"PERMISJON_V2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,20 @@ class SyfoSyketilfelleClient(
}

private suspend fun hentSykeforloep(fnr: String): List<Sykeforloep> {
val response = httpClient
.get("$syketilfelleEndpointURL/api/v1/sykeforloep?inkluderPapirsykmelding=true") {
val response =
httpClient.get(
"$syketilfelleEndpointURL/api/v1/sykeforloep?inkluderPapirsykmelding=true"
) {
accept(ContentType.Application.Json)
val token = accessTokenClient.getAccessToken(syketilfelleScope)
headers {
append("Authorization", "Bearer $token")
append("fnr", fnr)
}
}
log.info("Henter sykeforloep fra sykeforloep, response status: ${response.status}, ${response.bodyAsText()}")
log.info(
"Henter sykeforloep fra sykeforloep, response status: ${response.status}, ${response.bodyAsText()}"
)
return response.body()
}
}
Expand Down
16 changes: 0 additions & 16 deletions src/test/resources/soknadSporsmalArbeidsgivervisning.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
[
{
"id": "1",
"tag": "ANSVARSERKLARING",
"sporsmalstekst": "Jeg vet at jeg kan miste retten til sykepenger hvis opplysningene jeg gir ikke er riktige eller fullstendige. Jeg vet også at NAV kan holde igjen eller kreve tilbake penger, og at å gi feil opplysninger kan være straffbart.",
"undertekst": null,
"min": null,
"max": null,
"svartype": "CHECKBOX_PANEL",
"kriterieForVisningAvUndersporsmal": null,
"svar": [
{
"verdi": "CHECKED"
}
],
"undersporsmal": []
},
{
"id": "28",
"tag": "FRAVAR_FOR_SYKMELDINGEN",
Expand Down

0 comments on commit 210d29d

Please sign in to comment.