Skip to content

Commit

Permalink
Enable test-user in DEV (#231)
Browse files Browse the repository at this point in the history
* Enable test-user in DEV

* Enable test-user in DEV
  • Loading branch information
AudunSorheim authored Oct 10, 2024
1 parent 65f4679 commit 437354a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.syfo.client.aareg.domain

data class AaregArbeidsforholdOversikt(
val arbeidsforholdoversikter: List<Arbeidsforholdoversikt>,
val arbeidsforholdoversikter: List<Arbeidsforholdoversikt> = emptyList()
)

data class Arbeidsforholdoversikt(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import no.nav.syfo.oppfolgingsplanmottak.domain.FollowUpPlanDTO
import no.nav.syfo.sykmelding.domain.Sykmeldingsperiode
import no.nav.syfo.sykmelding.service.SendtSykmeldingService

val TEST_FNR_LIST = listOf("05908399546", "01898299631")

class FollowUpPlanValidator(
private val pdlClient: PdlClient,
private val sykmeldingService: SendtSykmeldingService,
Expand Down Expand Up @@ -56,7 +58,7 @@ class FollowUpPlanValidator(
throw FollowUpPlanDTOValidationException("Invalid employee identification number")
}

if (isDev && followUpPlanDTO.employeeIdentificationNumber == "01898299631") {
if (isDev && TEST_FNR_LIST.contains(followUpPlanDTO.employeeIdentificationNumber)) {
return
}

Expand Down

0 comments on commit 437354a

Please sign in to comment.