Skip to content

Commit

Permalink
Oppgraderte versjonen til felles biblioteket (#197)
Browse files Browse the repository at this point in the history
* Oppgraderte versjonen til felles biblioteket

* Endret kode i forhold til bumpe versjone til felles bibliotek
  • Loading branch information
sneha-d-desai authored Sep 27, 2024
1 parent 2b927c1 commit 3bc64b3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
25 changes: 14 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<properties>
<java.version>21</java.version>
<common.version>3.2023.10.23_12.41-bafec3836d28</common.version>
<common.version>3.2024.09.16_11.09-578823a87a2f</common.version>
<testcontainers.version>1.20.1</testcontainers.version>
</properties>

Expand Down Expand Up @@ -108,42 +108,42 @@

<!-- Common Dependencies -->
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>util</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>types</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>client</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>token-client</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>auth</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>log</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>health</artifactId>
<version>${common.version}</version>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>metrics</artifactId>
<version>${common.version}</version>
</dependency>
Expand All @@ -156,7 +156,7 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.navikt.common-java-modules</groupId>
<groupId>no.nav.common</groupId>
<artifactId>test</artifactId>
<version>${common.version}</version>
<scope>test</scope>
Expand Down Expand Up @@ -217,6 +217,9 @@
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>github</id>
<url>https://github-package-registry-mirror.gc.nav.no/cached/maven-release</url>
</repository>
</repositories>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<OppfolgingEnhet> hentBestMatchEnheter(ArbeidsfordelingKriterier krit

@Override
public HealthCheckResult checkHealth() {
return HealthCheckUtils.pingUrl(UrlUtils.joinPaths(this.norg2Url, "/internal/isAlive"), this.client);
return HealthCheckUtils.pingUrl(UrlUtils.joinPaths(this.norg2Url, "/internal/health/readiness"), this.client);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public Optional<OppgaveId> opprettOppgave(Oppgave oppgave) {
throw new ResponseStatusException(HttpStatus.FORBIDDEN, "Bruker har ikke tilgang til å opprette oppgave");
}

if(!response.isSuccessful()) {
log.error("Feil i request til oppgave: {}", response.message());
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "Feil i request til oppgave");
}

RestUtils.throwIfNotSuccessful(response);

OpprettOppgaveResponse opprettOppgaveResponse = RestUtils.parseJsonResponseOrThrow(response, OpprettOppgaveResponse.class);
Expand Down

0 comments on commit 3bc64b3

Please sign in to comment.