Skip to content

Commit

Permalink
Bump Spring Boot to 3.2.3
Browse files Browse the repository at this point in the history
Also add unit test
  • Loading branch information
espengjostol committed Feb 28, 2024
1 parent dcd8381 commit a76a646
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 1 addition & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>no.nav.pensjon</groupId>
Expand Down Expand Up @@ -131,18 +131,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<!-- Exclude vulnerable 2.8.0 -->
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package no.nav.pensjon.simulator.tech.security.egress.entra

import org.junit.jupiter.api.Test

import org.junit.jupiter.api.Assertions.*

class EntraIdUtilTest {

@Test
fun `getDefaultScope returns the default scope for a given service`() {
val scope = EntraIdUtil.getDefaultScope("cluster1:namespace1:app1")
assertEquals("api://cluster1.namespace1.app1/.default", scope)
}
}

0 comments on commit a76a646

Please sign in to comment.