Skip to content

Commit

Permalink
Oppdater pipeline og legg til metrikker
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Oct 6, 2023
1 parent d484a7f commit 4735229
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:

jobs:
build:
if: github.event.pull_request.draft == false'
if: github.event.pull_request.draft == 'false'
permissions:
contents: "read"
id-token: "write"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.bidrag.grunnlag.controller

import io.micrometer.core.instrument.MeterRegistry
import no.nav.bidrag.commons.ExceptionLogger
import no.nav.bidrag.commons.web.HttpHeaderRestTemplate
import no.nav.bidrag.domain.enums.Formaal
Expand Down Expand Up @@ -81,7 +82,8 @@ import java.time.LocalDate
class GrunnlagControllerTest(
@Autowired val grunnlagspakkeRepository: GrunnlagspakkeRepository,
@Autowired val persistenceService: PersistenceService,
@Autowired val exceptionLogger: ExceptionLogger
@Autowired val exceptionLogger: ExceptionLogger,
@Autowired val meterRegistry: MeterRegistry
) {

private val restTemplate: HttpHeaderRestTemplate = Mockito.mock(HttpHeaderRestTemplate::class.java)
Expand All @@ -106,7 +108,7 @@ class GrunnlagControllerTest(
familieEfSakConsumer
)
private val grunnlagspakkeService: GrunnlagspakkeService =
GrunnlagspakkeService(persistenceService, oppdaterGrunnlagspakkeService)
GrunnlagspakkeService(persistenceService, oppdaterGrunnlagspakkeService, meterRegistry)
private val hentGrunnlagService: HentGrunnlagService = HentGrunnlagService(arbeidsforholdConsumer, enhetsregisterConsumer)
private val grunnlagController: GrunnlagController = GrunnlagController(grunnlagspakkeService, hentGrunnlagService)
private val mockMvc: MockMvc = MockMvcBuilders.standaloneSetup(grunnlagController)
Expand Down

0 comments on commit 4735229

Please sign in to comment.