Skip to content

Commit

Permalink
Prometheus - pågående
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kroken committed Oct 5, 2023
1 parent 0c1a1fc commit b0b39e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.kafka:spring-kafka")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus:1.11.4")
implementation("org.springframework:spring-aspects")
implementation("no.nav.security:token-validation-spring:$navTokenSupportVersion")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.
import no.nav.security.mock.oauth2.MockOAuth2Server
import no.nav.security.token.support.spring.test.EnableMockOAuth2Server
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
Expand Down Expand Up @@ -30,12 +31,14 @@ class PrometheusWebApiTest {
).andExpect(status().isOk())
}

@Disabled
@Test
fun `prometheus-url'en returnerer json`() {
mvc.perform(
get("/actuator/prometheus")
).andExpect(content().contentType("application/json"))
}
@Disabled
@Test
fun `prometheus-url'en returnerer faktisk json`() {
val body = mvc.perform(
Expand Down

0 comments on commit b0b39e0

Please sign in to comment.