diff --git a/pom.xml b/pom.xml index 10d59841..50ca1655 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.2 + 3.2.3 no.nav.pensjon @@ -131,18 +131,6 @@ org.springframework.boot spring-boot-starter-test test - - - - com.jayway.jsonpath - json-path - - - - - com.jayway.jsonpath - json-path - 2.9.0 org.springdoc diff --git a/src/test/kotlin/no/nav/pensjon/simulator/tech/security/egress/entra/EntraIdUtilTest.kt b/src/test/kotlin/no/nav/pensjon/simulator/tech/security/egress/entra/EntraIdUtilTest.kt new file mode 100644 index 00000000..b776200a --- /dev/null +++ b/src/test/kotlin/no/nav/pensjon/simulator/tech/security/egress/entra/EntraIdUtilTest.kt @@ -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) + } +}