Skip to content

Commit 29bb9d8

Browse files
committed
Add team-dolly-lokal-app to config.test.yml and clean up NaisEnvironmentApplicationContextInitializer
1 parent 58ea82f commit 29bb9d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/dolly-backend/config.test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ spec:
2020
- application: dolly-frontend-dev
2121
- application: dolly-idporten
2222
- application: dolly-auth-local
23+
- application: team-dolly-lokal-app
2324
- application: testnav-batch-bestilling-service
2425
- application: testnav-dollystatus
2526
- application: testnav-oversikt-frontend

libs/testing/src/main/java/no/nav/dolly/libs/nais/NaisEnvironmentApplicationContextInitializer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public void initialize(@NonNull ConfigurableApplicationContext context) {
3434
default -> configureForOtherProfiles(environment);
3535
}
3636
});
37-
3837
}
3938

4039
private static void configureForLocalProfile(ConfigurableEnvironment environment) {
@@ -50,6 +49,7 @@ private static void configureForLocalProfile(ConfigurableEnvironment environment
5049
properties.putIfAbsent("dolly.texas.url.exchange", "https://dolly-texas-proxy.intern.dev.nav.no/api/v1/token/exchange");
5150
properties.putIfAbsent("dolly.texas.url.introspect", "https://dolly-texas-proxy.intern.dev.nav.no/api/v1/introspect");
5251

52+
// backend
5353
properties.putIfAbsent("spring.security.oauth2.resourceserver.aad.issuer-uri",
5454
PROVIDER_URL + "/62366534-1ec3-4962-8869-9b5535279d0b/v2.0");
5555
properties.putIfAbsent("spring.security.oauth2.resourceserver.aad.accepted-audience",
@@ -67,7 +67,6 @@ private static void configureForLocalProfile(ConfigurableEnvironment environment
6767
properties.putIfAbsent("MASKINPORTEN_SCOPES", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only.
6868
properties.putIfAbsent("MASKINPORTEN_WELL_KNOWN_URL", "https://test.maskinporten.no/.well-known/oauth-authorization-server"); // Used by tenor-search-service and altinn3-tilgang-service only.
6969
properties.putIfAbsent("TOKEN_X_ISSUER", "https://tokenx.dev-gcp.nav.cloud.nais.io");
70-
7170
}
7271

7372
private static void configureForTestProfile(ConfigurableEnvironment environment) {

0 commit comments

Comments
 (0)