Skip to content

Commit

Permalink
Fikset merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
betsytraran committed Feb 21, 2025
2 parents 2f16aa6 + c46d73b commit 8d008cd
Show file tree
Hide file tree
Showing 177 changed files with 3,192 additions and 3,705 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/app.levende-arbeidsforhold-ansettelse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ name: levende-arbeidsforhold-ansettelse
on:
push:
paths:
- .github/workflows/app.levende-arbeidsforhold-ansettelse.yml
- apps/levende-arbeidsforhold-ansettelse/**
- libs/commands/**
- libs/data-transfer-objects/**
- libs/data-transfer-search-objects/**
- libs/reactive-core/**
- libs/reactive-security/**
- libs/security-core/**
- libs/servlet-core/**
- libs/servlet-security/**
- libs/servlet-insecure-security/**
- apps/levende-arbeidsforhold-ansettelse/**
- .github/workflows/app.levende-arbeidsforhold-ansettelse.yml
- libs/testing/**


jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/app.testnorge-statisk-data-forvalter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
cluster: "dev-fss"
working-directory: "apps/testnorge-statisk-data-forvalter"
deploy-tag: "#deploy-testnorge-statisk-data-forvalter"
deploy-tag: "#deploy-statisk-data-forvalter"
permissions:
contents: read
id-token: write
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ name: Integration Tests
on:
push:
paths:
- 'apps/bruker-service/**'
- "apps/altinn3-tilgang-service/**"
- "apps/bruker-service/**"
- "mocks/maskinporten-mock/**"
- "mocks/tokendings-mock/**"
workflow_dispatch:

jobs:
bruker-service:
if: github.event.pull_request.draft == false
uses: ./.github/workflows/common.integration-test.yml
with:
working-directory: 'apps/bruker-service/'
healthcheck: 'http://localhost:8002/internal/isAlive'
working-directory: "apps/bruker-service/"
healthcheck: "http://localhost:8002/internal/isAlive"
secrets:
NAV_TOKEN: ${{ secrets.NAV_TOKEN }}
11 changes: 6 additions & 5 deletions .github/workflows/proxy.inst-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: inst-proxy
on:
push:
paths:
- "plugins/**"
- "libs/reactive-core/**"
- "libs/reactive-proxy/**"
- "proxies/inst-proxy/**"
- ".github/workflows/proxy.inst-proxy.yml"
- .github/workflows/proxy.inst-proxy.yml
- libs/reactive-core/**
- libs/reactive-proxy/**
- libs/reactive-security/**
- plugins/**
- proxies/inst-proxy/**

jobs:
workflow:
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/proxy.medl-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ name: medl-proxy
on:
push:
paths:
- "plugins/**"
- "proxies/medl-proxy/**"
- "libs/servlet-core/**"
- "libs/servlet-security/**"
- "libs/servlet-insecure-security/**"
- "libs/security-core/**"
- "libs/database/**"
- "libs/data-transfer-objects/**"
- ".github/workflows/proxy.medl-proxy.yml"
- .github/workflows/proxy.medl-proxy.yml
- libs/data-transfer-objects/**
- libs/database/**
- libs/reactive-security/**
- libs/security-core/**
- libs/servlet-core/**
- libs/servlet-insecure-security/**
- libs/servlet-security/**
- plugins/**
- proxies/medl-proxy/**

jobs:
workflow:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proxy.yrkesskade-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: yrkesskade-proxy
on:
push:
paths:
- plugins/**
- .github/workflows/proxy.yrkesskade-proxy.yml
- libs/reactive-core/**
- libs/reactive-proxy/**
- libs/reactive-security/**
- libs/security-core/**
- plugins/**
- proxies/yrkesskade-proxy/**
- .github/workflows/proxy.yrkesskade-proxy.yml

jobs:
workflow:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy dolly alerts to NAIS
on:
schedule:
- cron: "0 9 * * MON"
push:
paths:
- '.nais/alerting-dolly.yml'
- '.github/workflows/alert-dolly.yml'
- "../../.nais/alerts.yml"
workflow_dispatch:

jobs:
Expand All @@ -21,4 +21,4 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: ".nais/alerting-dolly.yml"
RESOURCE: ".nais/alerts.yml"
File renamed without changes.
7 changes: 7 additions & 0 deletions apps/brreg-stub/99-dolly-set-vault-token.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

#
# Load the contents of the NAIS provided Vault token into a Spring Boot friendly environment variable.
#
SPRING_CLOUD_VAULT_TOKEN=$(cat /var/run/secrets/nais.io/vault/vault_token)
export SPRING_CLOUD_VAULT_TOKEN
3 changes: 2 additions & 1 deletion apps/brreg-stub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL maintainer="Team Dolly"

ENV JAVA_OPTS="-Dspring.profiles.active=prod"

COPY build/libs/app.jar app.jar
COPY /99-dolly-set-vault-token.sh /init-scripts/
COPY /build/libs/app.jar app.jar

EXPOSE 8080
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package no.nav.brregstub;

import no.nav.dolly.libs.nais.NaisEnvironmentApplicationContextInitializer;
import no.nav.dolly.libs.vault.VaultTokenApplicationContextInitializer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;


@SpringBootApplication
public class BrregApplicationLauncher {
public static void main(String[] args) {
new SpringApplicationBuilder(BrregApplicationLauncher.class)
.initializers(
new VaultTokenApplicationContextInitializer(),
new NaisEnvironmentApplicationContextInitializer())
.initializers(new NaisEnvironmentApplicationContextInitializer())
.run(args);
}
}
1 change: 0 additions & 1 deletion apps/bruker-service/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ spring:
resourceserver:
tokenx:
issuer-uri: ${TOKEN_X_ISSUER}
jwk-set-uri: ${TOKEN_X_JWKS_URI}
accepted-audience: ${TOKEN_X_CLIENT_ID}
r2dbc:
url: r2dbc:postgresql://${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_DEV_TESTNAV_BRUKER_SERVICE_DEV_DB_HOST}:${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_DEV_TESTNAV_BRUKER_SERVICE_DEV_DB_PORT}/${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_DEV_TESTNAV_BRUKER_SERVICE_DEV_DB_DATABASE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ spring:
resourceserver:
tokenx:
issuer-uri: ${TOKEN_X_ISSUER}
jwk-set-uri: ${TOKEN_X_JWKS_URI}
accepted-audience: ${TOKEN_X_CLIENT_ID}
r2dbc:
url: r2dbc:postgresql://${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_TESTNAV_BRUKER_SERVICE_DB_HOST}:${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_TESTNAV_BRUKER_SERVICE_DB_PORT}/${NAIS_DATABASE_TESTNAV_BRUKER_SERVICE_TESTNAV_BRUKER_SERVICE_DB_DATABASE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ spring:
resourceserver:
tokenx:
issuer-uri: http://tokendings:8080
jwk-set-uri: http://tokendings:8080/jwks
accepted-audience: dev-gcp:dolly:testnav-bruker-service
jackson:
serialization:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ spring:
resourceserver:
tokenx:
issuer-uri: ${wiremockBaseUrl}
jwk-set-uri: ${wiremockBaseUrl}/jwks

consumers:
testnav-altinn3-tilgang-service:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class LagreAlderspensjonCommand implements Callable<Flux<PensjonforvalterResponse>> {

private static final String PENSJON_AP_VEDTAK_URL = "/api/v4/vedtak/ap";
private static final String PENSJON_AP_SOKNAD_URL = "/api/v3/vedtak/ap/soknad";
private static final String PENSJON_AP_SOKNAD_URL = "/api/v4/vedtak/ap/soknad";

private final WebClient webClient;

Expand Down Expand Up @@ -77,4 +77,4 @@ public Flux<PensjonforvalterResponse> call() {
.toList())
.build()));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class BestillingTpsMessagingStatusMapper {

private static final List<String> HIDE_MILJOER = List.of("q5", "qa", "qx");
private static final List<String> HIDE_MILJOER = List.of("qx");
private static final String OKEY = "OK";
private static final String ADVARSEL = "Advarsel: ";
private static final String FEIL = "Feil: ";
Expand Down
1 change: 0 additions & 1 deletion apps/dolly-backend/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spring:
resourceserver:
tokenx:
issuer-uri: ${TOKEN_X_ISSUER}
jwk-set-uri: ${TOKEN_X_JWKS_URI}
accepted-audience: ${TOKEN_X_CLIENT_ID}

consumers:
Expand Down
1 change: 0 additions & 1 deletion apps/dolly-backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ spring:
resourceserver:
tokenx:
issuer-uri: ${TOKEN_X_ISSUER}
jwk-set-uri: ${TOKEN_X_JWKS_URI}
accepted-audience: ${TOKEN_X_CLIENT_ID}
2 changes: 1 addition & 1 deletion apps/dolly-backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<encoder class="no.nav.testnav.libs.servletcore.logging.TestnavLogbackEncoder">
<maxStackTraceLength>-1</maxStackTraceLength>
<addCauses>true</addCauses>
<stackTraceIncludePrefix>-</stackTraceIncludePrefix>
<!-- <stackTraceIncludePrefix>-</stackTraceIncludePrefix>-->
<!-- <throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">-->
<!-- <rootCauseFirst>true</rootCauseFirst>-->
<!-- -->
Expand Down
2 changes: 1 addition & 1 deletion apps/dolly-frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation "no.nav.testnav.libs:security-core"

// Session
implementation "redis.clients:jedis:5.1.2"
implementation "redis.clients:jedis:5.2.0"
implementation "org.springframework.session:spring-session-core"
implementation "org.springframework.session:spring-session-data-redis"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ private Function<PredicateSpec, Buildable<Route>> createRoute(String segment, St
.filters(filter, removeCookiesFilter, addUserJwtHeaderFilter())
).uri(host);
}
}
}
3 changes: 2 additions & 1 deletion apps/dolly-frontend/src/main/js/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@navikt:registry=https://npm.pkg.github.com
@navikt:registry=https://npm.pkg.github.com
legacy-peer-deps=true
Loading

0 comments on commit 8d008cd

Please sign in to comment.