Skip to content

Commit

Permalink
Remove code for sending frisktilarbeid melding til behandler
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Oct 18, 2024
1 parent b1d54a7 commit 62388a4
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 171 deletions.
3 changes: 0 additions & 3 deletions .nais/kafka/behandler-dialogmelding-bestilling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ spec:
- team: teamsykefravr
application: isbehandlerdialog
access: write
- team: teamsykefravr
application: isfrisktilarbeid
access: write
- team: disykefravar
application: dvh-sykefravar-airflow-kafka
access: read
1 change: 0 additions & 1 deletion .nais/naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ spec:
inbound:
rules:
- application: syfomodiaperson
- application: isfrisktilarbeid
- application: syfooppfolgingsplanservice
namespace: team-esyfo
cluster: dev-fss
Expand Down
1 change: 0 additions & 1 deletion .nais/naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ spec:
inbound:
rules:
- application: syfomodiaperson
- application: isfrisktilarbeid
- application: syfooppfolgingsplanservice
namespace: team-esyfo
cluster: prod-fss
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ data class Environment(
syfooppfolgingsplanserviceApplicationName,
lpsOppfolgingsplanMottakApplicationName,
),
private val isfrisktilarbeidApplicationName: String = "isfrisktilarbeid",
val behandlerSystemAPIAuthorizedConsumerApplicationNameList: List<String> = listOf(
isfrisktilarbeidApplicationName,
),

val electorPath: String = getEnvVar("ELECTOR_PATH"),
val serviceuserUsername: String = getEnvVar("SERVICEUSER_USERNAME"),
Expand Down
6 changes: 0 additions & 6 deletions src/main/kotlin/no/nav/syfo/application/api/ApiModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import no.nav.syfo.dialogmelding.bestilling.DialogmeldingToBehandlerService
import no.nav.syfo.behandler.api.person.registerPersonBehandlerApi
import no.nav.syfo.behandler.api.person.registerPersonOppfolgingsplanApi
import no.nav.syfo.behandler.api.registerBehandlerApi
import no.nav.syfo.behandler.api.registerBehandlerSystemApi
import no.nav.syfo.client.veiledertilgang.VeilederTilgangskontrollClient
import no.nav.syfo.oppfolgingsplan.OppfolgingsplanService

Expand Down Expand Up @@ -75,11 +74,6 @@ fun Application.apiModule(
behandlerService = behandlerService,
veilederTilgangskontrollClient = veilederTilgangskontrollClient,
)
registerBehandlerSystemApi(
behandlerService = behandlerService,
apiConsumerAccessService = systemAPIConsumerAccessService,
authorizedApplicationNameList = environment.behandlerSystemAPIAuthorizedConsumerApplicationNameList
)
}
authenticate(JwtIssuerType.IDPORTEN_TOKENX.name) {
registerPersonBehandlerApi(
Expand Down
41 changes: 0 additions & 41 deletions src/main/kotlin/no/nav/syfo/behandler/api/BehandlerSystemApi.kt

This file was deleted.

110 changes: 0 additions & 110 deletions src/test/kotlin/no/nav/syfo/behandler/api/BehandlerSystemApiSpek.kt

This file was deleted.

5 changes: 0 additions & 5 deletions src/test/kotlin/no/nav/syfo/testhelper/TestEnvironment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ fun testEnvironment() = Environment(
const val testAapSoknadApiClientId = "soknad-api-client-id"
const val testAapOppslagApiClientId = "oppslag-client-id"
const val testSyfooppfolgingsplanserviceClientId = "syfooppfolgingsplanservice-client-id"
const val isfrisktilarbeidClientId = "isfrisktilarbeid-client-id"

fun testAppState() = ApplicationState(
alive = true,
Expand All @@ -73,8 +72,4 @@ val testAzureAppPreAuthorizedApps = listOf(
name = "dev-fss:team-esyfo:syfooppfolgingsplanservice",
clientId = testSyfooppfolgingsplanserviceClientId,
),
PreAuthorizedClient(
name = "dev-gcp:teamsykefravr:isfrisktilarbeid",
clientId = isfrisktilarbeidClientId,
)
)

0 comments on commit 62388a4

Please sign in to comment.