Skip to content

Commit

Permalink
Oppgrader bidrag-felles (#361)
Browse files Browse the repository at this point in the history
* Oppgrader bidrag-felles

* Oppgrader bidrag-felles

* Oppgrader bidrag-felles

* Oppgrader bidrag-felles
  • Loading branch information
ugur93 authored Nov 7, 2024
1 parent cde4fc2 commit 6cdd59b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 66 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/deploy_feature.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/deploy_q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
workflow_dispatch:
push:
branches:
- '**'
- '!main'
- 'q1/**'
- 'Q1/**'
env:
Expand All @@ -21,7 +23,7 @@ jobs:

run_cucumber_tests-feature:
runs-on: ubuntu-latest
name: Run cucumber tests feature
name: Run cucumber tests q1
needs: build-deploy
if: false #${{ always() && needs.build-deploy.outputs.deploy_suksess == 'true' }}

Expand Down
27 changes: 4 additions & 23 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,24 @@ env:

jobs:
build-deploy:
name: "Build and deploy syntetisk"
name: "Build and deploy q2"
permissions:
contents: "read"
id-token: "write"
uses: navikt/bidrag-workflow/.github/workflows/deploy.yaml@main
secrets: inherit
with:
nais_variabler_filnavn: syntetisk.yaml

deploy_main:
runs-on: ubuntu-latest
name: Deploy main
permissions:
contents: "read"
id-token: "write"
if: github.actor != 'dependabot[bot]'
needs: build-deploy

steps:
- uses: actions/checkout@v4
- name: Deploy to dev-gcp
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/nais.yaml
VARS: .nais/main.yaml
IMAGE: ${{ needs.build-deploy.outputs.image }}
nais_variabler_filnavn: q2.yaml

run_cucumber_tests-syntetisk:
runs-on: ubuntu-latest
name: Run cucumber tests syntetisk
name: Run cucumber tests
needs: build-deploy
if: ${{ always() && needs.build-deploy.outputs.deploy_suksess == 'true' }}

env:
INGRESS_CUCUMBER: https://bidrag-cucumber-cloud.ekstern.dev.nav.no
INGRESS_VEDTAK: https://bidrag-vedtak-syntetisk.intern.dev.nav.no
INGRESS_VEDTAK: https://bidrag-vedtak-q2.intern.dev.nav.no

steps:
- run: |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<token-support.version>3.2.0</token-support.version>

<!-- dependencies -->
<bidrag-felles.version>2024.11.01.080248</bidrag-felles.version>
<bidrag-felles.version>2024.11.07.095708</bidrag-felles.version>
<bidrag-tilgangskontroll.version>1.9.22</bidrag-tilgangskontroll.version>
<mockito-kotlin.version>5.3.1</mockito-kotlin.version>
<nimbus-jose-jwt.version>9.40</nimbus-jose-jwt.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import jakarta.persistence.ManyToOne
import no.nav.bidrag.domene.enums.grunnlag.Grunnlagstype
import no.nav.bidrag.transport.behandling.felles.grunnlag.GrunnlagDto
import no.nav.bidrag.transport.behandling.vedtak.request.OpprettGrunnlagRequestDto
import no.nav.bidrag.transport.felles.commonObjectmapper
import org.hibernate.annotations.JdbcTypeCode
import org.hibernate.type.SqlTypes
import kotlin.reflect.full.memberProperties
Expand Down Expand Up @@ -67,7 +68,7 @@ fun Grunnlag.toGrunnlagDto() = with(::GrunnlagDto) {
callBy(
parameters.associateWith { parameter ->
when (parameter.name) {
GrunnlagDto::type.name -> Grunnlagstype.valueOf(type)
GrunnlagDto::type.name -> commonObjectmapper.readValue("\"$type\"", Grunnlagstype::class.java)
GrunnlagDto::innhold.name -> stringTilJsonNode(innhold)
GrunnlagDto::grunnlagsreferanseListe.name -> grunnlagsreferanseListe
GrunnlagDto::gjelderReferanse.name -> gjelderReferanse
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/no/nav/bidrag/vedtak/TestUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class TestUtil {
),
OpprettGrunnlagRequestDto(
referanse = "SJAB-REF001",
type = Grunnlagstype.SJABLON,
type = Grunnlagstype.SJABLON_SJABLONTALL,
innhold = ObjectMapper().readTree(
"""
{
Expand Down

0 comments on commit 6cdd59b

Please sign in to comment.