Skip to content

Commit 16de375

Browse files
committed
- brregstub-reverse-proxy didn't define any health probes - fixed by importing common dolly-application.yml.
- Tests now extend DollyApplicationContextTest (e.g. runs actual health endpoint tests).
1 parent 46be761 commit 16de375

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

proxies/brregstub-reverse-proxy/src/main/resources/application.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ spring:
22
application:
33
name: testnav-brregstub-reverse-proxy
44
description: Proxy for brregstub som legger på sikkerhet.
5+
config:
6+
import: "classpath:dolly-application.yml"
57
security:
68
oauth2:
79
resourceserver:
@@ -16,13 +18,6 @@ spring:
1618
httpclient:
1719
response-timeout: 30s
1820

19-
server:
20-
servlet:
21-
encoding:
22-
charset: UTF-8
23-
error:
24-
include-message: always
25-
2621
consumers:
2722
brregstub:
2823
name: brreg-stub
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
package no.nav.testnav.proxies.brregstubreverseproxy;
22

3+
import no.nav.dolly.libs.test.DollyApplicationContextTest;
34
import no.nav.dolly.libs.test.DollySpringBootTest;
4-
import org.junit.jupiter.api.Test;
5-
6-
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
75

86
@DollySpringBootTest
9-
class ApplicationContextTest {
10-
11-
@Test
12-
void load_app_context() {
13-
assertThat(true).isTrue();
14-
}
15-
7+
class ApplicationContextTest extends DollyApplicationContextTest {
168
}

0 commit comments

Comments
 (0)