Skip to content

Commit

Permalink
Java 21 + fjerner deploy til q1 (#906)
Browse files Browse the repository at this point in the history
* Java 21
* fjerner deploy til q1
* azure mot kodeverk
  • Loading branch information
hensol authored Nov 30, 2023
1 parent 3f8e30c commit d35ad27
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 154 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/deploy-preprod-q1.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy-preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Bygg med maven
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if ! [[ $(git branch -r --contains "$commit" | grep -E '(^|\s)origin/main') ]]; then exit 1; fi
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Bygg med maven
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integrasjonsTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/navikt/baseimages/temurin:17-appdynamics
FROM ghcr.io/navikt/baseimages/temurin:21-appdynamics

ENV APPD_ENABLED=true
ENV APP_NAME=familie-integrasjoner
Expand Down
89 changes: 0 additions & 89 deletions app-preprod.teamfamilie.q1.yaml

This file was deleted.

1 change: 1 addition & 0 deletions app-preprod.teamfamilie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
enabled: true
azure:
application:
tenant: "trygdeetaten.no"
enabled: true
claims:
groups:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
<revision>1</revision>
<sha1></sha1>
<changelist>-SNAPSHOT</changelist>
<java.version>17</java.version>
<java.version>21</java.version>
<kotlin.version>1.9.20</kotlin.version>
<springdoc.version>2.2.0</springdoc.version>
<felles.version>2.20231023162434_fa320ce</felles.version>
<felles.version>2.20231123085409_33fb768</felles.version>
<kontrakt.version>3.0_20231114145122_eb1ce78</kontrakt.version>
<token-validation-spring.version>3.1.3</token-validation-spring.version>
<token-validation-spring.version>3.1.5</token-validation-spring.version>

<mock-server.version>5.15.0</mock-server.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.net.URI
@Component
class KodeverkClient(
@Value("\${KODEVERK_URL}") private val kodeverkUri: URI,
@Qualifier("sts") private val restTemplate: RestOperations,
@Qualifier("jwtBearer") private val restTemplate: RestOperations,
) :
AbstractPingableRestClient(restTemplate, "kodeverk") {

Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/application-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ no.nav.security.jwt:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
kodeverk:
resource-url: ${KODEVERK_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
grant-type: client_credentials
scope: ${KODEVERK_SCOPE}
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
medl2:
resource-url: ${MEDL2_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
Expand Down Expand Up @@ -136,7 +145,7 @@ ORGANISASJON_URL: #Denne er ikke i bruk da OrganisasjonV5 mockes ut lokalt
DOKARKIV_V1_URL: http://localhost:18321
DOKDIST_URL: http://localhost:18321
EGEN_ANSATT_URL: #Mockes ut lokalt
KODEVERK_URL: #Mockes lokalt
KODEVERK_URL: #Mockes ut lokalt
FORSTESIDEGENERATOR_URL: #Mockes lokal
AAREG_URL: #Mockes lokalt
SKYGGE_SAK_URL: #Mocker lokalt
Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/application-integrasjonstest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ no.nav.security.jwt:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
kodeverk:
resource-url: ${KODEVERK_URL}
token-endpoint-url: https://#.microsoftonline.com/navq.onmicrosoft.com/oauth2/v2.0/token
grant-type: client_credentials
scope: ${KODEVERK_SCOPE}
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
medl2:
resource-url: ${MEDL2_URL}
token-endpoint-url: https://#.microsoftonline.com/navq.onmicrosoft.com/oauth2/v2.0/token
Expand Down Expand Up @@ -143,7 +152,7 @@ DOKDIST_URL: http://localhost:18321
DOKDISTKANAL_URL: http://localhost:18321
INFOTRYGD_URL: http://localhost:18321
EGEN_ANSATT_URL: #Mockes ut lokalt
KODEVERK_URL: #Mockes lokalt
KODEVERK_URL: http://kodeverk.team-rocket
FORSTESIDEGENERATOR_URL: #Mockes lokalt
AAREG_URL: #Mockes lokalt
SKYGGE_SAK_URL: #Mocker lokalt
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/application-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ no.nav.security.jwt:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
kodeverk:
resource-url: ${KODEVERK_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
grant-type: client_credentials
scope: ${KODEVERK_SCOPE}
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
medl2:
resource-url: ${MEDL2_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
Expand Down Expand Up @@ -135,6 +144,7 @@ tilgang:
INTEGRASJONER_CLIENT_ID: ${AZURE_APP_CLIENT_ID}
CLIENT_SECRET: ${AZURE_APP_CLIENT_SECRET}
INFOTRYGD_KS_SCOPE: ${INFOTRYGD_KS_SCOPE}
KODEVERK_SCOPE: api://dev-fss.team-rocket.kodeverk/.default
DOKARKIV_SCOPE: api://dev-fss.teamdokumenthandtering.dokarkiv/.default
PDL_SCOPE: api://dev-fss.pdl.pdl-api/.default
DOKDISTKANAL_SCOPE: api://dev-fss.teamdokumenthandtering.dokdistkanal/.default
Expand All @@ -145,6 +155,7 @@ DOKARKIV_V1_URL: https://dokarkiv-q2.dev.intern.nav.no
MEDL2_URL: https://medlemskap-medl-api.dev.intern.nav.no
SAF_URL: https://saf-q2.dev.intern.nav.no
OPPGAVE_URL: https://oppgave.dev.adeo.no
KODEVERK_URL: http://kodeverk.team-rocket
FORSTESIDEGENERATOR_URL: https://foerstesidegenerator-q2.dev.intern.nav.no
EGEN_ANSATT_URL: https://skjermede-personer-pip.nais.preprod.local
DOKDIST_URL: https://dokdistfordeling-q2.dev.intern.nav.no
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ no.nav.security.jwt:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
kodeverk:
resource-url: ${KODEVERK_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
grant-type: client_credentials
scope: ${KODEVERK_SCOPE}
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_basic
medl2:
resource-url: ${MEDL2_URL}
token-endpoint-url: ${AZURE_OPENID_CONFIG_TOKEN_ENDPOINT}
Expand Down Expand Up @@ -127,6 +136,7 @@ no.nav.security.jwt:
INTEGRASJONER_CLIENT_ID: ${AZURE_APP_CLIENT_ID}
CLIENT_SECRET: ${AZURE_APP_CLIENT_SECRET}
INFOTRYGD_KS_SCOPE: ${INFOTRYGD_KS_SCOPE}
KODEVERK_SCOPE: api://prod-fss.team-rocket.kodeverk/.default
DOKARKIV_SCOPE: api://prod-fss.teamdokumenthandtering.dokarkiv/.default
PDL_SCOPE: api://prod-fss.pdl.pdl-api/.default
DOKDISTKANAL_SCOPE: api://prod-fss.teamdokumenthandtering.dokdistkanal/.default
Expand All @@ -138,6 +148,7 @@ DOKARKIV_V1_URL: https://dokarkiv.intern.nav.no
SAF_URL: https://saf.intern.nav.no
FORSTESIDEGENERATOR_URL: https://foerstesidegenerator.intern.nav.no
EGEN_ANSATT_URL: https://skjermede-personer-pip.nais.adeo.no
KODEVERK_URL: http://kodeverk.team-rocket
DOKDIST_URL: https://dokdistfordeling.intern.nav.no
DOKDISTKANAL_URL: https://dokdistkanal.intern.nav.no
AAREG_URL: https://aareg-services.intern.nav.no/api
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ management:
AZURE_APP_CLIENT_ID: "dummy-klient-id"
AZURE_APP_CLIENT_SECRET: "dummy-klient-secret"
INFOTRYGD_KS_SCOPE: "dummy-scope"
KODEVERK_SCOPE: "dummy-scope"
SAF_SCOPE: "dummy-scope"
OPPGAVE_SCOPE: "dummy-scope"
DOKARKIV_SCOPE: "dummy-scope"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.springframework.test.context.ActiveProfiles
import org.springframework.test.context.TestPropertySource
import java.time.LocalDate

@ActiveProfiles("integrasjonstest", "mock-sts")
@ActiveProfiles("integrasjonstest", "mock-oauth")
@TestPropertySource(properties = ["KODEVERK_URL=http://localhost:28085"])
@AutoConfigureWireMock(port = 28085)
class KodeverkControllerTest : OppslagSpringRunnerTest() {
Expand Down

0 comments on commit d35ad27

Please # to comment.